mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8268621: SunJCE provider may throw unexpected NPE for un-initialized AES KW/KWP Ciphers
Reviewed-by: xuelei
This commit is contained in:
parent
702e3ff054
commit
ee3015968d
4 changed files with 47 additions and 16 deletions
|
@ -42,7 +42,7 @@ import static com.sun.crypto.provider.KWUtil.*;
|
|||
class AESKeyWrapPadded extends FeedbackCipher {
|
||||
|
||||
// default integrity check value (icv) if iv is not supplied
|
||||
private static final byte[] ICV2 = { // SEMI_BLKSIZE/2 long
|
||||
static final byte[] ICV2 = { // SEMI_BLKSIZE/2 long
|
||||
(byte) 0xA6, (byte) 0x59, (byte) 0x59, (byte) 0xA6,
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue