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:
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user