79 /* |
79 /* |
80 * Signature engines |
80 * Signature engines |
81 */ |
81 */ |
82 // NONEwithRSA must be supplied with a pre-computed message digest. |
82 // NONEwithRSA must be supplied with a pre-computed message digest. |
83 // Only the following digest algorithms are supported: MD5, SHA-1, |
83 // Only the following digest algorithms are supported: MD5, SHA-1, |
84 // SHA-256, SHA-384, SHA-512 and a special-purpose digest algorithm |
84 // SHA-224, SHA-256, SHA-384, SHA-512 and a special-purpose digest |
85 // which is a concatenation of SHA-1 and MD5 digests. |
85 // algorithm which is a concatenation of SHA-1 and MD5 digests. |
86 map.put("Signature.NONEwithRSA", |
86 map.put("Signature.NONEwithRSA", |
87 "sun.security.mscapi.RSASignature$Raw"); |
87 "sun.security.mscapi.RSASignature$Raw"); |
88 map.put("Signature.SHA1withRSA", |
88 map.put("Signature.SHA1withRSA", |
89 "sun.security.mscapi.RSASignature$SHA1"); |
89 "sun.security.mscapi.RSASignature$SHA1"); |
|
90 map.put("Signature.SHA224withRSA", |
|
91 "sun.security.mscapi.RSASignature$SHA224"); |
|
92 map.put("Alg.Alias.Signature.1.2.840.113549.1.1.14", "SHA224withRSA"); |
|
93 map.put("Alg.Alias.Signature.OID.1.2.840.113549.1.1.14", "SHA224withRSA"); |
90 map.put("Signature.SHA256withRSA", |
94 map.put("Signature.SHA256withRSA", |
91 "sun.security.mscapi.RSASignature$SHA256"); |
95 "sun.security.mscapi.RSASignature$SHA256"); |
|
96 map.put("Alg.Alias.Signature.1.2.840.113549.1.1.11", "SHA256withRSA"); |
|
97 map.put("Alg.Alias.Signature.OID.1.2.840.113549.1.1.11", "SHA256withRSA"); |
92 map.put("Signature.SHA384withRSA", |
98 map.put("Signature.SHA384withRSA", |
93 "sun.security.mscapi.RSASignature$SHA384"); |
99 "sun.security.mscapi.RSASignature$SHA384"); |
|
100 map.put("Alg.Alias.Signature.1.2.840.113549.1.1.12", "SHA384withRSA"); |
|
101 map.put("Alg.Alias.Signature.OID.1.2.840.113549.1.1.12", "SHA384withRSA"); |
|
102 |
94 map.put("Signature.SHA512withRSA", |
103 map.put("Signature.SHA512withRSA", |
95 "sun.security.mscapi.RSASignature$SHA512"); |
104 "sun.security.mscapi.RSASignature$SHA512"); |
|
105 map.put("Alg.Alias.Signature.1.2.840.113549.1.1.13", "SHA512withRSA"); |
|
106 map.put("Alg.Alias.Signature.OID.1.2.840.113549.1.1.13", "SHA512withRSA"); |
|
107 |
96 map.put("Signature.MD5withRSA", |
108 map.put("Signature.MD5withRSA", |
97 "sun.security.mscapi.RSASignature$MD5"); |
109 "sun.security.mscapi.RSASignature$MD5"); |
98 map.put("Signature.MD2withRSA", |
110 map.put("Signature.MD2withRSA", |
99 "sun.security.mscapi.RSASignature$MD2"); |
111 "sun.security.mscapi.RSASignature$MD2"); |
100 |
112 |
101 // supported key classes |
113 // supported key classes |
102 map.put("Signature.NONEwithRSA SupportedKeyClasses", |
114 map.put("Signature.NONEwithRSA SupportedKeyClasses", |
103 "sun.security.mscapi.Key"); |
115 "sun.security.mscapi.Key"); |
104 map.put("Signature.SHA1withRSA SupportedKeyClasses", |
116 map.put("Signature.SHA1withRSA SupportedKeyClasses", |
|
117 "sun.security.mscapi.Key"); |
|
118 map.put("Signature.SHA224withRSA SupportedKeyClasses", |
105 "sun.security.mscapi.Key"); |
119 "sun.security.mscapi.Key"); |
106 map.put("Signature.SHA256withRSA SupportedKeyClasses", |
120 map.put("Signature.SHA256withRSA SupportedKeyClasses", |
107 "sun.security.mscapi.Key"); |
121 "sun.security.mscapi.Key"); |
108 map.put("Signature.SHA384withRSA SupportedKeyClasses", |
122 map.put("Signature.SHA384withRSA SupportedKeyClasses", |
109 "sun.security.mscapi.Key"); |
123 "sun.security.mscapi.Key"); |