test/jdk/com/sun/crypto/provider/Cipher/RSA/TestOAEPWithParams.java
branchJDK-8145252-TLS13-branch
changeset 56542 56aaa6cb3693
parent 47216 71c04702a3d5
child 56592 b1902b22005e
equal deleted inserted replaced
56541:92cbbfc996f3 56542:56aaa6cb3693
     1 /*
     1 /*
     2  * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    45     private static PublicKey publicKey;
    45     private static PublicKey publicKey;
    46 
    46 
    47     private static Random random = new Random();
    47     private static Random random = new Random();
    48 
    48 
    49     private static String MD[] = {
    49     private static String MD[] = {
    50         "MD5", "SHA1", "SHA-224", "SHA-256"
    50         "MD5", "SHA1", "SHA-224", "SHA-256", "SHA-512/224", "SHA-512/256"
    51     };
    51     };
    52     private static int DATA_LENGTH[] = {
    52     private static int DATA_LENGTH[] = {
    53         62, 54, 34, 30
    53         62, 54, 34, 30, 34, 30
    54     };
    54     };
    55     public static void main(String[] args) throws Exception {
    55     public static void main(String[] args) throws Exception {
    56         long start = System.currentTimeMillis();
    56         long start = System.currentTimeMillis();
    57         cp = Security.getProvider("SunJCE");
    57         cp = Security.getProvider("SunJCE");
    58         System.out.println("Testing provider " + cp.getName() + "...");
    58         System.out.println("Testing provider " + cp.getName() + "...");