提交 b2dce4a5 编写于 作者: V valeriep

7199941: test about AES/ECB mode fails

Summary: Fixed the problem of field "blockMode" not having correct value for AES algorithms.
Reviewed-by: vinnie
上级 e96cf10d
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册