7199941: test about AES/ECB mode fails
Fixed the problem of field "blockMode" not having correct value for AES algorithms. Reviewed-by: vinnie
This commit is contained in:
parent
360754471c
commit
0733ebe2f2
@ -193,9 +193,9 @@ final class P11Cipher extends CipherSpi {
|
||||
} else { // DES, DESede, Blowfish
|
||||
blockSize = 8;
|
||||
}
|
||||
this.blockMode =
|
||||
(algoParts.length > 1 ? parseMode(algoParts[1]) : MODE_ECB);
|
||||
}
|
||||
this.blockMode =
|
||||
(algoParts.length > 1 ? parseMode(algoParts[1]) : MODE_ECB);
|
||||
String defPadding = (blockSize == 0 ? "NoPadding" : "PKCS5Padding");
|
||||
String paddingStr =
|
||||
(algoParts.length > 2 ? algoParts[2] : defPadding);
|
||||
|
Loading…
Reference in New Issue
Block a user