mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8209129: Further improvements to cipher buffer management
Reviewed-by: weijun, igerasim
This commit is contained in:
parent
58e2f2d41c
commit
50ec35819d
15 changed files with 388 additions and 316 deletions
|
@ -73,7 +73,7 @@ final class PBEKey implements SecretKey {
|
|||
this.key = new byte[passwd.length];
|
||||
for (int i=0; i<passwd.length; i++)
|
||||
this.key[i] = (byte) (passwd[i] & 0x7f);
|
||||
Arrays.fill(passwd, ' ');
|
||||
Arrays.fill(passwd, '\0');
|
||||
type = keytype;
|
||||
|
||||
// Use the cleaner to zero the key when no longer referenced
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue