F-5035: zeroize PKCS8 spec copy in RSA KeyFactory private key decode
parent
8d4e14264a
commit
de66edb920
|
|
@ -378,6 +378,9 @@ public class WolfCryptRSAKeyFactory extends KeyFactorySpi {
|
|||
if (rsa != null) {
|
||||
rsa.releaseNativeStruct();
|
||||
}
|
||||
if (pkcs8Der != null) {
|
||||
Arrays.fill(pkcs8Der, (byte)0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue