author | redestad |
Mon, 21 Dec 2015 20:54:00 +0100 | |
changeset 34774 | 03b4e6dc367b |
parent 33991 | 619bfc4d582d |
child 37796 | 256c45c4af5d |
permissions | -rw-r--r-- |
2 | 1 |
/* |
33991
619bfc4d582d
8130696: Security Providers need to have their version numbers updated for JDK 9
iris
parents:
30033
diff
changeset
|
2 |
* Copyright (c) 1997, 2015, Oracle and/or its affiliates. All rights reserved. |
2 | 3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 |
* |
|
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 |
|
5506 | 7 |
* published by the Free Software Foundation. Oracle designates this |
2 | 8 |
* particular file as subject to the "Classpath" exception as provided |
5506 | 9 |
* by Oracle in the LICENSE file that accompanied this code. |
2 | 10 |
* |
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
|
15 |
* accompanied this code). |
|
16 |
* |
|
17 |
* You should have received a copy of the GNU General Public License version |
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
|
20 |
* |
|
5506 | 21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
22 |
* or visit www.oracle.com if you need additional information or have any |
|
23 |
* questions. |
|
2 | 24 |
*/ |
25 |
||
26 |
package com.sun.crypto.provider; |
|
27 |
||
28 |
import java.security.AccessController; |
|
29 |
import java.security.Provider; |
|
30 |
import java.security.SecureRandom; |
|
31 |
||
32 |
||
33 |
/** |
|
34 |
* The "SunJCE" Cryptographic Service Provider. |
|
35 |
* |
|
36 |
* @author Jan Luehe |
|
37 |
* @author Sharon Liu |
|
38 |
*/ |
|
39 |
||
40 |
/** |
|
41 |
* Defines the "SunJCE" provider. |
|
42 |
* |
|
43 |
* Supported algorithms and their names: |
|
44 |
* |
|
45 |
* - RSA encryption (PKCS#1 v1.5 and raw) |
|
46 |
* |
|
47 |
* - DES |
|
48 |
* |
|
49 |
* - DES-EDE |
|
50 |
* |
|
51 |
* - AES |
|
52 |
* |
|
53 |
* - Blowfish |
|
54 |
* |
|
55 |
* - RC2 |
|
56 |
* |
|
57 |
* - ARCFOUR (RC4 compatible) |
|
58 |
* |
|
59 |
* - Cipher modes ECB, CBC, CFB, OFB, PCBC, CTR, and CTS for all block ciphers |
|
15008 | 60 |
* and mode GCM for AES cipher |
2 | 61 |
* |
62 |
* - Cipher padding ISO10126Padding for non-PKCS#5 block ciphers and |
|
63 |
* NoPadding and PKCS5Padding for all block ciphers |
|
64 |
* |
|
65 |
* - Password-based Encryption (PBE) |
|
66 |
* |
|
67 |
* - Diffie-Hellman Key Agreement |
|
68 |
* |
|
12685 | 69 |
* - HMAC-MD5, HMAC-SHA1, HMAC-SHA-224, HMAC-SHA-256, HMAC-SHA-384, HMAC-SHA-512 |
2 | 70 |
* |
71 |
*/ |
|
72 |
||
73 |
public final class SunJCE extends Provider { |
|
74 |
||
75 |
private static final long serialVersionUID = 6812507587804302833L; |
|
76 |
||
77 |
private static final String info = "SunJCE Provider " + |
|
78 |
"(implements RSA, DES, Triple DES, AES, Blowfish, ARCFOUR, RC2, PBE, " |
|
79 |
+ "Diffie-Hellman, HMAC)"; |
|
80 |
||
14405
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
81 |
private static final String OID_PKCS12_RC4_128 = "1.2.840.113549.1.12.1.1"; |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
82 |
private static final String OID_PKCS12_RC4_40 = "1.2.840.113549.1.12.1.2"; |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
83 |
private static final String OID_PKCS12_DESede = "1.2.840.113549.1.12.1.3"; |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
84 |
private static final String OID_PKCS12_RC2_128 = "1.2.840.113549.1.12.1.5"; |
2 | 85 |
private static final String OID_PKCS12_RC2_40 = "1.2.840.113549.1.12.1.6"; |
86 |
private static final String OID_PKCS5_MD5_DES = "1.2.840.113549.1.5.3"; |
|
87 |
private static final String OID_PKCS5_PBKDF2 = "1.2.840.113549.1.5.12"; |
|
14405
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
88 |
private static final String OID_PKCS5_PBES2 = "1.2.840.113549.1.5.13"; |
2 | 89 |
private static final String OID_PKCS3 = "1.2.840.113549.1.3.1"; |
90 |
||
91 |
/* Are we debugging? -- for developers */ |
|
92 |
static final boolean debug = false; |
|
93 |
||
16909
78a1749a43e2
7171982: Cipher getParameters() throws RuntimeException: Cannot find SunJCE provider
vinnie
parents:
15010
diff
changeset
|
94 |
// Instance of this provider, so we don't have to call the provider list |
78a1749a43e2
7171982: Cipher getParameters() throws RuntimeException: Cannot find SunJCE provider
vinnie
parents:
15010
diff
changeset
|
95 |
// to find ourselves or run the risk of not being in the list. |
34774
03b4e6dc367b
8145680: Remove unnecessary explicit initialization of volatile variables in java.base
redestad
parents:
33991
diff
changeset
|
96 |
private static volatile SunJCE instance; |
16909
78a1749a43e2
7171982: Cipher getParameters() throws RuntimeException: Cannot find SunJCE provider
vinnie
parents:
15010
diff
changeset
|
97 |
|
15010 | 98 |
// lazy initialize SecureRandom to avoid potential recursion if Sun |
99 |
// provider has not been installed yet |
|
100 |
private static class SecureRandomHolder { |
|
101 |
static final SecureRandom RANDOM = new SecureRandom(); |
|
102 |
} |
|
103 |
static SecureRandom getRandom() { return SecureRandomHolder.RANDOM; } |
|
2 | 104 |
|
105 |
public SunJCE() { |
|
106 |
/* We are the "SunJCE" provider */ |
|
33991
619bfc4d582d
8130696: Security Providers need to have their version numbers updated for JDK 9
iris
parents:
30033
diff
changeset
|
107 |
super("SunJCE", 9.0d, info); |
2 | 108 |
|
109 |
final String BLOCK_MODES = "ECB|CBC|PCBC|CTR|CTS|CFB|OFB" + |
|
110 |
"|CFB8|CFB16|CFB24|CFB32|CFB40|CFB48|CFB56|CFB64" + |
|
111 |
"|OFB8|OFB16|OFB24|OFB32|OFB40|OFB48|OFB56|OFB64"; |
|
112 |
final String BLOCK_MODES128 = BLOCK_MODES + |
|
15008 | 113 |
"|GCM|CFB72|CFB80|CFB88|CFB96|CFB104|CFB112|CFB120|CFB128" + |
2 | 114 |
"|OFB72|OFB80|OFB88|OFB96|OFB104|OFB112|OFB120|OFB128"; |
115 |
final String BLOCK_PADS = "NOPADDING|PKCS5PADDING|ISO10126PADDING"; |
|
116 |
||
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
117 |
AccessController.doPrivileged( |
30033
b9c86c17164a
8078468: Update security libraries to use diamond with anonymous classes
darcy
parents:
25859
diff
changeset
|
118 |
new java.security.PrivilegedAction<>() { |
2 | 119 |
public Object run() { |
120 |
||
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
121 |
/* |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
122 |
* Cipher engines |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
123 |
*/ |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
124 |
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
|
125 |
put("Cipher.RSA SupportedModes", "ECB"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
126 |
put("Cipher.RSA SupportedPaddings", |
19390
071b67eb2d0d
8020081: Cipher with OAEPPadding and OAEPParameterSpec can't be created
ascarpino
parents:
17918
diff
changeset
|
127 |
"NOPADDING|PKCS1PADDING|OAEPPADDING" |
071b67eb2d0d
8020081: Cipher with OAEPPadding and OAEPParameterSpec can't be created
ascarpino
parents:
17918
diff
changeset
|
128 |
+ "|OAEPWITHMD5ANDMGF1PADDING" |
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
129 |
+ "|OAEPWITHSHA1ANDMGF1PADDING" |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
130 |
+ "|OAEPWITHSHA-1ANDMGF1PADDING" |
12685 | 131 |
+ "|OAEPWITHSHA-224ANDMGF1PADDING" |
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
132 |
+ "|OAEPWITHSHA-256ANDMGF1PADDING" |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
133 |
+ "|OAEPWITHSHA-384ANDMGF1PADDING" |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
134 |
+ "|OAEPWITHSHA-512ANDMGF1PADDING"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
135 |
put("Cipher.RSA SupportedKeyClasses", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
136 |
"java.security.interfaces.RSAPublicKey" + |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
137 |
"|java.security.interfaces.RSAPrivateKey"); |
2 | 138 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
139 |
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
|
140 |
put("Cipher.DES SupportedModes", BLOCK_MODES); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
141 |
put("Cipher.DES SupportedPaddings", BLOCK_PADS); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
142 |
put("Cipher.DES SupportedKeyFormats", "RAW"); |
2 | 143 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
144 |
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
|
145 |
put("Alg.Alias.Cipher.TripleDES", "DESede"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
146 |
put("Cipher.DESede SupportedModes", BLOCK_MODES); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
147 |
put("Cipher.DESede SupportedPaddings", BLOCK_PADS); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
148 |
put("Cipher.DESede SupportedKeyFormats", "RAW"); |
2 | 149 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
150 |
put("Cipher.DESedeWrap", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
151 |
"com.sun.crypto.provider.DESedeWrapCipher"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
152 |
put("Cipher.DESedeWrap SupportedModes", "CBC"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
153 |
put("Cipher.DESedeWrap SupportedPaddings", "NOPADDING"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
154 |
put("Cipher.DESedeWrap SupportedKeyFormats", "RAW"); |
2 | 155 |
|
14405
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
156 |
// PBES1 |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
157 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
158 |
put("Cipher.PBEWithMD5AndDES", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
159 |
"com.sun.crypto.provider.PBEWithMD5AndDESCipher"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
160 |
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
|
161 |
"PBEWithMD5AndDES"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
162 |
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
|
163 |
"PBEWithMD5AndDES"); |
14405
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
164 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
165 |
put("Cipher.PBEWithMD5AndTripleDES", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
166 |
"com.sun.crypto.provider.PBEWithMD5AndTripleDESCipher"); |
14405
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
167 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
168 |
put("Cipher.PBEWithSHA1AndDESede", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
169 |
"com.sun.crypto.provider.PKCS12PBECipherCore$" + |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
170 |
"PBEWithSHA1AndDESede"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
171 |
put("Alg.Alias.Cipher.OID." + OID_PKCS12_DESede, |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
172 |
"PBEWithSHA1AndDESede"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
173 |
put("Alg.Alias.Cipher." + OID_PKCS12_DESede, |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
174 |
"PBEWithSHA1AndDESede"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
175 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
176 |
put("Cipher.PBEWithSHA1AndRC2_40", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
177 |
"com.sun.crypto.provider.PKCS12PBECipherCore$" + |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
178 |
"PBEWithSHA1AndRC2_40"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
179 |
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
|
180 |
"PBEWithSHA1AndRC2_40"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
181 |
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
|
182 |
"PBEWithSHA1AndRC2_40"); |
14405
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
183 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
184 |
put("Cipher.PBEWithSHA1AndRC2_128", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
185 |
"com.sun.crypto.provider.PKCS12PBECipherCore$" + |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
186 |
"PBEWithSHA1AndRC2_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
187 |
put("Alg.Alias.Cipher.OID." + OID_PKCS12_RC2_128, |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
188 |
"PBEWithSHA1AndRC2_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
189 |
put("Alg.Alias.Cipher." + OID_PKCS12_RC2_128, |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
190 |
"PBEWithSHA1AndRC2_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
191 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
192 |
put("Cipher.PBEWithSHA1AndRC4_40", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
193 |
"com.sun.crypto.provider.PKCS12PBECipherCore$" + |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
194 |
"PBEWithSHA1AndRC4_40"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
195 |
put("Alg.Alias.Cipher.OID." + OID_PKCS12_RC4_40, |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
196 |
"PBEWithSHA1AndRC4_40"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
197 |
put("Alg.Alias.Cipher." + OID_PKCS12_RC4_40, |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
198 |
"PBEWithSHA1AndRC4_40"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
199 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
200 |
put("Cipher.PBEWithSHA1AndRC4_128", |
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
201 |
"com.sun.crypto.provider.PKCS12PBECipherCore$" + |
14405
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
202 |
"PBEWithSHA1AndRC4_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
203 |
put("Alg.Alias.Cipher.OID." + OID_PKCS12_RC4_128, |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
204 |
"PBEWithSHA1AndRC4_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
205 |
put("Alg.Alias.Cipher." + OID_PKCS12_RC4_128, |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
206 |
"PBEWithSHA1AndRC4_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
207 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
208 |
//PBES2 |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
209 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
210 |
put("Cipher.PBEWithHmacSHA1AndAES_128", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
211 |
"com.sun.crypto.provider.PBES2Core$HmacSHA1AndAES_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
212 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
213 |
put("Cipher.PBEWithHmacSHA224AndAES_128", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
214 |
"com.sun.crypto.provider.PBES2Core$" + |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
215 |
"HmacSHA224AndAES_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
216 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
217 |
put("Cipher.PBEWithHmacSHA256AndAES_128", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
218 |
"com.sun.crypto.provider.PBES2Core$" + |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
219 |
"HmacSHA256AndAES_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
220 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
221 |
put("Cipher.PBEWithHmacSHA384AndAES_128", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
222 |
"com.sun.crypto.provider.PBES2Core$" + |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
223 |
"HmacSHA384AndAES_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
224 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
225 |
put("Cipher.PBEWithHmacSHA512AndAES_128", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
226 |
"com.sun.crypto.provider.PBES2Core$" + |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
227 |
"HmacSHA512AndAES_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
228 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
229 |
put("Cipher.PBEWithHmacSHA1AndAES_256", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
230 |
"com.sun.crypto.provider.PBES2Core$HmacSHA1AndAES_256"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
231 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
232 |
put("Cipher.PBEWithHmacSHA224AndAES_256", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
233 |
"com.sun.crypto.provider.PBES2Core$" + |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
234 |
"HmacSHA224AndAES_256"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
235 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
236 |
put("Cipher.PBEWithHmacSHA256AndAES_256", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
237 |
"com.sun.crypto.provider.PBES2Core$" + |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
238 |
"HmacSHA256AndAES_256"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
239 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
240 |
put("Cipher.PBEWithHmacSHA384AndAES_256", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
241 |
"com.sun.crypto.provider.PBES2Core$" + |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
242 |
"HmacSHA384AndAES_256"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
243 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
244 |
put("Cipher.PBEWithHmacSHA512AndAES_256", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
245 |
"com.sun.crypto.provider.PBES2Core$" + |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
246 |
"HmacSHA512AndAES_256"); |
2 | 247 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
248 |
put("Cipher.Blowfish", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
249 |
"com.sun.crypto.provider.BlowfishCipher"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
250 |
put("Cipher.Blowfish SupportedModes", BLOCK_MODES); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
251 |
put("Cipher.Blowfish SupportedPaddings", BLOCK_PADS); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
252 |
put("Cipher.Blowfish SupportedKeyFormats", "RAW"); |
2 | 253 |
|
13672
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
254 |
put("Cipher.AES", "com.sun.crypto.provider.AESCipher$General"); |
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
255 |
put("Alg.Alias.Cipher.Rijndael", "AES"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
256 |
put("Cipher.AES SupportedModes", BLOCK_MODES128); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
257 |
put("Cipher.AES SupportedPaddings", BLOCK_PADS); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
258 |
put("Cipher.AES SupportedKeyFormats", "RAW"); |
2 | 259 |
|
13672
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
260 |
put("Cipher.AES_128/ECB/NoPadding", "com.sun.crypto.provider.AESCipher$AES128_ECB_NoPadding"); |
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
261 |
put("Alg.Alias.Cipher.2.16.840.1.101.3.4.1.1", "AES_128/ECB/NoPadding"); |
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
262 |
put("Alg.Alias.Cipher.OID.2.16.840.1.101.3.4.1.1", "AES_128/ECB/NoPadding"); |
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
263 |
put("Cipher.AES_128/CBC/NoPadding", "com.sun.crypto.provider.AESCipher$AES128_CBC_NoPadding"); |
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
264 |
put("Alg.Alias.Cipher.2.16.840.1.101.3.4.1.2", "AES_128/CBC/NoPadding"); |
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
265 |
put("Alg.Alias.Cipher.OID.2.16.840.1.101.3.4.1.2", "AES_128/CBC/NoPadding"); |
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
266 |
put("Cipher.AES_128/OFB/NoPadding", "com.sun.crypto.provider.AESCipher$AES128_OFB_NoPadding"); |
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
267 |
put("Alg.Alias.Cipher.2.16.840.1.101.3.4.1.3", "AES_128/OFB/NoPadding"); |
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
268 |
put("Alg.Alias.Cipher.OID.2.16.840.1.101.3.4.1.3", "AES_128/OFB/NoPadding"); |
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
269 |
put("Cipher.AES_128/CFB/NoPadding", "com.sun.crypto.provider.AESCipher$AES128_CFB_NoPadding"); |
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
270 |
put("Alg.Alias.Cipher.2.16.840.1.101.3.4.1.4", "AES_128/CFB/NoPadding"); |
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
271 |
put("Alg.Alias.Cipher.OID.2.16.840.1.101.3.4.1.4", "AES_128/CFB/NoPadding"); |
15008 | 272 |
put("Cipher.AES_128/GCM/NoPadding", "com.sun.crypto.provider.AESCipher$AES128_GCM_NoPadding"); |
273 |
put("Alg.Alias.Cipher.2.16.840.1.101.3.4.1.6", "AES_128/GCM/NoPadding"); |
|
274 |
put("Alg.Alias.Cipher.OID.2.16.840.1.101.3.4.1.6", "AES_128/GCM/NoPadding"); |
|
13672
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
275 |
|
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
276 |
put("Cipher.AES_192/ECB/NoPadding", "com.sun.crypto.provider.AESCipher$AES192_ECB_NoPadding"); |
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
277 |
put("Alg.Alias.Cipher.2.16.840.1.101.3.4.1.21", "AES_192/ECB/NoPadding"); |
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
278 |
put("Alg.Alias.Cipher.OID.2.16.840.1.101.3.4.1.21", "AES_192/ECB/NoPadding"); |
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
279 |
put("Cipher.AES_192/CBC/NoPadding", "com.sun.crypto.provider.AESCipher$AES192_CBC_NoPadding"); |
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
280 |
put("Alg.Alias.Cipher.2.16.840.1.101.3.4.1.22", "AES_192/CBC/NoPadding"); |
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
281 |
put("Alg.Alias.Cipher.OID.2.16.840.1.101.3.4.1.22", "AES_192/CBC/NoPadding"); |
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
282 |
put("Cipher.AES_192/OFB/NoPadding", "com.sun.crypto.provider.AESCipher$AES192_OFB_NoPadding"); |
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
283 |
put("Alg.Alias.Cipher.2.16.840.1.101.3.4.1.23", "AES_192/OFB/NoPadding"); |
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
284 |
put("Alg.Alias.Cipher.OID.2.16.840.1.101.3.4.1.23", "AES_192/OFB/NoPadding"); |
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
285 |
put("Cipher.AES_192/CFB/NoPadding", "com.sun.crypto.provider.AESCipher$AES192_CFB_NoPadding"); |
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
286 |
put("Alg.Alias.Cipher.2.16.840.1.101.3.4.1.24", "AES_192/CFB/NoPadding"); |
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
287 |
put("Alg.Alias.Cipher.OID.2.16.840.1.101.3.4.1.24", "AES_192/CFB/NoPadding"); |
15008 | 288 |
put("Cipher.AES_192/GCM/NoPadding", "com.sun.crypto.provider.AESCipher$AES192_GCM_NoPadding"); |
289 |
put("Alg.Alias.Cipher.2.16.840.1.101.3.4.1.26", "AES_192/GCM/NoPadding"); |
|
290 |
put("Alg.Alias.Cipher.OID.2.16.840.1.101.3.4.1.26", "AES_192/GCM/NoPadding"); |
|
13672
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
291 |
|
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
292 |
put("Cipher.AES_256/ECB/NoPadding", "com.sun.crypto.provider.AESCipher$AES256_ECB_NoPadding"); |
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
293 |
put("Alg.Alias.Cipher.2.16.840.1.101.3.4.1.41", "AES_256/ECB/NoPadding"); |
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
294 |
put("Alg.Alias.Cipher.OID.2.16.840.1.101.3.4.1.41", "AES_256/ECB/NoPadding"); |
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
295 |
put("Cipher.AES_256/CBC/NoPadding", "com.sun.crypto.provider.AESCipher$AES256_CBC_NoPadding"); |
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
296 |
put("Alg.Alias.Cipher.2.16.840.1.101.3.4.1.42", "AES_256/CBC/NoPadding"); |
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
297 |
put("Alg.Alias.Cipher.OID.2.16.840.1.101.3.4.1.42", "AES_256/CBC/NoPadding"); |
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
298 |
put("Cipher.AES_256/OFB/NoPadding", "com.sun.crypto.provider.AESCipher$AES256_OFB_NoPadding"); |
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
299 |
put("Alg.Alias.Cipher.2.16.840.1.101.3.4.1.43", "AES_256/OFB/NoPadding"); |
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
300 |
put("Alg.Alias.Cipher.OID.2.16.840.1.101.3.4.1.43", "AES_256/OFB/NoPadding"); |
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
301 |
put("Cipher.AES_256/CFB/NoPadding", "com.sun.crypto.provider.AESCipher$AES256_CFB_NoPadding"); |
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
302 |
put("Alg.Alias.Cipher.2.16.840.1.101.3.4.1.44", "AES_256/CFB/NoPadding"); |
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
303 |
put("Alg.Alias.Cipher.OID.2.16.840.1.101.3.4.1.44", "AES_256/CFB/NoPadding"); |
15008 | 304 |
put("Cipher.AES_256/GCM/NoPadding", "com.sun.crypto.provider.AESCipher$AES256_GCM_NoPadding"); |
305 |
put("Alg.Alias.Cipher.2.16.840.1.101.3.4.1.46", "AES_256/GCM/NoPadding"); |
|
306 |
put("Alg.Alias.Cipher.OID.2.16.840.1.101.3.4.1.46", "AES_256/GCM/NoPadding"); |
|
13672
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
307 |
|
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
308 |
put("Cipher.AESWrap", "com.sun.crypto.provider.AESWrapCipher$General"); |
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
309 |
put("Cipher.AESWrap SupportedModes", "ECB"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
310 |
put("Cipher.AESWrap SupportedPaddings", "NOPADDING"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
311 |
put("Cipher.AESWrap SupportedKeyFormats", "RAW"); |
2 | 312 |
|
13672
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
313 |
put("Cipher.AESWrap_128", "com.sun.crypto.provider.AESWrapCipher$AES128"); |
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
314 |
put("Alg.Alias.Cipher.2.16.840.1.101.3.4.1.5", "AESWrap_128"); |
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
315 |
put("Alg.Alias.Cipher.OID.2.16.840.1.101.3.4.1.5", "AESWrap_128"); |
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
316 |
put("Cipher.AESWrap_192", "com.sun.crypto.provider.AESWrapCipher$AES192"); |
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
317 |
put("Alg.Alias.Cipher.2.16.840.1.101.3.4.1.25", "AESWrap_192"); |
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
318 |
put("Alg.Alias.Cipher.OID.2.16.840.1.101.3.4.1.25", "AESWrap_192"); |
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
319 |
put("Cipher.AESWrap_256", "com.sun.crypto.provider.AESWrapCipher$AES256"); |
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
320 |
put("Alg.Alias.Cipher.2.16.840.1.101.3.4.1.45", "AESWrap_256"); |
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
321 |
put("Alg.Alias.Cipher.OID.2.16.840.1.101.3.4.1.45", "AESWrap_256"); |
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
322 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
323 |
put("Cipher.RC2", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
324 |
"com.sun.crypto.provider.RC2Cipher"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
325 |
put("Cipher.RC2 SupportedModes", BLOCK_MODES); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
326 |
put("Cipher.RC2 SupportedPaddings", BLOCK_PADS); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
327 |
put("Cipher.RC2 SupportedKeyFormats", "RAW"); |
2 | 328 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
329 |
put("Cipher.ARCFOUR", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
330 |
"com.sun.crypto.provider.ARCFOURCipher"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
331 |
put("Alg.Alias.Cipher.RC4", "ARCFOUR"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
332 |
put("Cipher.ARCFOUR SupportedModes", "ECB"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
333 |
put("Cipher.ARCFOUR SupportedPaddings", "NOPADDING"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
334 |
put("Cipher.ARCFOUR SupportedKeyFormats", "RAW"); |
2 | 335 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
336 |
/* |
13672
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
337 |
* Key(pair) Generator engines |
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
338 |
*/ |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
339 |
put("KeyGenerator.DES", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
340 |
"com.sun.crypto.provider.DESKeyGenerator"); |
2 | 341 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
342 |
put("KeyGenerator.DESede", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
343 |
"com.sun.crypto.provider.DESedeKeyGenerator"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
344 |
put("Alg.Alias.KeyGenerator.TripleDES", "DESede"); |
2 | 345 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
346 |
put("KeyGenerator.Blowfish", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
347 |
"com.sun.crypto.provider.BlowfishKeyGenerator"); |
2 | 348 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
349 |
put("KeyGenerator.AES", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
350 |
"com.sun.crypto.provider.AESKeyGenerator"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
351 |
put("Alg.Alias.KeyGenerator.Rijndael", "AES"); |
2 | 352 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
353 |
put("KeyGenerator.RC2", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
354 |
"com.sun.crypto.provider.KeyGeneratorCore$" + |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
355 |
"RC2KeyGenerator"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
356 |
put("KeyGenerator.ARCFOUR", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
357 |
"com.sun.crypto.provider.KeyGeneratorCore$" + |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
358 |
"ARCFOURKeyGenerator"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
359 |
put("Alg.Alias.KeyGenerator.RC4", "ARCFOUR"); |
2 | 360 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
361 |
put("KeyGenerator.HmacMD5", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
362 |
"com.sun.crypto.provider.HmacMD5KeyGenerator"); |
2 | 363 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
364 |
put("KeyGenerator.HmacSHA1", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
365 |
"com.sun.crypto.provider.HmacSHA1KeyGenerator"); |
13672
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
366 |
put("Alg.Alias.KeyGenerator.OID.1.2.840.113549.2.7", "HmacSHA1"); |
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
367 |
put("Alg.Alias.KeyGenerator.1.2.840.113549.2.7", "HmacSHA1"); |
2 | 368 |
|
12685 | 369 |
put("KeyGenerator.HmacSHA224", |
370 |
"com.sun.crypto.provider.KeyGeneratorCore$HmacSHA2KG$SHA224"); |
|
371 |
put("Alg.Alias.KeyGenerator.OID.1.2.840.113549.2.8", "HmacSHA224"); |
|
372 |
put("Alg.Alias.KeyGenerator.1.2.840.113549.2.8", "HmacSHA224"); |
|
373 |
||
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
374 |
put("KeyGenerator.HmacSHA256", |
12685 | 375 |
"com.sun.crypto.provider.KeyGeneratorCore$HmacSHA2KG$SHA256"); |
376 |
put("Alg.Alias.KeyGenerator.OID.1.2.840.113549.2.9", "HmacSHA256"); |
|
377 |
put("Alg.Alias.KeyGenerator.1.2.840.113549.2.9", "HmacSHA256"); |
|
378 |
||
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
379 |
put("KeyGenerator.HmacSHA384", |
12685 | 380 |
"com.sun.crypto.provider.KeyGeneratorCore$HmacSHA2KG$SHA384"); |
381 |
put("Alg.Alias.KeyGenerator.OID.1.2.840.113549.2.10", "HmacSHA384"); |
|
382 |
put("Alg.Alias.KeyGenerator.1.2.840.113549.2.10", "HmacSHA384"); |
|
383 |
||
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
384 |
put("KeyGenerator.HmacSHA512", |
12685 | 385 |
"com.sun.crypto.provider.KeyGeneratorCore$HmacSHA2KG$SHA512"); |
386 |
put("Alg.Alias.KeyGenerator.OID.1.2.840.113549.2.11", "HmacSHA512"); |
|
387 |
put("Alg.Alias.KeyGenerator.1.2.840.113549.2.11", "HmacSHA512"); |
|
2 | 388 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
389 |
put("KeyPairGenerator.DiffieHellman", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
390 |
"com.sun.crypto.provider.DHKeyPairGenerator"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
391 |
put("Alg.Alias.KeyPairGenerator.DH", "DiffieHellman"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
392 |
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
|
393 |
"DiffieHellman"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
394 |
put("Alg.Alias.KeyPairGenerator."+OID_PKCS3, |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
395 |
"DiffieHellman"); |
14405
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
396 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
397 |
/* |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
398 |
* Algorithm parameter generation engines |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
399 |
*/ |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
400 |
put("AlgorithmParameterGenerator.DiffieHellman", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
401 |
"com.sun.crypto.provider.DHParameterGenerator"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
402 |
put("Alg.Alias.AlgorithmParameterGenerator.DH", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
403 |
"DiffieHellman"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
404 |
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
|
405 |
"DiffieHellman"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
406 |
put("Alg.Alias.AlgorithmParameterGenerator."+OID_PKCS3, |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
407 |
"DiffieHellman"); |
2 | 408 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
409 |
/* |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
410 |
* Key Agreement engines |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
411 |
*/ |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
412 |
put("KeyAgreement.DiffieHellman", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
413 |
"com.sun.crypto.provider.DHKeyAgreement"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
414 |
put("Alg.Alias.KeyAgreement.DH", "DiffieHellman"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
415 |
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
|
416 |
put("Alg.Alias.KeyAgreement."+OID_PKCS3, "DiffieHellman"); |
2 | 417 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
418 |
put("KeyAgreement.DiffieHellman SupportedKeyClasses", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
419 |
"javax.crypto.interfaces.DHPublicKey" + |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
420 |
"|javax.crypto.interfaces.DHPrivateKey"); |
2 | 421 |
|
10336
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 |
* Algorithm Parameter engines |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
424 |
*/ |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
425 |
put("AlgorithmParameters.DiffieHellman", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
426 |
"com.sun.crypto.provider.DHParameters"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
427 |
put("Alg.Alias.AlgorithmParameters.DH", "DiffieHellman"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
428 |
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
|
429 |
"DiffieHellman"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
430 |
put("Alg.Alias.AlgorithmParameters."+OID_PKCS3, |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
431 |
"DiffieHellman"); |
2 | 432 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
433 |
put("AlgorithmParameters.DES", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
434 |
"com.sun.crypto.provider.DESParameters"); |
2 | 435 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
436 |
put("AlgorithmParameters.DESede", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
437 |
"com.sun.crypto.provider.DESedeParameters"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
438 |
put("Alg.Alias.AlgorithmParameters.TripleDES", "DESede"); |
2 | 439 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
440 |
put("AlgorithmParameters.PBE", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
441 |
"com.sun.crypto.provider.PBEParameters"); |
2 | 442 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
443 |
put("AlgorithmParameters.PBEWithMD5AndDES", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
444 |
"com.sun.crypto.provider.PBEParameters"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
445 |
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
|
446 |
"PBEWithMD5AndDES"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
447 |
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
|
448 |
"PBEWithMD5AndDES"); |
2 | 449 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
450 |
put("AlgorithmParameters.PBEWithMD5AndTripleDES", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
451 |
"com.sun.crypto.provider.PBEParameters"); |
2 | 452 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
453 |
put("AlgorithmParameters.PBEWithSHA1AndDESede", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
454 |
"com.sun.crypto.provider.PBEParameters"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
455 |
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
|
456 |
"PBEWithSHA1AndDESede"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
457 |
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
|
458 |
"PBEWithSHA1AndDESede"); |
2 | 459 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
460 |
put("AlgorithmParameters.PBEWithSHA1AndRC2_40", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
461 |
"com.sun.crypto.provider.PBEParameters"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
462 |
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
|
463 |
"PBEWithSHA1AndRC2_40"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
464 |
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
|
465 |
"PBEWithSHA1AndRC2_40"); |
2 | 466 |
|
14405
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
467 |
put("AlgorithmParameters.PBEWithSHA1AndRC2_128", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
468 |
"com.sun.crypto.provider.PBEParameters"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
469 |
put("Alg.Alias.AlgorithmParameters.OID."+OID_PKCS12_RC2_128, |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
470 |
"PBEWithSHA1AndRC2_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
471 |
put("Alg.Alias.AlgorithmParameters." + OID_PKCS12_RC2_128, |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
472 |
"PBEWithSHA1AndRC2_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
473 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
474 |
put("AlgorithmParameters.PBEWithSHA1AndRC4_40", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
475 |
"com.sun.crypto.provider.PBEParameters"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
476 |
put("Alg.Alias.AlgorithmParameters.OID."+OID_PKCS12_RC4_40, |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
477 |
"PBEWithSHA1AndRC4_40"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
478 |
put("Alg.Alias.AlgorithmParameters." + OID_PKCS12_RC4_40, |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
479 |
"PBEWithSHA1AndRC4_40"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
480 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
481 |
put("AlgorithmParameters.PBEWithSHA1AndRC4_128", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
482 |
"com.sun.crypto.provider.PBEParameters"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
483 |
put("Alg.Alias.AlgorithmParameters.OID."+OID_PKCS12_RC4_128, |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
484 |
"PBEWithSHA1AndRC4_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
485 |
put("Alg.Alias.AlgorithmParameters." + OID_PKCS12_RC4_128, |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
486 |
"PBEWithSHA1AndRC4_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
487 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
488 |
put("AlgorithmParameters.PBES2", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
489 |
"com.sun.crypto.provider.PBES2Parameters$General"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
490 |
put("Alg.Alias.AlgorithmParameters.OID."+OID_PKCS5_PBES2, |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
491 |
"PBES2"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
492 |
put("Alg.Alias.AlgorithmParameters." + OID_PKCS5_PBES2, |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
493 |
"PBES2"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
494 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
495 |
put("AlgorithmParameters.PBEWithHmacSHA1AndAES_128", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
496 |
"com.sun.crypto.provider.PBES2Parameters$HmacSHA1AndAES_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
497 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
498 |
put("AlgorithmParameters.PBEWithHmacSHA224AndAES_128", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
499 |
"com.sun.crypto.provider.PBES2Parameters$HmacSHA224AndAES_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
500 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
501 |
put("AlgorithmParameters.PBEWithHmacSHA256AndAES_128", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
502 |
"com.sun.crypto.provider.PBES2Parameters$HmacSHA256AndAES_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
503 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
504 |
put("AlgorithmParameters.PBEWithHmacSHA384AndAES_128", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
505 |
"com.sun.crypto.provider.PBES2Parameters$HmacSHA384AndAES_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
506 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
507 |
put("AlgorithmParameters.PBEWithHmacSHA512AndAES_128", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
508 |
"com.sun.crypto.provider.PBES2Parameters$HmacSHA512AndAES_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
509 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
510 |
put("AlgorithmParameters.PBEWithHmacSHA1AndAES_256", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
511 |
"com.sun.crypto.provider.PBES2Parameters$HmacSHA1AndAES_256"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
512 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
513 |
put("AlgorithmParameters.PBEWithHmacSHA224AndAES_256", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
514 |
"com.sun.crypto.provider.PBES2Parameters$HmacSHA224AndAES_256"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
515 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
516 |
put("AlgorithmParameters.PBEWithHmacSHA256AndAES_256", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
517 |
"com.sun.crypto.provider.PBES2Parameters$HmacSHA256AndAES_256"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
518 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
519 |
put("AlgorithmParameters.PBEWithHmacSHA384AndAES_256", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
520 |
"com.sun.crypto.provider.PBES2Parameters$HmacSHA384AndAES_256"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
521 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
522 |
put("AlgorithmParameters.PBEWithHmacSHA512AndAES_256", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
523 |
"com.sun.crypto.provider.PBES2Parameters$HmacSHA512AndAES_256"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
524 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
525 |
put("AlgorithmParameters.Blowfish", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
526 |
"com.sun.crypto.provider.BlowfishParameters"); |
2 | 527 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
528 |
put("AlgorithmParameters.AES", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
529 |
"com.sun.crypto.provider.AESParameters"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
530 |
put("Alg.Alias.AlgorithmParameters.Rijndael", "AES"); |
15008 | 531 |
put("AlgorithmParameters.GCM", |
532 |
"com.sun.crypto.provider.GCMParameters"); |
|
2 | 533 |
|
14405
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
534 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
535 |
put("AlgorithmParameters.RC2", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
536 |
"com.sun.crypto.provider.RC2Parameters"); |
2 | 537 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
538 |
put("AlgorithmParameters.OAEP", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
539 |
"com.sun.crypto.provider.OAEPParameters"); |
2 | 540 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
541 |
/* |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
542 |
* Key factories |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
543 |
*/ |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
544 |
put("KeyFactory.DiffieHellman", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
545 |
"com.sun.crypto.provider.DHKeyFactory"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
546 |
put("Alg.Alias.KeyFactory.DH", "DiffieHellman"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
547 |
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
|
548 |
"DiffieHellman"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
549 |
put("Alg.Alias.KeyFactory."+OID_PKCS3, "DiffieHellman"); |
14405
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
550 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
551 |
/* |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
552 |
* Secret-key factories |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
553 |
*/ |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
554 |
put("SecretKeyFactory.DES", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
555 |
"com.sun.crypto.provider.DESKeyFactory"); |
2 | 556 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
557 |
put("SecretKeyFactory.DESede", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
558 |
"com.sun.crypto.provider.DESedeKeyFactory"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
559 |
put("Alg.Alias.SecretKeyFactory.TripleDES", "DESede"); |
2 | 560 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
561 |
put("SecretKeyFactory.PBEWithMD5AndDES", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
562 |
"com.sun.crypto.provider.PBEKeyFactory$PBEWithMD5AndDES" |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
563 |
); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
564 |
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
|
565 |
"PBEWithMD5AndDES"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
566 |
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
|
567 |
"PBEWithMD5AndDES"); |
2 | 568 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
569 |
put("Alg.Alias.SecretKeyFactory.PBE", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
570 |
"PBEWithMD5AndDES"); |
2 | 571 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
572 |
/* |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
573 |
* 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
|
574 |
* 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
|
575 |
* 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
|
576 |
* algorithm. |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
577 |
*/ |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
578 |
put("SecretKeyFactory.PBEWithMD5AndTripleDES", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
579 |
"com.sun.crypto.provider.PBEKeyFactory$" + |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
580 |
"PBEWithMD5AndTripleDES" |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
581 |
); |
2 | 582 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
583 |
put("SecretKeyFactory.PBEWithSHA1AndDESede", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
584 |
"com.sun.crypto.provider.PBEKeyFactory$PBEWithSHA1AndDESede" |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
585 |
); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
586 |
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
|
587 |
"PBEWithSHA1AndDESede"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
588 |
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
|
589 |
"PBEWithSHA1AndDESede"); |
2 | 590 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
591 |
put("SecretKeyFactory.PBEWithSHA1AndRC2_40", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
592 |
"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
|
593 |
); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
594 |
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
|
595 |
"PBEWithSHA1AndRC2_40"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
596 |
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
|
597 |
"PBEWithSHA1AndRC2_40"); |
2 | 598 |
|
14405
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
599 |
put("SecretKeyFactory.PBEWithSHA1AndRC2_128", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
600 |
"com.sun.crypto.provider.PBEKeyFactory$PBEWithSHA1AndRC2_128" |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
601 |
); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
602 |
put("Alg.Alias.SecretKeyFactory.OID." + OID_PKCS12_RC2_128, |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
603 |
"PBEWithSHA1AndRC2_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
604 |
put("Alg.Alias.SecretKeyFactory." + OID_PKCS12_RC2_128, |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
605 |
"PBEWithSHA1AndRC2_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
606 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
607 |
put("SecretKeyFactory.PBEWithSHA1AndRC4_40", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
608 |
"com.sun.crypto.provider.PBEKeyFactory$PBEWithSHA1AndRC4_40" |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
609 |
); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
610 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
611 |
put("Alg.Alias.SecretKeyFactory.OID." + OID_PKCS12_RC4_40, |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
612 |
"PBEWithSHA1AndRC4_40"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
613 |
put("Alg.Alias.SecretKeyFactory." + OID_PKCS12_RC4_40, |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
614 |
"PBEWithSHA1AndRC4_40"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
615 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
616 |
put("SecretKeyFactory.PBEWithSHA1AndRC4_128", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
617 |
"com.sun.crypto.provider.PBEKeyFactory$PBEWithSHA1AndRC4_128" |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
618 |
); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
619 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
620 |
put("Alg.Alias.SecretKeyFactory.OID." + OID_PKCS12_RC4_128, |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
621 |
"PBEWithSHA1AndRC4_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
622 |
put("Alg.Alias.SecretKeyFactory." + OID_PKCS12_RC4_128, |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
623 |
"PBEWithSHA1AndRC4_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
624 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
625 |
put("SecretKeyFactory.PBEWithHmacSHA1AndAES_128", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
626 |
"com.sun.crypto.provider.PBEKeyFactory$" + |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
627 |
"PBEWithHmacSHA1AndAES_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
628 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
629 |
put("SecretKeyFactory.PBEWithHmacSHA224AndAES_128", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
630 |
"com.sun.crypto.provider.PBEKeyFactory$" + |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
631 |
"PBEWithHmacSHA224AndAES_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
632 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
633 |
put("SecretKeyFactory.PBEWithHmacSHA256AndAES_128", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
634 |
"com.sun.crypto.provider.PBEKeyFactory$" + |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
635 |
"PBEWithHmacSHA256AndAES_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
636 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
637 |
put("SecretKeyFactory.PBEWithHmacSHA384AndAES_128", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
638 |
"com.sun.crypto.provider.PBEKeyFactory$" + |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
639 |
"PBEWithHmacSHA384AndAES_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
640 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
641 |
put("SecretKeyFactory.PBEWithHmacSHA512AndAES_128", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
642 |
"com.sun.crypto.provider.PBEKeyFactory$" + |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
643 |
"PBEWithHmacSHA512AndAES_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
644 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
645 |
put("SecretKeyFactory.PBEWithHmacSHA1AndAES_256", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
646 |
"com.sun.crypto.provider.PBEKeyFactory$" + |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
647 |
"PBEWithHmacSHA1AndAES_256"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
648 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
649 |
put("SecretKeyFactory.PBEWithHmacSHA224AndAES_256", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
650 |
"com.sun.crypto.provider.PBEKeyFactory$" + |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
651 |
"PBEWithHmacSHA224AndAES_256"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
652 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
653 |
put("SecretKeyFactory.PBEWithHmacSHA256AndAES_256", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
654 |
"com.sun.crypto.provider.PBEKeyFactory$" + |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
655 |
"PBEWithHmacSHA256AndAES_256"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
656 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
657 |
put("SecretKeyFactory.PBEWithHmacSHA384AndAES_256", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
658 |
"com.sun.crypto.provider.PBEKeyFactory$" + |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
659 |
"PBEWithHmacSHA384AndAES_256"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
660 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
661 |
put("SecretKeyFactory.PBEWithHmacSHA512AndAES_256", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
662 |
"com.sun.crypto.provider.PBEKeyFactory$" + |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
663 |
"PBEWithHmacSHA512AndAES_256"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
664 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
665 |
// PBKDF2 |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
666 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
667 |
put("SecretKeyFactory.PBKDF2WithHmacSHA1", |
14405
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
668 |
"com.sun.crypto.provider.PBKDF2Core$HmacSHA1"); |
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
669 |
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
|
670 |
"PBKDF2WithHmacSHA1"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
671 |
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
|
672 |
"PBKDF2WithHmacSHA1"); |
2 | 673 |
|
14405
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
674 |
put("SecretKeyFactory.PBKDF2WithHmacSHA224", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
675 |
"com.sun.crypto.provider.PBKDF2Core$HmacSHA224"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
676 |
put("SecretKeyFactory.PBKDF2WithHmacSHA256", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
677 |
"com.sun.crypto.provider.PBKDF2Core$HmacSHA256"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
678 |
put("SecretKeyFactory.PBKDF2WithHmacSHA384", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
679 |
"com.sun.crypto.provider.PBKDF2Core$HmacSHA384"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
680 |
put("SecretKeyFactory.PBKDF2WithHmacSHA512", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
681 |
"com.sun.crypto.provider.PBKDF2Core$HmacSHA512"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
682 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
683 |
/* |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
684 |
* MAC |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
685 |
*/ |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
686 |
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
|
687 |
put("Mac.HmacSHA1", "com.sun.crypto.provider.HmacSHA1"); |
13672
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
688 |
put("Alg.Alias.Mac.OID.1.2.840.113549.2.7", "HmacSHA1"); |
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
689 |
put("Alg.Alias.Mac.1.2.840.113549.2.7", "HmacSHA1"); |
12685 | 690 |
put("Mac.HmacSHA224", |
691 |
"com.sun.crypto.provider.HmacCore$HmacSHA224"); |
|
692 |
put("Alg.Alias.Mac.OID.1.2.840.113549.2.8", "HmacSHA224"); |
|
693 |
put("Alg.Alias.Mac.1.2.840.113549.2.8", "HmacSHA224"); |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
694 |
put("Mac.HmacSHA256", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
695 |
"com.sun.crypto.provider.HmacCore$HmacSHA256"); |
12685 | 696 |
put("Alg.Alias.Mac.OID.1.2.840.113549.2.9", "HmacSHA256"); |
697 |
put("Alg.Alias.Mac.1.2.840.113549.2.9", "HmacSHA256"); |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
698 |
put("Mac.HmacSHA384", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
699 |
"com.sun.crypto.provider.HmacCore$HmacSHA384"); |
12685 | 700 |
put("Alg.Alias.Mac.OID.1.2.840.113549.2.10", "HmacSHA384"); |
701 |
put("Alg.Alias.Mac.1.2.840.113549.2.10", "HmacSHA384"); |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
702 |
put("Mac.HmacSHA512", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
703 |
"com.sun.crypto.provider.HmacCore$HmacSHA512"); |
12685 | 704 |
put("Alg.Alias.Mac.OID.1.2.840.113549.2.11", "HmacSHA512"); |
705 |
put("Alg.Alias.Mac.1.2.840.113549.2.11", "HmacSHA512"); |
|
706 |
||
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
707 |
put("Mac.HmacPBESHA1", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
708 |
"com.sun.crypto.provider.HmacPKCS12PBESHA1"); |
2 | 709 |
|
14405
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
710 |
// PBMAC1 |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
711 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
712 |
put("Mac.PBEWithHmacSHA1", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
713 |
"com.sun.crypto.provider.PBMAC1Core$HmacSHA1"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
714 |
put("Mac.PBEWithHmacSHA224", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
715 |
"com.sun.crypto.provider.PBMAC1Core$HmacSHA224"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
716 |
put("Mac.PBEWithHmacSHA256", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
717 |
"com.sun.crypto.provider.PBMAC1Core$HmacSHA256"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
718 |
put("Mac.PBEWithHmacSHA384", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
719 |
"com.sun.crypto.provider.PBMAC1Core$HmacSHA384"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
720 |
put("Mac.PBEWithHmacSHA512", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
721 |
"com.sun.crypto.provider.PBMAC1Core$HmacSHA512"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
722 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
723 |
put("Mac.SslMacMD5", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
724 |
"com.sun.crypto.provider.SslMacCore$SslMacMD5"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
725 |
put("Mac.SslMacSHA1", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
726 |
"com.sun.crypto.provider.SslMacCore$SslMacSHA1"); |
2 | 727 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
728 |
put("Mac.HmacMD5 SupportedKeyFormats", "RAW"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
729 |
put("Mac.HmacSHA1 SupportedKeyFormats", "RAW"); |
12685 | 730 |
put("Mac.HmacSHA224 SupportedKeyFormats", "RAW"); |
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
731 |
put("Mac.HmacSHA256 SupportedKeyFormats", "RAW"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
732 |
put("Mac.HmacSHA384 SupportedKeyFormats", "RAW"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
733 |
put("Mac.HmacSHA512 SupportedKeyFormats", "RAW"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
734 |
put("Mac.HmacPBESHA1 SupportedKeyFormats", "RAW"); |
17918
37620367ceb7
8013069: javax.crypto tests fail with new PBE algorithm names
valeriep
parents:
16909
diff
changeset
|
735 |
put("Mac.PBEWithHmacSHA1 SupportedKeyFormatS", "RAW"); |
37620367ceb7
8013069: javax.crypto tests fail with new PBE algorithm names
valeriep
parents:
16909
diff
changeset
|
736 |
put("Mac.PBEWithHmacSHA224 SupportedKeyFormats", "RAW"); |
37620367ceb7
8013069: javax.crypto tests fail with new PBE algorithm names
valeriep
parents:
16909
diff
changeset
|
737 |
put("Mac.PBEWithHmacSHA256 SupportedKeyFormats", "RAW"); |
37620367ceb7
8013069: javax.crypto tests fail with new PBE algorithm names
valeriep
parents:
16909
diff
changeset
|
738 |
put("Mac.PBEWithHmacSHA384 SupportedKeyFormats", "RAW"); |
37620367ceb7
8013069: javax.crypto tests fail with new PBE algorithm names
valeriep
parents:
16909
diff
changeset
|
739 |
put("Mac.PBEWithHmacSHA512 SupportedKeyFormats", "RAW"); |
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
740 |
put("Mac.SslMacMD5 SupportedKeyFormats", "RAW"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
741 |
put("Mac.SslMacSHA1 SupportedKeyFormats", "RAW"); |
2 | 742 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
743 |
/* |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
744 |
* KeyStore |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
745 |
*/ |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
746 |
put("KeyStore.JCEKS", "com.sun.crypto.provider.JceKeyStore"); |
2 | 747 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
748 |
/* |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
749 |
* SSL/TLS mechanisms |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
750 |
* |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
751 |
* 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
|
752 |
* 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
|
753 |
* 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
|
754 |
* 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
|
755 |
*/ |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
756 |
put("KeyGenerator.SunTlsPrf", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
757 |
"com.sun.crypto.provider.TlsPrfGenerator$V10"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
758 |
put("KeyGenerator.SunTls12Prf", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
759 |
"com.sun.crypto.provider.TlsPrfGenerator$V12"); |
7043 | 760 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
761 |
put("KeyGenerator.SunTlsMasterSecret", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
762 |
"com.sun.crypto.provider.TlsMasterSecretGenerator"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
763 |
put("Alg.Alias.KeyGenerator.SunTls12MasterSecret", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
764 |
"SunTlsMasterSecret"); |
7043 | 765 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
766 |
put("KeyGenerator.SunTlsKeyMaterial", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
767 |
"com.sun.crypto.provider.TlsKeyMaterialGenerator"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
768 |
put("Alg.Alias.KeyGenerator.SunTls12KeyMaterial", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
769 |
"SunTlsKeyMaterial"); |
7043 | 770 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
771 |
put("KeyGenerator.SunTlsRsaPremasterSecret", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
772 |
"com.sun.crypto.provider.TlsRsaPremasterSecretGenerator"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
773 |
put("Alg.Alias.KeyGenerator.SunTls12RsaPremasterSecret", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
774 |
"SunTlsRsaPremasterSecret"); |
2 | 775 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
776 |
return null; |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
777 |
} |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
778 |
}); |
16909
78a1749a43e2
7171982: Cipher getParameters() throws RuntimeException: Cannot find SunJCE provider
vinnie
parents:
15010
diff
changeset
|
779 |
|
78a1749a43e2
7171982: Cipher getParameters() throws RuntimeException: Cannot find SunJCE provider
vinnie
parents:
15010
diff
changeset
|
780 |
if (instance == null) { |
78a1749a43e2
7171982: Cipher getParameters() throws RuntimeException: Cannot find SunJCE provider
vinnie
parents:
15010
diff
changeset
|
781 |
instance = this; |
78a1749a43e2
7171982: Cipher getParameters() throws RuntimeException: Cannot find SunJCE provider
vinnie
parents:
15010
diff
changeset
|
782 |
} |
78a1749a43e2
7171982: Cipher getParameters() throws RuntimeException: Cannot find SunJCE provider
vinnie
parents:
15010
diff
changeset
|
783 |
} |
78a1749a43e2
7171982: Cipher getParameters() throws RuntimeException: Cannot find SunJCE provider
vinnie
parents:
15010
diff
changeset
|
784 |
|
78a1749a43e2
7171982: Cipher getParameters() throws RuntimeException: Cannot find SunJCE provider
vinnie
parents:
15010
diff
changeset
|
785 |
// Return the instance of this class or create one if needed. |
78a1749a43e2
7171982: Cipher getParameters() throws RuntimeException: Cannot find SunJCE provider
vinnie
parents:
15010
diff
changeset
|
786 |
static SunJCE getInstance() { |
78a1749a43e2
7171982: Cipher getParameters() throws RuntimeException: Cannot find SunJCE provider
vinnie
parents:
15010
diff
changeset
|
787 |
if (instance == null) { |
78a1749a43e2
7171982: Cipher getParameters() throws RuntimeException: Cannot find SunJCE provider
vinnie
parents:
15010
diff
changeset
|
788 |
return new SunJCE(); |
78a1749a43e2
7171982: Cipher getParameters() throws RuntimeException: Cannot find SunJCE provider
vinnie
parents:
15010
diff
changeset
|
789 |
} |
78a1749a43e2
7171982: Cipher getParameters() throws RuntimeException: Cannot find SunJCE provider
vinnie
parents:
15010
diff
changeset
|
790 |
return instance; |
2 | 791 |
} |
792 |
} |