chore: deps upgrade

chore: PMD 8.0.0 obsolete rules replaced

Signed-off-by: Leo Galambos <lg@hq.egothor.org>
This commit is contained in:
2025-12-24 22:33:00 +01:00
parent 0b4b4de603
commit cb363ba2f4
13 changed files with 22 additions and 21 deletions

View File

@@ -518,7 +518,7 @@ public final class CryptoAlgorithms {
destroyed = true;
}
}
} catch (Exception ignored) { // NOPMD
} catch (Exception ignored) {
// swallow and report via audit only if destroyed
}
if (destroyed) {

View File

@@ -186,7 +186,7 @@ public final class BikeKemContext implements KemContext {
.createKey(key.getEncoded());
BIKEKEMExtractor ex = new BIKEKEMExtractor(keyParam);
return ex.extractSecret(ciphertext);
} catch (Exception e) { // NOPMD
} catch (Exception e) {
throw new IOException("BIKE decapsulate failed", e);
}
}

View File

@@ -219,7 +219,7 @@ public final class CmceKemContext implements KemContext {
.createKey(key.getEncoded());
CMCEKEMExtractor ex = new CMCEKEMExtractor(keyParam);
return ex.extractSecret(ciphertext);
} catch (Exception e) { // NOPMD
} catch (Exception e) {
throw new IOException("CMCE decapsulate failed", e);
}
}

View File

@@ -212,7 +212,7 @@ public final class FrodoKemContext implements KemContext {
.createKey(key.getEncoded());
FrodoKEMExtractor ex = new FrodoKEMExtractor(keyParam);
return ex.extractSecret(ciphertext);
} catch (Exception e) { // NOPMD
} catch (Exception e) {
throw new IOException("Frodo decapsulate failed", e);
}
}

View File

@@ -213,7 +213,7 @@ public final class HqcKemContext implements KemContext {
.createKey(key.getEncoded());
HQCKEMExtractor ex = new HQCKEMExtractor(keyParam);
return ex.extractSecret(ciphertext);
} catch (Exception e) { // NOPMD
} catch (Exception e) {
throw new IOException("HQC decapsulate failed", e);
}
}

View File

@@ -220,7 +220,7 @@ public final class KyberKemContext implements KemContext {
MLKEMExtractor gen = new MLKEMExtractor(keyParam);
return gen.extractSecret(ciphertext);
} catch (Exception e) { // NOPMD
} catch (Exception e) {
throw new IOException("Kyber decapsulate failed", e);
}
}

View File

@@ -250,7 +250,7 @@ public final class NtruKemContext implements KemContext {
.createKey(key.getEncoded());
NTRUKEMExtractor ex = new NTRUKEMExtractor(keyParam);
return ex.extractSecret(ciphertext);
} catch (Exception e) { // NOPMD
} catch (Exception e) {
throw new IOException("NTRU decapsulate failed", e);
}
}

View File

@@ -212,7 +212,7 @@ public final class NtrulPrimeKemContext implements KemContext {
.createKey(key.getEncoded());
NTRULPRimeKEMExtractor ex = new NTRULPRimeKEMExtractor(keyParam);
return ex.extractSecret(ciphertext);
} catch (Exception e) { // NOPMD
} catch (Exception e) {
throw new IOException("NTRULPRime decapsulate failed", e);
}
}

View File

@@ -218,7 +218,7 @@ public final class SntruPrimeKemContext implements KemContext {
.createKey(key.getEncoded());
SNTRUPrimeKEMExtractor ex = new SNTRUPrimeKEMExtractor(keyParam);
return ex.extractSecret(ciphertext);
} catch (Exception e) { // NOPMD
} catch (Exception e) {
throw new IOException("SNTRUPrime decapsulate failed", e);
}
}

View File

@@ -217,7 +217,7 @@ public final class SaberKemContext implements KemContext {
.createKey(key.getEncoded());
SABERKEMExtractor ex = new SABERKEMExtractor(keyParam);
return ex.extractSecret(ciphertext);
} catch (Exception e) { // NOPMD
} catch (Exception e) {
throw new IOException("SABER decapsulate failed", e);
}
}

View File

@@ -166,7 +166,7 @@ final class SmartContinuousBlockStream extends AbstractChunkTransformInputStream
out = outBuf = Arrays.copyOf(outBuf, outOff + finBlockSize); // NOPMD
}
int written = cipher.doFinal(in, inOff, len, out, outOff); // NOPMD
int written = cipher.doFinal(in, inOff, len, out, outOff);
return written;
// return cipher.doFinal(in, inOff, len, out, outOff);