You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Your app contains unsafe cryptographic encryption patterns. Please see this Google Help Center article ( https://support.google.com/faqs/answer/9450925 ) for details.Vulnerable classes:Org.spongycastle.openpgp.operator.jcajce.JcePBEKeyEncryptionMethodGenerator.encryptSessionInfo
I am getting this warning for below method implementation.
Your app contains unsafe cryptographic encryption patterns. Please see this Google Help Center article ( https://support.google.com/faqs/answer/9450925 ) for details.Vulnerable classes:Org.spongycastle.openpgp.operator.jcajce.JcePBEKeyEncryptionMethodGenerator.encryptSessionInfo
I am getting this warning for below method implementation.
protected byte[] encryptSessionInfo(int encAlgorithm, byte[] key, byte[] sessionInfo) throws PGPException {
try {
String cName = PGPUtil.getSymmetricCipherName(encAlgorithm);
Cipher c = this.helper.createCipher(cName + "/CFB/NoPadding");
SecretKey sKey = new SecretKeySpec(key, PGPUtil.getSymmetricCipherName(encAlgorithm));
c.init(1, sKey, new IvParameterSpec(new byte[c.getBlockSize()]));
return c.doFinal(sessionInfo, 0, sessionInfo.length);
} catch (IllegalBlockSizeException var7) {
throw new PGPException("illegal block size: " + var7.getMessage(), var7);
} catch (BadPaddingException var8) {
throw new PGPException("bad padding: " + var8.getMessage(), var8);
} catch (InvalidAlgorithmParameterException var9) {
throw new PGPException("IV invalid: " + var9.getMessage(), var9);
} catch (InvalidKeyException var10) {
throw new PGPException("key invalid: " + var10.getMessage(), var10);
}
}
The text was updated successfully, but these errors were encountered: