F-5035: zeroize PKCS8 spec copy in RSA KeyFactory private key decode

pull/262/head
Chris Conlon 2026-08-19 14:22:44 -06:00
parent 8d4e14264a
commit de66edb920
1 changed files with 3 additions and 0 deletions

View File

@ -378,6 +378,9 @@ public class WolfCryptRSAKeyFactory extends KeyFactorySpi {
if (rsa != null) {
rsa.releaseNativeStruct();
}
if (pkcs8Der != null) {
Arrays.fill(pkcs8Der, (byte)0);
}
}
}