jdk/test/sun/security/pkcs11/KeyAgreement/SupportedDHKeys.java
changeset 40975 680639c9b307
parent 37884 7f404dcfb3dc
child 42693 6645de32a866
equal deleted inserted replaced
40974:42921b893642 40975:680639c9b307
    19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
    20  * or visit www.oracle.com if you need additional information or have any
    20  * or visit www.oracle.com if you need additional information or have any
    21  * questions.
    21  * questions.
    22  */
    22  */
    23 
    23 
    24 /**
    24 /*
    25  * @test
    25  * @test
    26  * @bug 8072452
    26  * @bug 8072452
    27  * @summary Support DHE sizes up to 8192-bits and DSA sizes up to 3072-bits
    27  * @summary Support DHE sizes up to 8192-bits and DSA sizes up to 3072-bits
    28  * @library ..
    28  * @library ..
       
    29  * @modules jdk.crypto.pkcs11
    29  * @run main/othervm SupportedDHKeys
    30  * @run main/othervm SupportedDHKeys
    30  * @run main/othervm SupportedDHKeys sm
    31  * @run main/othervm SupportedDHKeys sm
    31  */
    32  */
    32 
    33 
    33 import java.math.BigInteger;
    34 import java.math.BigInteger;
    34 
    35 import java.security.KeyPair;
    35 import java.security.*;
    36 import java.security.KeyPairGenerator;
    36 import javax.crypto.*;
    37 import java.security.Provider;
    37 import javax.crypto.interfaces.*;
    38 import javax.crypto.interfaces.DHPrivateKey;
    38 import javax.crypto.spec.*;
    39 import javax.crypto.interfaces.DHPublicKey;
       
    40 import javax.crypto.spec.DHParameterSpec;
    39 
    41 
    40 public class SupportedDHKeys extends PKCS11Test {
    42 public class SupportedDHKeys extends PKCS11Test {
    41 
    43 
    42     /*
    44     /*
    43      * Sizes and values for various lengths.
    45      * Sizes and values for various lengths.