<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
I think you might have forgotten the PKCS11 implementation Sean. <br>
e.g.
src/jdk.crypto.pkcs11/share/classes/sun/security/pkcs11/P11KeyPairGenerator.java<br>
<br>
On a side note, I notice a discrepancy in the KeyPairGenerator
javadoc. It's more of an implNote issue : <br>
<br>
<blockquote type="cite">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<span style="color: rgb(71, 71, 71); font-family: 'DejaVu Serif',
Georgia, 'Times New Roman', Times, serif; font-size: 14px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 19.6px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: 1; word-spacing: 0px;
-webkit-text-stroke-width: 0px; display: inline !important;
float: none; background-color: rgb(255, 255, 255);">If the
algorithm is the<span class="Apple-converted-space"> </span></span><i
style="color: rgb(71, 71, 71); font-family: 'DejaVu Serif',
Georgia, 'Times New Roman', Times, serif; font-size: 14px;
font-variant: normal; font-weight: normal; letter-spacing:
normal; line-height: 19.6px; orphans: auto; text-align: left;
text-indent: 0px; text-transform: none; white-space: normal;
widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255);">DSA</i><span
style="color: rgb(71, 71, 71); font-family: 'DejaVu Serif',
Georgia, 'Times New Roman', Times, serif; font-size: 14px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 19.6px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: 1; word-spacing: 0px;
-webkit-text-stroke-width: 0px; display: inline !important;
float: none; background-color: rgb(255, 255, 255);"><span
class="Apple-converted-space"> </span>algorithm, and the
keysize (modulus size) is 512, 768, or 1024, then the<span
class="Apple-converted-space"> </span></span><i style="color:
rgb(71, 71, 71); font-family: 'DejaVu Serif', Georgia, 'Times
New Roman', Times, serif; font-size: 14px; font-variant: normal;
font-weight: normal; letter-spacing: normal; line-height:
19.6px; orphans: auto; text-align: left; text-indent: 0px;
text-transform: none; white-space: normal; widows: 1;
word-spacing: 0px; -webkit-text-stroke-width: 0px;
background-color: rgb(255, 255, 255);">Sun</i><span
style="color: rgb(71, 71, 71); font-family: 'DejaVu Serif',
Georgia, 'Times New Roman', Times, serif; font-size: 14px;
font-style: normal; font-variant: normal; font-weight: normal;
letter-spacing: normal; line-height: 19.6px; orphans: auto;
text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: 1; word-spacing: 0px;
-webkit-text-stroke-width: 0px; display: inline !important;
float: none; background-color: rgb(255, 255, 255);"><span
class="Apple-converted-space"> </span>provider uses a set of
precomputed values for the<span class="Apple-converted-space"> </span></span><code
style="font-family: 'DejaVu Sans Mono', monospace; font-size:
14px; padding-top: 4px; margin-top: 8px; line-height: 19.6px;
color: rgb(71, 71, 71); font-style: normal; font-variant:
normal; font-weight: normal; letter-spacing: normal; orphans:
auto; text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: 1; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255);">p</code><span style="color: rgb(71, 71, 71); font-family:
'DejaVu Serif', Georgia, 'Times New Roman', Times, serif;
font-size: 14px; font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal; line-height:
19.6px; orphans: auto; text-align: left; text-indent: 0px;
text-transform: none; white-space: normal; widows: 1;
word-spacing: 0px; -webkit-text-stroke-width: 0px; display:
inline !important; float: none; background-color: rgb(255, 255,
255);">,<span class="Apple-converted-space"> </span></span><code
style="font-family: 'DejaVu Sans Mono', monospace; font-size:
14px; padding-top: 4px; margin-top: 8px; line-height: 19.6px;
color: rgb(71, 71, 71); font-style: normal; font-variant:
normal; font-weight: normal; letter-spacing: normal; orphans:
auto; text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: 1; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255);">q</code><span style="color: rgb(71, 71, 71); font-family:
'DejaVu Serif', Georgia, 'Times New Roman', Times, serif;
font-size: 14px; font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal; line-height:
19.6px; orphans: auto; text-align: left; text-indent: 0px;
text-transform: none; white-space: normal; widows: 1;
word-spacing: 0px; -webkit-text-stroke-width: 0px; display:
inline !important; float: none; background-color: rgb(255, 255,
255);">, and<span class="Apple-converted-space"> </span></span><code
style="font-family: 'DejaVu Sans Mono', monospace; font-size:
14px; padding-top: 4px; margin-top: 8px; line-height: 19.6px;
color: rgb(71, 71, 71); font-style: normal; font-variant:
normal; font-weight: normal; letter-spacing: normal; orphans:
auto; text-align: left; text-indent: 0px; text-transform: none;
white-space: normal; widows: 1; word-spacing: 0px;
-webkit-text-stroke-width: 0px; background-color: rgb(255, 255,
255);">g</code><span style="color: rgb(71, 71, 71); font-family:
'DejaVu Serif', Georgia, 'Times New Roman', Times, serif;
font-size: 14px; font-style: normal; font-variant: normal;
font-weight: normal; letter-spacing: normal; line-height:
19.6px; orphans: auto; text-align: left; text-indent: 0px;
text-transform: none; white-space: normal; widows: 1;
word-spacing: 0px; -webkit-text-stroke-width: 0px; display:
inline !important; float: none; background-color: rgb(255, 255,
255);"><span class="Apple-converted-space"> </span>parameters.</span></blockquote>
<br>
I think we also cache 2048 bit values. Maybe you can modify.<br>
<pre class="moz-signature" cols="72">Regards,
Sean.</pre>
<div class="moz-cite-prefix">On 24/02/16 14:54, Sean Mullan wrote:<br>
</div>
<blockquote cite="mid:56CDC426.4020708@oracle.com" type="cite">Please
review this fix to improve security defaults by increasing the
default keysize of the RSA, DSA, and DiffieHellman implementations
of AlgorithmParameterGenerator and KeyPairGenerator from 1024 to
2048 bits:
<br>
<br>
<a class="moz-txt-link-freetext" href="http://cr.openjdk.java.net/~mullan/webrevs/8138653/webrev.00/">http://cr.openjdk.java.net/~mullan/webrevs/8138653/webrev.00/</a>
<br>
<br>
Thanks,
<br>
Sean
<br>
<br>
</blockquote>
<br>
</body>
</html>