46 |
{ |
{ |
47 |
public Gnu() |
public Gnu() |
48 |
{ |
{ |
49 |
super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores"); |
super("GNU", 1.0, "GNU provider v1.0 implementing SHA-1, MD5, DSA, RSA, X.509 Certificates and CRLs, PKIX certificate path validators, Collection cert stores, Diffie-Hellman key agreement"); |
50 |
|
|
51 |
AccessController.doPrivileged (new PrivilegedAction() |
AccessController.doPrivileged (new PrivilegedAction() |
52 |
{ |
{ |
161 |
// CertStore |
// CertStore |
162 |
put("CertStore.Collection", CollectionCertStoreImpl.class.getName()); |
put("CertStore.Collection", CollectionCertStoreImpl.class.getName()); |
163 |
|
|
164 |
|
// KeyAgreement |
165 |
|
put("KeyAgreement.DiffieHellman", gnu.javax.crypto.DiffieHellmanImpl.class.getName()); |
166 |
|
put("Alg.Alias.KeyAgreement.DH", "DiffieHellman"); |
167 |
|
|
168 |
|
// Cipher |
169 |
|
put("Cipher.RSAES-PKCS1-v1_5", gnu.javax.crypto.RSACipherImpl.class.getName()); |
170 |
|
put("Alg.Alias.Cipher.RSA", "RSAES-PKCS1-v1_5"); |
171 |
|
|
172 |
return null; |
return null; |
173 |
} |
} |
174 |
}); |
}); |