提交 28d92dad 编写于 作者: C coffeys

8190497: DHParameterSpec.getL() returns zero after JDK-8072452

Reviewed-by: xuelei
上级 2ab4e00c
......@@ -133,6 +133,9 @@ public final class DHParameterGenerator extends AlgorithmParameterGeneratorSpi {
@Override
protected AlgorithmParameters engineGenerateParameters() {
if (this.exponentSize == 0) {
this.exponentSize = this.primeSize - 1;
}
if (random == null) {
random = SunJCE.getRandom();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册