jdk/src/share/classes/com/sun/crypto/provider/SunJCE.java
author jjg
Mon, 15 Aug 2011 11:48:20 -0700
changeset 10336 0bb1999251f8
parent 7043 5e2d1edeb2c7
child 12685 8a448b5b9006
permissions -rw-r--r--
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror Reviewed-by: xuelei, mullan Contributed-by: alexandre.boulgakov@oracle.com
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
     2
 * Copyright (c) 1997, 2011, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 3353
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 3353
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 3353
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 3353
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 3353
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
package com.sun.crypto.provider;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
import java.security.AccessController;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
import java.security.Provider;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
import java.security.SecureRandom;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
 * The "SunJCE" Cryptographic Service Provider.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
 * @author Jan Luehe
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
 * @author Sharon Liu
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
 * Defines the "SunJCE" provider.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
 * Supported algorithms and their names:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
 * - RSA encryption (PKCS#1 v1.5 and raw)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
 * - DES
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
 * - DES-EDE
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
 * - AES
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
 * - Blowfish
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
 * - RC2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
 * - ARCFOUR (RC4 compatible)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    59
 * - Cipher modes ECB, CBC, CFB, OFB, PCBC, CTR, and CTS for all block ciphers
90ce3da70b43 Initial load
duke
parents:
diff changeset
    60
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
 * - Cipher padding ISO10126Padding for non-PKCS#5 block ciphers and
90ce3da70b43 Initial load
duke
parents:
diff changeset
    62
 *   NoPadding and PKCS5Padding for all block ciphers
90ce3da70b43 Initial load
duke
parents:
diff changeset
    63
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    64
 * - Password-based Encryption (PBE)
90ce3da70b43 Initial load
duke
parents:
diff changeset
    65
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    66
 * - Diffie-Hellman Key Agreement
90ce3da70b43 Initial load
duke
parents:
diff changeset
    67
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    68
 * - HMAC-MD5, HMAC-SHA1, HMAC-SHA-256, HMAC-SHA-384, HMAC-SHA-512
90ce3da70b43 Initial load
duke
parents:
diff changeset
    69
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
public final class SunJCE extends Provider {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
    private static final long serialVersionUID = 6812507587804302833L;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
    private static final String info = "SunJCE Provider " +
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
    "(implements RSA, DES, Triple DES, AES, Blowfish, ARCFOUR, RC2, PBE, "
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
    + "Diffie-Hellman, HMAC)";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
    private static final String OID_PKCS12_RC2_40 = "1.2.840.113549.1.12.1.6";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    81
    private static final String OID_PKCS12_DESede = "1.2.840.113549.1.12.1.3";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    82
    private static final String OID_PKCS5_MD5_DES = "1.2.840.113549.1.5.3";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    83
    private static final String OID_PKCS5_PBKDF2 = "1.2.840.113549.1.5.12";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
    private static final String OID_PKCS3 = "1.2.840.113549.1.3.1";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    85
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
    /* Are we debugging? -- for developers */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    87
    static final boolean debug = false;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    88
90ce3da70b43 Initial load
duke
parents:
diff changeset
    89
    static final SecureRandom RANDOM = new SecureRandom();
90ce3da70b43 Initial load
duke
parents:
diff changeset
    90
90ce3da70b43 Initial load
duke
parents:
diff changeset
    91
    public SunJCE() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    92
        /* We are the "SunJCE" provider */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    93
        super("SunJCE", 1.7d, info);
90ce3da70b43 Initial load
duke
parents:
diff changeset
    94
90ce3da70b43 Initial load
duke
parents:
diff changeset
    95
        final String BLOCK_MODES = "ECB|CBC|PCBC|CTR|CTS|CFB|OFB" +
90ce3da70b43 Initial load
duke
parents:
diff changeset
    96
            "|CFB8|CFB16|CFB24|CFB32|CFB40|CFB48|CFB56|CFB64" +
90ce3da70b43 Initial load
duke
parents:
diff changeset
    97
            "|OFB8|OFB16|OFB24|OFB32|OFB40|OFB48|OFB56|OFB64";
90ce3da70b43 Initial load
duke
parents:
diff changeset
    98
        final String BLOCK_MODES128 = BLOCK_MODES +
90ce3da70b43 Initial load
duke
parents:
diff changeset
    99
            "|CFB72|CFB80|CFB88|CFB96|CFB104|CFB112|CFB120|CFB128" +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   100
            "|OFB72|OFB80|OFB88|OFB96|OFB104|OFB112|OFB120|OFB128";
90ce3da70b43 Initial load
duke
parents:
diff changeset
   101
        final String BLOCK_PADS = "NOPADDING|PKCS5PADDING|ISO10126PADDING";
90ce3da70b43 Initial load
duke
parents:
diff changeset
   102
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   103
        AccessController.doPrivileged(
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   104
            new java.security.PrivilegedAction<Object>() {
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   105
                public Object run() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   106
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   107
                    /*
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   108
                     * Cipher engines
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   109
                     */
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   110
                    put("Cipher.RSA", "com.sun.crypto.provider.RSACipher");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   111
                    put("Cipher.RSA SupportedModes", "ECB");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   112
                    put("Cipher.RSA SupportedPaddings",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   113
                            "NOPADDING|PKCS1PADDING|OAEPWITHMD5ANDMGF1PADDING"
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   114
                            + "|OAEPWITHSHA1ANDMGF1PADDING"
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   115
                            + "|OAEPWITHSHA-1ANDMGF1PADDING"
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   116
                            + "|OAEPWITHSHA-256ANDMGF1PADDING"
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   117
                            + "|OAEPWITHSHA-384ANDMGF1PADDING"
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   118
                            + "|OAEPWITHSHA-512ANDMGF1PADDING");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   119
                    put("Cipher.RSA SupportedKeyClasses",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   120
                            "java.security.interfaces.RSAPublicKey" +
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   121
                            "|java.security.interfaces.RSAPrivateKey");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   123
                    put("Cipher.DES", "com.sun.crypto.provider.DESCipher");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   124
                    put("Cipher.DES SupportedModes", BLOCK_MODES);
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   125
                    put("Cipher.DES SupportedPaddings", BLOCK_PADS);
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   126
                    put("Cipher.DES SupportedKeyFormats", "RAW");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   128
                    put("Cipher.DESede", "com.sun.crypto.provider.DESedeCipher");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   129
                    put("Alg.Alias.Cipher.TripleDES", "DESede");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   130
                    put("Cipher.DESede SupportedModes", BLOCK_MODES);
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   131
                    put("Cipher.DESede SupportedPaddings", BLOCK_PADS);
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   132
                    put("Cipher.DESede SupportedKeyFormats", "RAW");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   134
                    put("Cipher.DESedeWrap",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   135
                        "com.sun.crypto.provider.DESedeWrapCipher");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   136
                    put("Cipher.DESedeWrap SupportedModes", "CBC");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   137
                    put("Cipher.DESedeWrap SupportedPaddings", "NOPADDING");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   138
                    put("Cipher.DESedeWrap SupportedKeyFormats", "RAW");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   139
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   140
                    put("Cipher.PBEWithMD5AndDES",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   141
                        "com.sun.crypto.provider.PBEWithMD5AndDESCipher");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   142
                    put("Alg.Alias.Cipher.OID."+OID_PKCS5_MD5_DES,
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   143
                        "PBEWithMD5AndDES");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   144
                    put("Alg.Alias.Cipher."+OID_PKCS5_MD5_DES,
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   145
                        "PBEWithMD5AndDES");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   146
                    put("Cipher.PBEWithMD5AndTripleDES",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   147
                        "com.sun.crypto.provider.PBEWithMD5AndTripleDESCipher");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   148
                    put("Cipher.PBEWithSHA1AndRC2_40",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   149
                        "com.sun.crypto.provider.PKCS12PBECipherCore$" +
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   150
                        "PBEWithSHA1AndRC2_40");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   151
                    put("Alg.Alias.Cipher.OID." + OID_PKCS12_RC2_40,
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   152
                        "PBEWithSHA1AndRC2_40");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   153
                    put("Alg.Alias.Cipher." + OID_PKCS12_RC2_40,
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   154
                        "PBEWithSHA1AndRC2_40");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   155
                    put("Cipher.PBEWithSHA1AndDESede",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   156
                        "com.sun.crypto.provider.PKCS12PBECipherCore$" +
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   157
                        "PBEWithSHA1AndDESede");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   158
                    put("Alg.Alias.Cipher.OID." + OID_PKCS12_DESede,
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   159
                        "PBEWithSHA1AndDESede");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   160
                    put("Alg.Alias.Cipher." + OID_PKCS12_DESede,
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   161
                        "PBEWithSHA1AndDESede");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   163
                    put("Cipher.Blowfish",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   164
                        "com.sun.crypto.provider.BlowfishCipher");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   165
                    put("Cipher.Blowfish SupportedModes", BLOCK_MODES);
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   166
                    put("Cipher.Blowfish SupportedPaddings", BLOCK_PADS);
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   167
                    put("Cipher.Blowfish SupportedKeyFormats", "RAW");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   168
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   169
                    put("Cipher.AES", "com.sun.crypto.provider.AESCipher");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   170
                    put("Alg.Alias.Cipher.Rijndael", "AES");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   171
                    put("Cipher.AES SupportedModes", BLOCK_MODES128);
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   172
                    put("Cipher.AES SupportedPaddings", BLOCK_PADS);
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   173
                    put("Cipher.AES SupportedKeyFormats", "RAW");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   175
                    put("Cipher.AESWrap", "com.sun.crypto.provider.AESWrapCipher");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   176
                    put("Cipher.AESWrap SupportedModes", "ECB");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   177
                    put("Cipher.AESWrap SupportedPaddings", "NOPADDING");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   178
                    put("Cipher.AESWrap SupportedKeyFormats", "RAW");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   180
                    put("Cipher.RC2",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   181
                        "com.sun.crypto.provider.RC2Cipher");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   182
                    put("Cipher.RC2 SupportedModes", BLOCK_MODES);
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   183
                    put("Cipher.RC2 SupportedPaddings", BLOCK_PADS);
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   184
                    put("Cipher.RC2 SupportedKeyFormats", "RAW");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   186
                    put("Cipher.ARCFOUR",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   187
                        "com.sun.crypto.provider.ARCFOURCipher");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   188
                    put("Alg.Alias.Cipher.RC4", "ARCFOUR");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   189
                    put("Cipher.ARCFOUR SupportedModes", "ECB");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   190
                    put("Cipher.ARCFOUR SupportedPaddings", "NOPADDING");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   191
                    put("Cipher.ARCFOUR SupportedKeyFormats", "RAW");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   193
                    /*
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   194
                     *  Key(pair) Generator engines
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   195
                     */
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   196
                    put("KeyGenerator.DES",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   197
                        "com.sun.crypto.provider.DESKeyGenerator");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   199
                    put("KeyGenerator.DESede",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   200
                        "com.sun.crypto.provider.DESedeKeyGenerator");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   201
                    put("Alg.Alias.KeyGenerator.TripleDES", "DESede");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   203
                    put("KeyGenerator.Blowfish",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   204
                        "com.sun.crypto.provider.BlowfishKeyGenerator");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   206
                    put("KeyGenerator.AES",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   207
                        "com.sun.crypto.provider.AESKeyGenerator");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   208
                    put("Alg.Alias.KeyGenerator.Rijndael", "AES");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   210
                    put("KeyGenerator.RC2",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   211
                        "com.sun.crypto.provider.KeyGeneratorCore$" +
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   212
                        "RC2KeyGenerator");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   213
                    put("KeyGenerator.ARCFOUR",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   214
                        "com.sun.crypto.provider.KeyGeneratorCore$" +
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   215
                        "ARCFOURKeyGenerator");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   216
                    put("Alg.Alias.KeyGenerator.RC4", "ARCFOUR");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   218
                    put("KeyGenerator.HmacMD5",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   219
                        "com.sun.crypto.provider.HmacMD5KeyGenerator");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   221
                    put("KeyGenerator.HmacSHA1",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   222
                        "com.sun.crypto.provider.HmacSHA1KeyGenerator");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   224
                    put("KeyGenerator.HmacSHA256",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   225
                        "com.sun.crypto.provider.KeyGeneratorCore$HmacSHA256KG");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   226
                    put("KeyGenerator.HmacSHA384",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   227
                        "com.sun.crypto.provider.KeyGeneratorCore$HmacSHA384KG");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   228
                    put("KeyGenerator.HmacSHA512",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   229
                        "com.sun.crypto.provider.KeyGeneratorCore$HmacSHA512KG");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   231
                    put("KeyPairGenerator.DiffieHellman",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   232
                        "com.sun.crypto.provider.DHKeyPairGenerator");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   233
                    put("Alg.Alias.KeyPairGenerator.DH", "DiffieHellman");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   234
                    put("Alg.Alias.KeyPairGenerator.OID."+OID_PKCS3,
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   235
                        "DiffieHellman");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   236
                    put("Alg.Alias.KeyPairGenerator."+OID_PKCS3,
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   237
                        "DiffieHellman");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   238
                    /*
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   239
                     * Algorithm parameter generation engines
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   240
                     */
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   241
                    put("AlgorithmParameterGenerator.DiffieHellman",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   242
                        "com.sun.crypto.provider.DHParameterGenerator");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   243
                    put("Alg.Alias.AlgorithmParameterGenerator.DH",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   244
                        "DiffieHellman");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   245
                    put("Alg.Alias.AlgorithmParameterGenerator.OID."+OID_PKCS3,
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   246
                        "DiffieHellman");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   247
                    put("Alg.Alias.AlgorithmParameterGenerator."+OID_PKCS3,
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   248
                        "DiffieHellman");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   249
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   250
                    /*
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   251
                     * Key Agreement engines
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   252
                     */
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   253
                    put("KeyAgreement.DiffieHellman",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   254
                        "com.sun.crypto.provider.DHKeyAgreement");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   255
                    put("Alg.Alias.KeyAgreement.DH", "DiffieHellman");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   256
                    put("Alg.Alias.KeyAgreement.OID."+OID_PKCS3, "DiffieHellman");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   257
                    put("Alg.Alias.KeyAgreement."+OID_PKCS3, "DiffieHellman");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   258
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   259
                    put("KeyAgreement.DiffieHellman SupportedKeyClasses",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   260
                        "javax.crypto.interfaces.DHPublicKey" +
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   261
                        "|javax.crypto.interfaces.DHPrivateKey");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   262
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   263
                    /*
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   264
                     * Algorithm Parameter engines
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   265
                     */
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   266
                    put("AlgorithmParameters.DiffieHellman",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   267
                        "com.sun.crypto.provider.DHParameters");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   268
                    put("Alg.Alias.AlgorithmParameters.DH", "DiffieHellman");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   269
                    put("Alg.Alias.AlgorithmParameters.OID."+OID_PKCS3,
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   270
                        "DiffieHellman");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   271
                    put("Alg.Alias.AlgorithmParameters."+OID_PKCS3,
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   272
                        "DiffieHellman");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   273
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   274
                    put("AlgorithmParameters.DES",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   275
                        "com.sun.crypto.provider.DESParameters");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   276
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   277
                    put("AlgorithmParameters.DESede",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   278
                        "com.sun.crypto.provider.DESedeParameters");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   279
                    put("Alg.Alias.AlgorithmParameters.TripleDES", "DESede");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   280
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   281
                    put("AlgorithmParameters.PBE",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   282
                        "com.sun.crypto.provider.PBEParameters");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   283
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   284
                    put("AlgorithmParameters.PBEWithMD5AndDES",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   285
                        "com.sun.crypto.provider.PBEParameters");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   286
                    put("Alg.Alias.AlgorithmParameters.OID."+OID_PKCS5_MD5_DES,
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   287
                        "PBEWithMD5AndDES");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   288
                    put("Alg.Alias.AlgorithmParameters."+OID_PKCS5_MD5_DES,
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   289
                        "PBEWithMD5AndDES");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   290
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   291
                    put("AlgorithmParameters.PBEWithMD5AndTripleDES",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   292
                        "com.sun.crypto.provider.PBEParameters");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   293
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   294
                    put("AlgorithmParameters.PBEWithSHA1AndDESede",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   295
                        "com.sun.crypto.provider.PBEParameters");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   296
                    put("Alg.Alias.AlgorithmParameters.OID."+OID_PKCS12_DESede,
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   297
                        "PBEWithSHA1AndDESede");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   298
                    put("Alg.Alias.AlgorithmParameters."+OID_PKCS12_DESede,
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   299
                        "PBEWithSHA1AndDESede");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   300
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   301
                    put("AlgorithmParameters.PBEWithSHA1AndRC2_40",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   302
                        "com.sun.crypto.provider.PBEParameters");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   303
                    put("Alg.Alias.AlgorithmParameters.OID."+OID_PKCS12_RC2_40,
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   304
                        "PBEWithSHA1AndRC2_40");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   305
                    put("Alg.Alias.AlgorithmParameters." + OID_PKCS12_RC2_40,
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   306
                        "PBEWithSHA1AndRC2_40");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   307
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   308
                    put("AlgorithmParameters.Blowfish",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   309
                        "com.sun.crypto.provider.BlowfishParameters");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   310
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   311
                    put("AlgorithmParameters.AES",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   312
                        "com.sun.crypto.provider.AESParameters");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   313
                    put("Alg.Alias.AlgorithmParameters.Rijndael", "AES");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   314
90ce3da70b43 Initial load
duke
parents:
diff changeset
   315
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   316
                    put("AlgorithmParameters.RC2",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   317
                        "com.sun.crypto.provider.RC2Parameters");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   318
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   319
                    put("AlgorithmParameters.OAEP",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   320
                        "com.sun.crypto.provider.OAEPParameters");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   321
90ce3da70b43 Initial load
duke
parents:
diff changeset
   322
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   323
                    /*
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   324
                     * Key factories
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   325
                     */
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   326
                    put("KeyFactory.DiffieHellman",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   327
                        "com.sun.crypto.provider.DHKeyFactory");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   328
                    put("Alg.Alias.KeyFactory.DH", "DiffieHellman");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   329
                    put("Alg.Alias.KeyFactory.OID."+OID_PKCS3,
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   330
                        "DiffieHellman");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   331
                    put("Alg.Alias.KeyFactory."+OID_PKCS3, "DiffieHellman");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   332
                    /*
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   333
                     * Secret-key factories
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   334
                     */
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   335
                    put("SecretKeyFactory.DES",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   336
                        "com.sun.crypto.provider.DESKeyFactory");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   337
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   338
                    put("SecretKeyFactory.DESede",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   339
                        "com.sun.crypto.provider.DESedeKeyFactory");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   340
                    put("Alg.Alias.SecretKeyFactory.TripleDES", "DESede");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   341
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   342
                    put("SecretKeyFactory.PBEWithMD5AndDES",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   343
                        "com.sun.crypto.provider.PBEKeyFactory$PBEWithMD5AndDES"
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   344
                        );
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   345
                    put("Alg.Alias.SecretKeyFactory.OID."+OID_PKCS5_MD5_DES,
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   346
                        "PBEWithMD5AndDES");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   347
                    put("Alg.Alias.SecretKeyFactory."+OID_PKCS5_MD5_DES,
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   348
                        "PBEWithMD5AndDES");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   349
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   350
                    put("Alg.Alias.SecretKeyFactory.PBE",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   351
                        "PBEWithMD5AndDES");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   352
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   353
                    /*
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   354
                     * Internal in-house crypto algorithm used for
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   355
                     * the JCEKS keystore type.  Since this was developed
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   356
                     * internally, there isn't an OID corresponding to this
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   357
                     * algorithm.
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   358
                     */
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   359
                    put("SecretKeyFactory.PBEWithMD5AndTripleDES",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   360
                        "com.sun.crypto.provider.PBEKeyFactory$" +
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   361
                        "PBEWithMD5AndTripleDES"
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   362
                        );
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   363
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   364
                    put("SecretKeyFactory.PBEWithSHA1AndDESede",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   365
                        "com.sun.crypto.provider.PBEKeyFactory$PBEWithSHA1AndDESede"
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   366
                        );
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   367
                    put("Alg.Alias.SecretKeyFactory.OID."+OID_PKCS12_DESede,
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   368
                        "PBEWithSHA1AndDESede");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   369
                    put("Alg.Alias.SecretKeyFactory." + OID_PKCS12_DESede,
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   370
                        "PBEWithSHA1AndDESede");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   371
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   372
                    put("SecretKeyFactory.PBEWithSHA1AndRC2_40",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   373
                        "com.sun.crypto.provider.PBEKeyFactory$PBEWithSHA1AndRC2_40"
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   374
                        );
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   375
                    put("Alg.Alias.SecretKeyFactory.OID." + OID_PKCS12_RC2_40,
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   376
                        "PBEWithSHA1AndRC2_40");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   377
                    put("Alg.Alias.SecretKeyFactory." + OID_PKCS12_RC2_40,
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   378
                        "PBEWithSHA1AndRC2_40");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   379
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   380
                    put("SecretKeyFactory.PBKDF2WithHmacSHA1",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   381
                        "com.sun.crypto.provider.PBKDF2HmacSHA1Factory");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   382
                    put("Alg.Alias.SecretKeyFactory.OID." + OID_PKCS5_PBKDF2,
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   383
                        "PBKDF2WithHmacSHA1");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   384
                    put("Alg.Alias.SecretKeyFactory." + OID_PKCS5_PBKDF2,
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   385
                        "PBKDF2WithHmacSHA1");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   386
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   387
                    /*
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   388
                     * MAC
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   389
                     */
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   390
                    put("Mac.HmacMD5", "com.sun.crypto.provider.HmacMD5");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   391
                    put("Mac.HmacSHA1", "com.sun.crypto.provider.HmacSHA1");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   392
                    put("Mac.HmacSHA256",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   393
                        "com.sun.crypto.provider.HmacCore$HmacSHA256");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   394
                    put("Mac.HmacSHA384",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   395
                        "com.sun.crypto.provider.HmacCore$HmacSHA384");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   396
                    put("Mac.HmacSHA512",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   397
                        "com.sun.crypto.provider.HmacCore$HmacSHA512");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   398
                    put("Mac.HmacPBESHA1",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   399
                        "com.sun.crypto.provider.HmacPKCS12PBESHA1");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   400
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   401
                    put("Mac.SslMacMD5",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   402
                        "com.sun.crypto.provider.SslMacCore$SslMacMD5");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   403
                    put("Mac.SslMacSHA1",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   404
                        "com.sun.crypto.provider.SslMacCore$SslMacSHA1");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   405
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   406
                    put("Mac.HmacMD5 SupportedKeyFormats", "RAW");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   407
                    put("Mac.HmacSHA1 SupportedKeyFormats", "RAW");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   408
                    put("Mac.HmacSHA256 SupportedKeyFormats", "RAW");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   409
                    put("Mac.HmacSHA384 SupportedKeyFormats", "RAW");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   410
                    put("Mac.HmacSHA512 SupportedKeyFormats", "RAW");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   411
                    put("Mac.HmacPBESHA1 SupportedKeyFormats", "RAW");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   412
                    put("Mac.SslMacMD5 SupportedKeyFormats", "RAW");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   413
                    put("Mac.SslMacSHA1 SupportedKeyFormats", "RAW");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   414
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   415
                    /*
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   416
                     * KeyStore
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   417
                     */
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   418
                    put("KeyStore.JCEKS", "com.sun.crypto.provider.JceKeyStore");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   419
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   420
                    /*
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   421
                     * SSL/TLS mechanisms
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   422
                     *
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   423
                     * These are strictly internal implementations and may
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   424
                     * be changed at any time.  These names were chosen
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   425
                     * because PKCS11/SunPKCS11 does not yet have TLS1.2
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   426
                     * mechanisms, and it will cause calls to come here.
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   427
                     */
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   428
                    put("KeyGenerator.SunTlsPrf",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   429
                            "com.sun.crypto.provider.TlsPrfGenerator$V10");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   430
                    put("KeyGenerator.SunTls12Prf",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   431
                            "com.sun.crypto.provider.TlsPrfGenerator$V12");
7043
5e2d1edeb2c7 6916074: Add support for TLS 1.2
xuelei
parents: 5506
diff changeset
   432
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   433
                    put("KeyGenerator.SunTlsMasterSecret",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   434
                        "com.sun.crypto.provider.TlsMasterSecretGenerator");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   435
                    put("Alg.Alias.KeyGenerator.SunTls12MasterSecret",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   436
                        "SunTlsMasterSecret");
7043
5e2d1edeb2c7 6916074: Add support for TLS 1.2
xuelei
parents: 5506
diff changeset
   437
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   438
                    put("KeyGenerator.SunTlsKeyMaterial",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   439
                        "com.sun.crypto.provider.TlsKeyMaterialGenerator");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   440
                    put("Alg.Alias.KeyGenerator.SunTls12KeyMaterial",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   441
                        "SunTlsKeyMaterial");
7043
5e2d1edeb2c7 6916074: Add support for TLS 1.2
xuelei
parents: 5506
diff changeset
   442
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   443
                    put("KeyGenerator.SunTlsRsaPremasterSecret",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   444
                        "com.sun.crypto.provider.TlsRsaPremasterSecretGenerator");
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   445
                    put("Alg.Alias.KeyGenerator.SunTls12RsaPremasterSecret",
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   446
                        "SunTlsRsaPremasterSecret");
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   447
10336
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   448
                    return null;
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   449
                }
0bb1999251f8 7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents: 7043
diff changeset
   450
            });
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   451
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   452
}