author | vinnie |
Thu, 11 Apr 2013 17:57:08 +0100 | |
changeset 16909 | 78a1749a43e2 |
parent 15010 | ec6b49ce42b1 |
child 17918 | 37620367ceb7 |
permissions | -rw-r--r-- |
2 | 1 |
/* |
15008 | 2 |
* Copyright (c) 1997, 2013, 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. |
78a1749a43e2
7171982: Cipher getParameters() throws RuntimeException: Cannot find SunJCE provider
vinnie
parents:
15010
diff
changeset
|
96 |
private static volatile SunJCE instance = null; |
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 */ |
|
107 |
super("SunJCE", 1.7d, info); |
|
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( |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
118 |
new java.security.PrivilegedAction<Object>() { |
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", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
127 |
"NOPADDING|PKCS1PADDING|OAEPWITHMD5ANDMGF1PADDING" |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
128 |
+ "|OAEPWITHSHA1ANDMGF1PADDING" |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
129 |
+ "|OAEPWITHSHA-1ANDMGF1PADDING" |
12685 | 130 |
+ "|OAEPWITHSHA-224ANDMGF1PADDING" |
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
131 |
+ "|OAEPWITHSHA-256ANDMGF1PADDING" |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
132 |
+ "|OAEPWITHSHA-384ANDMGF1PADDING" |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
133 |
+ "|OAEPWITHSHA-512ANDMGF1PADDING"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
134 |
put("Cipher.RSA SupportedKeyClasses", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
135 |
"java.security.interfaces.RSAPublicKey" + |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
136 |
"|java.security.interfaces.RSAPrivateKey"); |
2 | 137 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
138 |
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
|
139 |
put("Cipher.DES SupportedModes", BLOCK_MODES); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
140 |
put("Cipher.DES SupportedPaddings", BLOCK_PADS); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
141 |
put("Cipher.DES SupportedKeyFormats", "RAW"); |
2 | 142 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
143 |
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
|
144 |
put("Alg.Alias.Cipher.TripleDES", "DESede"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
145 |
put("Cipher.DESede SupportedModes", BLOCK_MODES); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
146 |
put("Cipher.DESede SupportedPaddings", BLOCK_PADS); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
147 |
put("Cipher.DESede SupportedKeyFormats", "RAW"); |
2 | 148 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
149 |
put("Cipher.DESedeWrap", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
150 |
"com.sun.crypto.provider.DESedeWrapCipher"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
151 |
put("Cipher.DESedeWrap SupportedModes", "CBC"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
152 |
put("Cipher.DESedeWrap SupportedPaddings", "NOPADDING"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
153 |
put("Cipher.DESedeWrap SupportedKeyFormats", "RAW"); |
2 | 154 |
|
14405
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
155 |
// PBES1 |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
156 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
157 |
put("Cipher.PBEWithMD5AndDES", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
158 |
"com.sun.crypto.provider.PBEWithMD5AndDESCipher"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
159 |
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
|
160 |
"PBEWithMD5AndDES"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
161 |
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
|
162 |
"PBEWithMD5AndDES"); |
14405
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
163 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
164 |
put("Cipher.PBEWithMD5AndTripleDES", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
165 |
"com.sun.crypto.provider.PBEWithMD5AndTripleDESCipher"); |
14405
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
166 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
167 |
put("Cipher.PBEWithSHA1AndDESede", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
168 |
"com.sun.crypto.provider.PKCS12PBECipherCore$" + |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
169 |
"PBEWithSHA1AndDESede"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
170 |
put("Alg.Alias.Cipher.OID." + OID_PKCS12_DESede, |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
171 |
"PBEWithSHA1AndDESede"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
172 |
put("Alg.Alias.Cipher." + OID_PKCS12_DESede, |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
173 |
"PBEWithSHA1AndDESede"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
174 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
175 |
put("Cipher.PBEWithSHA1AndRC2_40", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
176 |
"com.sun.crypto.provider.PKCS12PBECipherCore$" + |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
177 |
"PBEWithSHA1AndRC2_40"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
178 |
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
|
179 |
"PBEWithSHA1AndRC2_40"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
180 |
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
|
181 |
"PBEWithSHA1AndRC2_40"); |
14405
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
182 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
183 |
put("Cipher.PBEWithSHA1AndRC2_128", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
184 |
"com.sun.crypto.provider.PKCS12PBECipherCore$" + |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
185 |
"PBEWithSHA1AndRC2_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
186 |
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
|
187 |
"PBEWithSHA1AndRC2_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
188 |
put("Alg.Alias.Cipher." + OID_PKCS12_RC2_128, |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
189 |
"PBEWithSHA1AndRC2_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
190 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
191 |
put("Cipher.PBEWithSHA1AndRC4_40", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
192 |
"com.sun.crypto.provider.PKCS12PBECipherCore$" + |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
193 |
"PBEWithSHA1AndRC4_40"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
194 |
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
|
195 |
"PBEWithSHA1AndRC4_40"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
196 |
put("Alg.Alias.Cipher." + OID_PKCS12_RC4_40, |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
197 |
"PBEWithSHA1AndRC4_40"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
198 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
199 |
put("Cipher.PBEWithSHA1AndRC4_128", |
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
200 |
"com.sun.crypto.provider.PKCS12PBECipherCore$" + |
14405
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
201 |
"PBEWithSHA1AndRC4_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
202 |
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
|
203 |
"PBEWithSHA1AndRC4_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
204 |
put("Alg.Alias.Cipher." + OID_PKCS12_RC4_128, |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
205 |
"PBEWithSHA1AndRC4_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
206 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
207 |
//PBES2 |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
208 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
209 |
put("Cipher.PBEWithHmacSHA1AndAES_128", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
210 |
"com.sun.crypto.provider.PBES2Core$HmacSHA1AndAES_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
211 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
212 |
put("Cipher.PBEWithHmacSHA224AndAES_128", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
213 |
"com.sun.crypto.provider.PBES2Core$" + |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
214 |
"HmacSHA224AndAES_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
215 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
216 |
put("Cipher.PBEWithHmacSHA256AndAES_128", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
217 |
"com.sun.crypto.provider.PBES2Core$" + |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
218 |
"HmacSHA256AndAES_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
219 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
220 |
put("Cipher.PBEWithHmacSHA384AndAES_128", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
221 |
"com.sun.crypto.provider.PBES2Core$" + |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
222 |
"HmacSHA384AndAES_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
223 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
224 |
put("Cipher.PBEWithHmacSHA512AndAES_128", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
225 |
"com.sun.crypto.provider.PBES2Core$" + |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
226 |
"HmacSHA512AndAES_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
227 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
228 |
put("Cipher.PBEWithHmacSHA1AndAES_256", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
229 |
"com.sun.crypto.provider.PBES2Core$HmacSHA1AndAES_256"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
230 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
231 |
put("Cipher.PBEWithHmacSHA224AndAES_256", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
232 |
"com.sun.crypto.provider.PBES2Core$" + |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
233 |
"HmacSHA224AndAES_256"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
234 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
235 |
put("Cipher.PBEWithHmacSHA256AndAES_256", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
236 |
"com.sun.crypto.provider.PBES2Core$" + |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
237 |
"HmacSHA256AndAES_256"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
238 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
239 |
put("Cipher.PBEWithHmacSHA384AndAES_256", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
240 |
"com.sun.crypto.provider.PBES2Core$" + |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
241 |
"HmacSHA384AndAES_256"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
242 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
243 |
put("Cipher.PBEWithHmacSHA512AndAES_256", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
244 |
"com.sun.crypto.provider.PBES2Core$" + |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
245 |
"HmacSHA512AndAES_256"); |
2 | 246 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
247 |
put("Cipher.Blowfish", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
248 |
"com.sun.crypto.provider.BlowfishCipher"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
249 |
put("Cipher.Blowfish SupportedModes", BLOCK_MODES); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
250 |
put("Cipher.Blowfish SupportedPaddings", BLOCK_PADS); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
251 |
put("Cipher.Blowfish SupportedKeyFormats", "RAW"); |
2 | 252 |
|
13672
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
253 |
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
|
254 |
put("Alg.Alias.Cipher.Rijndael", "AES"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
255 |
put("Cipher.AES SupportedModes", BLOCK_MODES128); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
256 |
put("Cipher.AES SupportedPaddings", BLOCK_PADS); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
257 |
put("Cipher.AES SupportedKeyFormats", "RAW"); |
2 | 258 |
|
13672
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
259 |
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
|
260 |
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
|
261 |
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
|
262 |
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
|
263 |
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
|
264 |
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
|
265 |
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
|
266 |
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
|
267 |
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
|
268 |
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
|
269 |
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
|
270 |
put("Alg.Alias.Cipher.OID.2.16.840.1.101.3.4.1.4", "AES_128/CFB/NoPadding"); |
15008 | 271 |
put("Cipher.AES_128/GCM/NoPadding", "com.sun.crypto.provider.AESCipher$AES128_GCM_NoPadding"); |
272 |
put("Alg.Alias.Cipher.2.16.840.1.101.3.4.1.6", "AES_128/GCM/NoPadding"); |
|
273 |
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
|
274 |
|
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
275 |
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
|
276 |
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
|
277 |
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
|
278 |
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
|
279 |
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
|
280 |
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
|
281 |
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
|
282 |
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
|
283 |
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
|
284 |
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
|
285 |
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
|
286 |
put("Alg.Alias.Cipher.OID.2.16.840.1.101.3.4.1.24", "AES_192/CFB/NoPadding"); |
15008 | 287 |
put("Cipher.AES_192/GCM/NoPadding", "com.sun.crypto.provider.AESCipher$AES192_GCM_NoPadding"); |
288 |
put("Alg.Alias.Cipher.2.16.840.1.101.3.4.1.26", "AES_192/GCM/NoPadding"); |
|
289 |
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
|
290 |
|
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
291 |
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
|
292 |
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
|
293 |
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
|
294 |
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
|
295 |
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
|
296 |
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
|
297 |
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
|
298 |
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
|
299 |
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
|
300 |
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
|
301 |
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
|
302 |
put("Alg.Alias.Cipher.OID.2.16.840.1.101.3.4.1.44", "AES_256/CFB/NoPadding"); |
15008 | 303 |
put("Cipher.AES_256/GCM/NoPadding", "com.sun.crypto.provider.AESCipher$AES256_GCM_NoPadding"); |
304 |
put("Alg.Alias.Cipher.2.16.840.1.101.3.4.1.46", "AES_256/GCM/NoPadding"); |
|
305 |
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
|
306 |
|
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
307 |
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
|
308 |
put("Cipher.AESWrap SupportedModes", "ECB"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
309 |
put("Cipher.AESWrap SupportedPaddings", "NOPADDING"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
310 |
put("Cipher.AESWrap SupportedKeyFormats", "RAW"); |
2 | 311 |
|
13672
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
312 |
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
|
313 |
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
|
314 |
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
|
315 |
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
|
316 |
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
|
317 |
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
|
318 |
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
|
319 |
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
|
320 |
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
|
321 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
322 |
put("Cipher.RC2", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
323 |
"com.sun.crypto.provider.RC2Cipher"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
324 |
put("Cipher.RC2 SupportedModes", BLOCK_MODES); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
325 |
put("Cipher.RC2 SupportedPaddings", BLOCK_PADS); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
326 |
put("Cipher.RC2 SupportedKeyFormats", "RAW"); |
2 | 327 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
328 |
put("Cipher.ARCFOUR", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
329 |
"com.sun.crypto.provider.ARCFOURCipher"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
330 |
put("Alg.Alias.Cipher.RC4", "ARCFOUR"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
331 |
put("Cipher.ARCFOUR SupportedModes", "ECB"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
332 |
put("Cipher.ARCFOUR SupportedPaddings", "NOPADDING"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
333 |
put("Cipher.ARCFOUR SupportedKeyFormats", "RAW"); |
2 | 334 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
335 |
/* |
13672
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
336 |
* Key(pair) Generator engines |
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
337 |
*/ |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
338 |
put("KeyGenerator.DES", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
339 |
"com.sun.crypto.provider.DESKeyGenerator"); |
2 | 340 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
341 |
put("KeyGenerator.DESede", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
342 |
"com.sun.crypto.provider.DESedeKeyGenerator"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
343 |
put("Alg.Alias.KeyGenerator.TripleDES", "DESede"); |
2 | 344 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
345 |
put("KeyGenerator.Blowfish", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
346 |
"com.sun.crypto.provider.BlowfishKeyGenerator"); |
2 | 347 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
348 |
put("KeyGenerator.AES", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
349 |
"com.sun.crypto.provider.AESKeyGenerator"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
350 |
put("Alg.Alias.KeyGenerator.Rijndael", "AES"); |
2 | 351 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
352 |
put("KeyGenerator.RC2", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
353 |
"com.sun.crypto.provider.KeyGeneratorCore$" + |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
354 |
"RC2KeyGenerator"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
355 |
put("KeyGenerator.ARCFOUR", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
356 |
"com.sun.crypto.provider.KeyGeneratorCore$" + |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
357 |
"ARCFOURKeyGenerator"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
358 |
put("Alg.Alias.KeyGenerator.RC4", "ARCFOUR"); |
2 | 359 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
360 |
put("KeyGenerator.HmacMD5", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
361 |
"com.sun.crypto.provider.HmacMD5KeyGenerator"); |
2 | 362 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
363 |
put("KeyGenerator.HmacSHA1", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
364 |
"com.sun.crypto.provider.HmacSHA1KeyGenerator"); |
13672
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
365 |
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
|
366 |
put("Alg.Alias.KeyGenerator.1.2.840.113549.2.7", "HmacSHA1"); |
2 | 367 |
|
12685 | 368 |
put("KeyGenerator.HmacSHA224", |
369 |
"com.sun.crypto.provider.KeyGeneratorCore$HmacSHA2KG$SHA224"); |
|
370 |
put("Alg.Alias.KeyGenerator.OID.1.2.840.113549.2.8", "HmacSHA224"); |
|
371 |
put("Alg.Alias.KeyGenerator.1.2.840.113549.2.8", "HmacSHA224"); |
|
372 |
||
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
373 |
put("KeyGenerator.HmacSHA256", |
12685 | 374 |
"com.sun.crypto.provider.KeyGeneratorCore$HmacSHA2KG$SHA256"); |
375 |
put("Alg.Alias.KeyGenerator.OID.1.2.840.113549.2.9", "HmacSHA256"); |
|
376 |
put("Alg.Alias.KeyGenerator.1.2.840.113549.2.9", "HmacSHA256"); |
|
377 |
||
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
378 |
put("KeyGenerator.HmacSHA384", |
12685 | 379 |
"com.sun.crypto.provider.KeyGeneratorCore$HmacSHA2KG$SHA384"); |
380 |
put("Alg.Alias.KeyGenerator.OID.1.2.840.113549.2.10", "HmacSHA384"); |
|
381 |
put("Alg.Alias.KeyGenerator.1.2.840.113549.2.10", "HmacSHA384"); |
|
382 |
||
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
383 |
put("KeyGenerator.HmacSHA512", |
12685 | 384 |
"com.sun.crypto.provider.KeyGeneratorCore$HmacSHA2KG$SHA512"); |
385 |
put("Alg.Alias.KeyGenerator.OID.1.2.840.113549.2.11", "HmacSHA512"); |
|
386 |
put("Alg.Alias.KeyGenerator.1.2.840.113549.2.11", "HmacSHA512"); |
|
2 | 387 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
388 |
put("KeyPairGenerator.DiffieHellman", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
389 |
"com.sun.crypto.provider.DHKeyPairGenerator"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
390 |
put("Alg.Alias.KeyPairGenerator.DH", "DiffieHellman"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
391 |
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
|
392 |
"DiffieHellman"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
393 |
put("Alg.Alias.KeyPairGenerator."+OID_PKCS3, |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
394 |
"DiffieHellman"); |
14405
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
395 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
396 |
/* |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
397 |
* Algorithm parameter generation engines |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
398 |
*/ |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
399 |
put("AlgorithmParameterGenerator.DiffieHellman", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
400 |
"com.sun.crypto.provider.DHParameterGenerator"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
401 |
put("Alg.Alias.AlgorithmParameterGenerator.DH", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
402 |
"DiffieHellman"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
403 |
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
|
404 |
"DiffieHellman"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
405 |
put("Alg.Alias.AlgorithmParameterGenerator."+OID_PKCS3, |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
406 |
"DiffieHellman"); |
2 | 407 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
408 |
/* |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
409 |
* Key Agreement engines |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
410 |
*/ |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
411 |
put("KeyAgreement.DiffieHellman", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
412 |
"com.sun.crypto.provider.DHKeyAgreement"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
413 |
put("Alg.Alias.KeyAgreement.DH", "DiffieHellman"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
414 |
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
|
415 |
put("Alg.Alias.KeyAgreement."+OID_PKCS3, "DiffieHellman"); |
2 | 416 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
417 |
put("KeyAgreement.DiffieHellman SupportedKeyClasses", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
418 |
"javax.crypto.interfaces.DHPublicKey" + |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
419 |
"|javax.crypto.interfaces.DHPrivateKey"); |
2 | 420 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
421 |
/* |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
422 |
* Algorithm Parameter engines |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
423 |
*/ |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
424 |
put("AlgorithmParameters.DiffieHellman", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
425 |
"com.sun.crypto.provider.DHParameters"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
426 |
put("Alg.Alias.AlgorithmParameters.DH", "DiffieHellman"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
427 |
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
|
428 |
"DiffieHellman"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
429 |
put("Alg.Alias.AlgorithmParameters."+OID_PKCS3, |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
430 |
"DiffieHellman"); |
2 | 431 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
432 |
put("AlgorithmParameters.DES", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
433 |
"com.sun.crypto.provider.DESParameters"); |
2 | 434 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
435 |
put("AlgorithmParameters.DESede", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
436 |
"com.sun.crypto.provider.DESedeParameters"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
437 |
put("Alg.Alias.AlgorithmParameters.TripleDES", "DESede"); |
2 | 438 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
439 |
put("AlgorithmParameters.PBE", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
440 |
"com.sun.crypto.provider.PBEParameters"); |
2 | 441 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
442 |
put("AlgorithmParameters.PBEWithMD5AndDES", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
443 |
"com.sun.crypto.provider.PBEParameters"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
444 |
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
|
445 |
"PBEWithMD5AndDES"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
446 |
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
|
447 |
"PBEWithMD5AndDES"); |
2 | 448 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
449 |
put("AlgorithmParameters.PBEWithMD5AndTripleDES", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
450 |
"com.sun.crypto.provider.PBEParameters"); |
2 | 451 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
452 |
put("AlgorithmParameters.PBEWithSHA1AndDESede", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
453 |
"com.sun.crypto.provider.PBEParameters"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
454 |
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
|
455 |
"PBEWithSHA1AndDESede"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
456 |
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
|
457 |
"PBEWithSHA1AndDESede"); |
2 | 458 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
459 |
put("AlgorithmParameters.PBEWithSHA1AndRC2_40", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
460 |
"com.sun.crypto.provider.PBEParameters"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
461 |
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
|
462 |
"PBEWithSHA1AndRC2_40"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
463 |
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
|
464 |
"PBEWithSHA1AndRC2_40"); |
2 | 465 |
|
14405
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
466 |
put("AlgorithmParameters.PBEWithSHA1AndRC2_128", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
467 |
"com.sun.crypto.provider.PBEParameters"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
468 |
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
|
469 |
"PBEWithSHA1AndRC2_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
470 |
put("Alg.Alias.AlgorithmParameters." + OID_PKCS12_RC2_128, |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
471 |
"PBEWithSHA1AndRC2_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
472 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
473 |
put("AlgorithmParameters.PBEWithSHA1AndRC4_40", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
474 |
"com.sun.crypto.provider.PBEParameters"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
475 |
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
|
476 |
"PBEWithSHA1AndRC4_40"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
477 |
put("Alg.Alias.AlgorithmParameters." + OID_PKCS12_RC4_40, |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
478 |
"PBEWithSHA1AndRC4_40"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
479 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
480 |
put("AlgorithmParameters.PBEWithSHA1AndRC4_128", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
481 |
"com.sun.crypto.provider.PBEParameters"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
482 |
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
|
483 |
"PBEWithSHA1AndRC4_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
484 |
put("Alg.Alias.AlgorithmParameters." + OID_PKCS12_RC4_128, |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
485 |
"PBEWithSHA1AndRC4_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
486 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
487 |
put("AlgorithmParameters.PBES2", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
488 |
"com.sun.crypto.provider.PBES2Parameters$General"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
489 |
put("Alg.Alias.AlgorithmParameters.OID."+OID_PKCS5_PBES2, |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
490 |
"PBES2"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
491 |
put("Alg.Alias.AlgorithmParameters." + OID_PKCS5_PBES2, |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
492 |
"PBES2"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
493 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
494 |
put("AlgorithmParameters.PBEWithHmacSHA1AndAES_128", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
495 |
"com.sun.crypto.provider.PBES2Parameters$HmacSHA1AndAES_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
496 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
497 |
put("AlgorithmParameters.PBEWithHmacSHA224AndAES_128", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
498 |
"com.sun.crypto.provider.PBES2Parameters$HmacSHA224AndAES_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
499 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
500 |
put("AlgorithmParameters.PBEWithHmacSHA256AndAES_128", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
501 |
"com.sun.crypto.provider.PBES2Parameters$HmacSHA256AndAES_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
502 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
503 |
put("AlgorithmParameters.PBEWithHmacSHA384AndAES_128", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
504 |
"com.sun.crypto.provider.PBES2Parameters$HmacSHA384AndAES_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
505 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
506 |
put("AlgorithmParameters.PBEWithHmacSHA512AndAES_128", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
507 |
"com.sun.crypto.provider.PBES2Parameters$HmacSHA512AndAES_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
508 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
509 |
put("AlgorithmParameters.PBEWithHmacSHA1AndAES_256", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
510 |
"com.sun.crypto.provider.PBES2Parameters$HmacSHA1AndAES_256"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
511 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
512 |
put("AlgorithmParameters.PBEWithHmacSHA224AndAES_256", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
513 |
"com.sun.crypto.provider.PBES2Parameters$HmacSHA224AndAES_256"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
514 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
515 |
put("AlgorithmParameters.PBEWithHmacSHA256AndAES_256", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
516 |
"com.sun.crypto.provider.PBES2Parameters$HmacSHA256AndAES_256"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
517 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
518 |
put("AlgorithmParameters.PBEWithHmacSHA384AndAES_256", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
519 |
"com.sun.crypto.provider.PBES2Parameters$HmacSHA384AndAES_256"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
520 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
521 |
put("AlgorithmParameters.PBEWithHmacSHA512AndAES_256", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
522 |
"com.sun.crypto.provider.PBES2Parameters$HmacSHA512AndAES_256"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
523 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
524 |
put("AlgorithmParameters.Blowfish", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
525 |
"com.sun.crypto.provider.BlowfishParameters"); |
2 | 526 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
527 |
put("AlgorithmParameters.AES", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
528 |
"com.sun.crypto.provider.AESParameters"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
529 |
put("Alg.Alias.AlgorithmParameters.Rijndael", "AES"); |
15008 | 530 |
put("AlgorithmParameters.GCM", |
531 |
"com.sun.crypto.provider.GCMParameters"); |
|
2 | 532 |
|
14405
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
533 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
534 |
put("AlgorithmParameters.RC2", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
535 |
"com.sun.crypto.provider.RC2Parameters"); |
2 | 536 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
537 |
put("AlgorithmParameters.OAEP", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
538 |
"com.sun.crypto.provider.OAEPParameters"); |
2 | 539 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
540 |
/* |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
541 |
* Key factories |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
542 |
*/ |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
543 |
put("KeyFactory.DiffieHellman", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
544 |
"com.sun.crypto.provider.DHKeyFactory"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
545 |
put("Alg.Alias.KeyFactory.DH", "DiffieHellman"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
546 |
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
|
547 |
"DiffieHellman"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
548 |
put("Alg.Alias.KeyFactory."+OID_PKCS3, "DiffieHellman"); |
14405
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
549 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
550 |
/* |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
551 |
* Secret-key factories |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
552 |
*/ |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
553 |
put("SecretKeyFactory.DES", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
554 |
"com.sun.crypto.provider.DESKeyFactory"); |
2 | 555 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
556 |
put("SecretKeyFactory.DESede", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
557 |
"com.sun.crypto.provider.DESedeKeyFactory"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
558 |
put("Alg.Alias.SecretKeyFactory.TripleDES", "DESede"); |
2 | 559 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
560 |
put("SecretKeyFactory.PBEWithMD5AndDES", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
561 |
"com.sun.crypto.provider.PBEKeyFactory$PBEWithMD5AndDES" |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
562 |
); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
563 |
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
|
564 |
"PBEWithMD5AndDES"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
565 |
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
|
566 |
"PBEWithMD5AndDES"); |
2 | 567 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
568 |
put("Alg.Alias.SecretKeyFactory.PBE", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
569 |
"PBEWithMD5AndDES"); |
2 | 570 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
571 |
/* |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
572 |
* 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
|
573 |
* 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
|
574 |
* 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
|
575 |
* algorithm. |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
576 |
*/ |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
577 |
put("SecretKeyFactory.PBEWithMD5AndTripleDES", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
578 |
"com.sun.crypto.provider.PBEKeyFactory$" + |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
579 |
"PBEWithMD5AndTripleDES" |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
580 |
); |
2 | 581 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
582 |
put("SecretKeyFactory.PBEWithSHA1AndDESede", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
583 |
"com.sun.crypto.provider.PBEKeyFactory$PBEWithSHA1AndDESede" |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
584 |
); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
585 |
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
|
586 |
"PBEWithSHA1AndDESede"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
587 |
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
|
588 |
"PBEWithSHA1AndDESede"); |
2 | 589 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
590 |
put("SecretKeyFactory.PBEWithSHA1AndRC2_40", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
591 |
"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
|
592 |
); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
593 |
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
|
594 |
"PBEWithSHA1AndRC2_40"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
595 |
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
|
596 |
"PBEWithSHA1AndRC2_40"); |
2 | 597 |
|
14405
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
598 |
put("SecretKeyFactory.PBEWithSHA1AndRC2_128", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
599 |
"com.sun.crypto.provider.PBEKeyFactory$PBEWithSHA1AndRC2_128" |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
600 |
); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
601 |
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
|
602 |
"PBEWithSHA1AndRC2_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
603 |
put("Alg.Alias.SecretKeyFactory." + OID_PKCS12_RC2_128, |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
604 |
"PBEWithSHA1AndRC2_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
605 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
606 |
put("SecretKeyFactory.PBEWithSHA1AndRC4_40", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
607 |
"com.sun.crypto.provider.PBEKeyFactory$PBEWithSHA1AndRC4_40" |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
608 |
); |
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 |
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
|
611 |
"PBEWithSHA1AndRC4_40"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
612 |
put("Alg.Alias.SecretKeyFactory." + OID_PKCS12_RC4_40, |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
613 |
"PBEWithSHA1AndRC4_40"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
614 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
615 |
put("SecretKeyFactory.PBEWithSHA1AndRC4_128", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
616 |
"com.sun.crypto.provider.PBEKeyFactory$PBEWithSHA1AndRC4_128" |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
617 |
); |
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 |
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
|
620 |
"PBEWithSHA1AndRC4_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
621 |
put("Alg.Alias.SecretKeyFactory." + OID_PKCS12_RC4_128, |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
622 |
"PBEWithSHA1AndRC4_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
623 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
624 |
put("SecretKeyFactory.PBEWithHmacSHA1AndAES_128", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
625 |
"com.sun.crypto.provider.PBEKeyFactory$" + |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
626 |
"PBEWithHmacSHA1AndAES_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
627 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
628 |
put("SecretKeyFactory.PBEWithHmacSHA224AndAES_128", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
629 |
"com.sun.crypto.provider.PBEKeyFactory$" + |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
630 |
"PBEWithHmacSHA224AndAES_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
631 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
632 |
put("SecretKeyFactory.PBEWithHmacSHA256AndAES_128", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
633 |
"com.sun.crypto.provider.PBEKeyFactory$" + |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
634 |
"PBEWithHmacSHA256AndAES_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
635 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
636 |
put("SecretKeyFactory.PBEWithHmacSHA384AndAES_128", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
637 |
"com.sun.crypto.provider.PBEKeyFactory$" + |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
638 |
"PBEWithHmacSHA384AndAES_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
639 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
640 |
put("SecretKeyFactory.PBEWithHmacSHA512AndAES_128", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
641 |
"com.sun.crypto.provider.PBEKeyFactory$" + |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
642 |
"PBEWithHmacSHA512AndAES_128"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
643 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
644 |
put("SecretKeyFactory.PBEWithHmacSHA1AndAES_256", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
645 |
"com.sun.crypto.provider.PBEKeyFactory$" + |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
646 |
"PBEWithHmacSHA1AndAES_256"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
647 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
648 |
put("SecretKeyFactory.PBEWithHmacSHA224AndAES_256", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
649 |
"com.sun.crypto.provider.PBEKeyFactory$" + |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
650 |
"PBEWithHmacSHA224AndAES_256"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
651 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
652 |
put("SecretKeyFactory.PBEWithHmacSHA256AndAES_256", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
653 |
"com.sun.crypto.provider.PBEKeyFactory$" + |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
654 |
"PBEWithHmacSHA256AndAES_256"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
655 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
656 |
put("SecretKeyFactory.PBEWithHmacSHA384AndAES_256", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
657 |
"com.sun.crypto.provider.PBEKeyFactory$" + |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
658 |
"PBEWithHmacSHA384AndAES_256"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
659 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
660 |
put("SecretKeyFactory.PBEWithHmacSHA512AndAES_256", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
661 |
"com.sun.crypto.provider.PBEKeyFactory$" + |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
662 |
"PBEWithHmacSHA512AndAES_256"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
663 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
664 |
// PBKDF2 |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
665 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
666 |
put("SecretKeyFactory.PBKDF2WithHmacSHA1", |
14405
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
667 |
"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
|
668 |
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
|
669 |
"PBKDF2WithHmacSHA1"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
670 |
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
|
671 |
"PBKDF2WithHmacSHA1"); |
2 | 672 |
|
14405
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
673 |
put("SecretKeyFactory.PBKDF2WithHmacSHA224", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
674 |
"com.sun.crypto.provider.PBKDF2Core$HmacSHA224"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
675 |
put("SecretKeyFactory.PBKDF2WithHmacSHA256", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
676 |
"com.sun.crypto.provider.PBKDF2Core$HmacSHA256"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
677 |
put("SecretKeyFactory.PBKDF2WithHmacSHA384", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
678 |
"com.sun.crypto.provider.PBKDF2Core$HmacSHA384"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
679 |
put("SecretKeyFactory.PBKDF2WithHmacSHA512", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
680 |
"com.sun.crypto.provider.PBKDF2Core$HmacSHA512"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
681 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
682 |
/* |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
683 |
* MAC |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
684 |
*/ |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
685 |
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
|
686 |
put("Mac.HmacSHA1", "com.sun.crypto.provider.HmacSHA1"); |
13672
604588823b5a
7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents:
12685
diff
changeset
|
687 |
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
|
688 |
put("Alg.Alias.Mac.1.2.840.113549.2.7", "HmacSHA1"); |
12685 | 689 |
put("Mac.HmacSHA224", |
690 |
"com.sun.crypto.provider.HmacCore$HmacSHA224"); |
|
691 |
put("Alg.Alias.Mac.OID.1.2.840.113549.2.8", "HmacSHA224"); |
|
692 |
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
|
693 |
put("Mac.HmacSHA256", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
694 |
"com.sun.crypto.provider.HmacCore$HmacSHA256"); |
12685 | 695 |
put("Alg.Alias.Mac.OID.1.2.840.113549.2.9", "HmacSHA256"); |
696 |
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
|
697 |
put("Mac.HmacSHA384", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
698 |
"com.sun.crypto.provider.HmacCore$HmacSHA384"); |
12685 | 699 |
put("Alg.Alias.Mac.OID.1.2.840.113549.2.10", "HmacSHA384"); |
700 |
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
|
701 |
put("Mac.HmacSHA512", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
702 |
"com.sun.crypto.provider.HmacCore$HmacSHA512"); |
12685 | 703 |
put("Alg.Alias.Mac.OID.1.2.840.113549.2.11", "HmacSHA512"); |
704 |
put("Alg.Alias.Mac.1.2.840.113549.2.11", "HmacSHA512"); |
|
705 |
||
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
706 |
put("Mac.HmacPBESHA1", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
707 |
"com.sun.crypto.provider.HmacPKCS12PBESHA1"); |
2 | 708 |
|
14405
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
709 |
// PBMAC1 |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
710 |
|
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
711 |
put("Mac.PBEWithHmacSHA1", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
712 |
"com.sun.crypto.provider.PBMAC1Core$HmacSHA1"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
713 |
put("Mac.PBEWithHmacSHA224", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
714 |
"com.sun.crypto.provider.PBMAC1Core$HmacSHA224"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
715 |
put("Mac.PBEWithHmacSHA256", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
716 |
"com.sun.crypto.provider.PBMAC1Core$HmacSHA256"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
717 |
put("Mac.PBEWithHmacSHA384", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
718 |
"com.sun.crypto.provider.PBMAC1Core$HmacSHA384"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
719 |
put("Mac.PBEWithHmacSHA512", |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
720 |
"com.sun.crypto.provider.PBMAC1Core$HmacSHA512"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
721 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
722 |
put("Mac.SslMacMD5", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
723 |
"com.sun.crypto.provider.SslMacCore$SslMacMD5"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
724 |
put("Mac.SslMacSHA1", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
725 |
"com.sun.crypto.provider.SslMacCore$SslMacSHA1"); |
2 | 726 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
727 |
put("Mac.HmacMD5 SupportedKeyFormats", "RAW"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
728 |
put("Mac.HmacSHA1 SupportedKeyFormats", "RAW"); |
12685 | 729 |
put("Mac.HmacSHA224 SupportedKeyFormats", "RAW"); |
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
730 |
put("Mac.HmacSHA256 SupportedKeyFormats", "RAW"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
731 |
put("Mac.HmacSHA384 SupportedKeyFormats", "RAW"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
732 |
put("Mac.HmacSHA512 SupportedKeyFormats", "RAW"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
733 |
put("Mac.HmacPBESHA1 SupportedKeyFormats", "RAW"); |
14405
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
734 |
put("Mac.HmacPBESHA224 SupportedKeyFormats", "RAW"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
735 |
put("Mac.HmacPBESHA256 SupportedKeyFormats", "RAW"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
736 |
put("Mac.HmacPBESHA384 SupportedKeyFormats", "RAW"); |
e7fff80005c1
6383200: PBE: need new algorithm support in password based encryption
vinnie
parents:
13672
diff
changeset
|
737 |
put("Mac.HmacPBESHA512 SupportedKeyFormats", "RAW"); |
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
738 |
put("Mac.SslMacMD5 SupportedKeyFormats", "RAW"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
739 |
put("Mac.SslMacSHA1 SupportedKeyFormats", "RAW"); |
2 | 740 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
741 |
/* |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
742 |
* KeyStore |
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 |
put("KeyStore.JCEKS", "com.sun.crypto.provider.JceKeyStore"); |
2 | 745 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
746 |
/* |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
747 |
* SSL/TLS mechanisms |
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 |
* 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
|
750 |
* 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
|
751 |
* 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
|
752 |
* 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
|
753 |
*/ |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
754 |
put("KeyGenerator.SunTlsPrf", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
755 |
"com.sun.crypto.provider.TlsPrfGenerator$V10"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
756 |
put("KeyGenerator.SunTls12Prf", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
757 |
"com.sun.crypto.provider.TlsPrfGenerator$V12"); |
7043 | 758 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
759 |
put("KeyGenerator.SunTlsMasterSecret", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
760 |
"com.sun.crypto.provider.TlsMasterSecretGenerator"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
761 |
put("Alg.Alias.KeyGenerator.SunTls12MasterSecret", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
762 |
"SunTlsMasterSecret"); |
7043 | 763 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
764 |
put("KeyGenerator.SunTlsKeyMaterial", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
765 |
"com.sun.crypto.provider.TlsKeyMaterialGenerator"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
766 |
put("Alg.Alias.KeyGenerator.SunTls12KeyMaterial", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
767 |
"SunTlsKeyMaterial"); |
7043 | 768 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
769 |
put("KeyGenerator.SunTlsRsaPremasterSecret", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
770 |
"com.sun.crypto.provider.TlsRsaPremasterSecretGenerator"); |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
771 |
put("Alg.Alias.KeyGenerator.SunTls12RsaPremasterSecret", |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
772 |
"SunTlsRsaPremasterSecret"); |
2 | 773 |
|
10336
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
774 |
return null; |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
775 |
} |
0bb1999251f8
7064075: Security libraries don't build with javac -Xlint:all,-deprecation -Werror
jjg
parents:
7043
diff
changeset
|
776 |
}); |
16909
78a1749a43e2
7171982: Cipher getParameters() throws RuntimeException: Cannot find SunJCE provider
vinnie
parents:
15010
diff
changeset
|
777 |
|
78a1749a43e2
7171982: Cipher getParameters() throws RuntimeException: Cannot find SunJCE provider
vinnie
parents:
15010
diff
changeset
|
778 |
if (instance == null) { |
78a1749a43e2
7171982: Cipher getParameters() throws RuntimeException: Cannot find SunJCE provider
vinnie
parents:
15010
diff
changeset
|
779 |
instance = this; |
78a1749a43e2
7171982: Cipher getParameters() throws RuntimeException: Cannot find SunJCE provider
vinnie
parents:
15010
diff
changeset
|
780 |
} |
78a1749a43e2
7171982: Cipher getParameters() throws RuntimeException: Cannot find SunJCE provider
vinnie
parents:
15010
diff
changeset
|
781 |
} |
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 |
// 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
|
784 |
static SunJCE getInstance() { |
78a1749a43e2
7171982: Cipher getParameters() throws RuntimeException: Cannot find SunJCE provider
vinnie
parents:
15010
diff
changeset
|
785 |
if (instance == null) { |
78a1749a43e2
7171982: Cipher getParameters() throws RuntimeException: Cannot find SunJCE provider
vinnie
parents:
15010
diff
changeset
|
786 |
return new SunJCE(); |
78a1749a43e2
7171982: Cipher getParameters() throws RuntimeException: Cannot find SunJCE provider
vinnie
parents:
15010
diff
changeset
|
787 |
} |
78a1749a43e2
7171982: Cipher getParameters() throws RuntimeException: Cannot find SunJCE provider
vinnie
parents:
15010
diff
changeset
|
788 |
return instance; |
2 | 789 |
} |
790 |
} |