/libcore/luni/src/main/java/java/security/ |
AlgorithmParameters.java | 27 * {@code AlgorithmParameters} is an engine class which provides algorithm 52 * The security algorithm. 54 private final String algorithm; field in class:AlgorithmParameters 69 * @param algorithm 70 * the name of the algorithm. 73 Provider provider, String algorithm) { 75 this.algorithm = algorithm; 81 * algorithm. 83 * @param algorithm [all...] |
KeyPairGenerator.java | 26 * private key and its related public key utilizing the algorithm it was 45 // Store used algorithm 46 private String algorithm; field in class:KeyPairGenerator 50 * the algorithm to use. 52 * @param algorithm 53 * the name of algorithm to use 55 protected KeyPairGenerator(String algorithm) { 56 this.algorithm = algorithm; 60 * Returns the name of the algorithm of this {@code KeyPairGenerator} [all...] |
MessageDigest.java | 59 // The algorithm. 60 private String algorithm; field in class:MessageDigest 64 * the algorithm to use. 66 * @param algorithm 67 * the name of algorithm to use 69 protected MessageDigest(String algorithm) { 70 this.algorithm = algorithm; 75 * specified algorithm. 77 * @param algorithm [all...] |
SecureRandom.java | 35 * compatible with the SHA1PRNG algorithm on the reference 39 * <p>The default algorithm is defined by the first {@code SecureRandomSpi} 47 * algorithm must be secure. 81 private final String algorithm; field in class:SecureRandom 87 * Constructs a new {@code SecureRandom} that uses the default algorithm. 96 this.algorithm = "SHA1PRNG"; 101 this.algorithm = service.getAlgorithm(); 110 * algorithm. <a href="#insecure_seed">Seeding {@code SecureRandom} may be 135 String algorithm) { 138 this.algorithm = algorithm [all...] |
/libcore/luni/src/main/java/java/security/cert/ |
CertPathBuilder.java | 52 // Store algorithm name 53 private final String algorithm; field in class:CertPathBuilder 62 * @param algorithm 63 * the desired algorithm available at the provider. 66 String algorithm) { 68 this.algorithm = algorithm; 73 * Returns the algorithm name of this instance. 75 * @return the algorithm name of this instance. 78 return algorithm; [all...] |
CertPathValidator.java | 52 // Store used algorithm value 53 private final String algorithm; field in class:CertPathValidator 62 * @param algorithm 63 * the name of the algorithm. 66 Provider provider, String algorithm) { 68 this.algorithm = algorithm; 73 * Returns the certification path algorithm name. 75 * @return the certification path algorithm name. 78 return algorithm; [all...] |
/libcore/luni/src/main/java/javax/net/ssl/ |
KeyManagerFactory.java | 41 private static final String PROPERTY_NAME = "ssl.KeyManagerFactory.algorithm"; 44 * Returns the default key manager factory algorithm name. 46 * The default algorithm name is specified by the security property: 47 * {@code 'ssl.KeyManagerFactory.algorithm'}. 49 * @return the default algorithm name. 57 * management algorithm. 59 * @param algorithm 60 * the name of the requested key management algorithm. 61 * @return a key manager factory for the requested algorithm. 63 * if no installed provider can provide the requested algorithm 143 private final String algorithm; field in class:KeyManagerFactory [all...] |
/libcore/luni/src/main/java/org/apache/harmony/security/fortress/ |
Engine.java | 48 * private final String algorithm; 52 * String algorithm) { 55 * this.algorithm = algorithm; 58 * public static Foo getInstance(String algorithm) { 59 * Engine.SpiAndProvider sap = ENGINE.getInstance(algorithm, null); 60 * return new Foo((FooSpi) sap.spi, sap.provider, algorithm); 63 * public static Foo getInstance(String algorithm, Provider provider) { 64 * Object spi = ENGINE.getInstance(algorithm, provider, null); 65 * return new Foo((FooSpi) spi, provider, algorithm); 94 private final String algorithm; field in class:Engine.ServiceCacheEntry [all...] |
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/ |
SecretKeySpecTest.java | 38 * SecretKeySpec(byte[] key, String algorithm) method testing. Tests that 45 String algorithm = "Algorithm"; local 48 new SecretKeySpec(new byte[] {}, algorithm); 55 new SecretKeySpec(null, algorithm); 64 + "in the case of null algorithm."); 68 SecretKeySpec ks = new SecretKeySpec(key, algorithm); 76 * SecretKeySpec(byte[] key, int offset, int len, String algorithm) method 85 String algorithm = "Algorithm"; local 143 String algorithm = "Algorithm"; local 161 String algorithm = "Algorithm"; local 174 String algorithm = "Algorithm"; local 188 String algorithm = "Algorithm"; local 214 String algorithm = "Algorithm"; local 229 String algorithm = "Algorithm"; local [all...] |
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
KeyStorePrivateKeyEntryTest.java | 65 String algorithm = certificate.getPublicKey().getAlgorithm(); local 67 .getInstance(algorithm);
|
/libcore/luni/src/test/java/org/apache/harmony/xnet/provider/jsse/ |
TrustManagerImplTest.java | 70 String algorithm = TrustManagerFactory.getDefaultAlgorithm(); local 71 TrustManagerFactory tmf = TrustManagerFactory.getInstance(algorithm);
|
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
KeyStoreTestSupport.java | 90 private String algorithm; field in class:KeyStoreTestSupport.MyPrivateKey 96 public MyPrivateKey(String algorithm, String format, byte[] encoded) { 97 this.algorithm = algorithm; 103 return algorithm;
|
MyKeyPairGenerator1.java | 95 private String algorithm; field in class:MyKeyPairGenerator1.PubKey 102 this.algorithm = "MyKeyPairGenerator1"; 108 return algorithm; 121 private String algorithm; field in class:MyKeyPairGenerator1.PrivKey 128 this.algorithm = "MyKeyPairGenerator1"; 134 return algorithm;
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
KeyFactory2Test.java | 115 "generatePrivate generated different key for algorithm " 120 fail("invalid key spec for algorithm " + keyfactAlgs[i]); 122 fail("getInstance did not find algorithm " + keyfactAlgs[i]); 155 "generatePublic generated different key for algorithm " 158 fail("getInstance did not find algorithm " + keyfactAlgs[i]); 162 fail("invalid key spec for algorithm " + keyfactAlgs[i]); 177 assertTrue("getAlgorithm ok for algorithm " + keyfactAlgs[i], 180 fail("getInstance did not find algorithm " + keyfactAlgs[i]); 197 fail("getInstance did not find algorithm " + keyfactAlgs[i]); 221 fail("getInstance did not find algorithm"); 370 String algorithm = (String) e.nextElement(); local [all...] |
/external/apache-harmony/crypto/src/test/api/java.injected/javax/crypto/ |
SealedObjectTest.java | 104 assertEquals("The algorithm which was used to seal the object " 105 + "should be the same as the algorithm used to seal the " 115 String algorithm = "DES"; local 116 KeyGenerator kg = KeyGenerator.getInstance(algorithm); 119 Cipher cipher = Cipher.getInstance(algorithm); 123 assertEquals("The algorithm name should be the same as used " 124 + "in cipher.", algorithm, so.getAlgorithm()); 129 * encryption algorithm and specified parameters can be retrieved by 149 + "should contain the encoded algorithm parameters.", Arrays 156 * with encryption algorithm and specified parameters can be retrieved b [all...] |
/external/bouncycastle/src/main/java/org/bouncycastle/crypto/digests/ |
OpenSSLDigest.java | 28 * Holds the standard name of the hashing algorithm, e.g. "SHA-1"; 30 private final String algorithm; field in class:OpenSSLDigest 33 * Holds the EVP_MD for the hashing algorithm, e.g. EVP_get_digestbyname("sha1"); 60 * Creates a new OpenSSLMessageDigest instance for the given algorithm 63 private OpenSSLDigest(String algorithm, int evp_md, int size, int blockSize) { 64 this.algorithm = algorithm; 71 return algorithm;
|
/external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/ |
JCEPBEKey.java | 15 String algorithm; field in class:JCEPBEKey 29 String algorithm, 38 this.algorithm = algorithm; 50 return algorithm;
|
/external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/asymmetric/ec/ |
KeyPairGenerator.java | 56 String algorithm; field in class:KeyPairGenerator.EC 77 this.algorithm = "EC"; 81 String algorithm) 83 super(algorithm); 84 this.algorithm = algorithm; 158 // if (this.algorithm.equals("ECGOST3410")) 286 JCEECPublicKey pubKey = new JCEECPublicKey(algorithm, pub, p); 288 new JCEECPrivateKey(algorithm, priv, pubKey, p)); 292 return new KeyPair(new JCEECPublicKey(algorithm, pub) [all...] |
/external/bouncycastle/src/main/java/org/bouncycastle/openssl/ |
MiscPEMGenerator.java | 50 private String algorithm; field in class:MiscPEMGenerator 62 String algorithm, 68 this.algorithm = algorithm; 76 String algorithm, 83 this.algorithm = algorithm; 227 String algorithm, 234 return createPemObject(((KeyPair)obj).getPrivate(), algorithm, password, random); 295 String dekAlgName = Strings.toUpperCase(algorithm); [all...] |
/external/ipsec-tools/src/racoon/ |
getcertsbyname.c | 70 getnewci(qtype, keytag, algorithm, flags, certlen, cert) 71 int qtype, keytag, algorithm, flags, certlen; 83 res->ci_algorithm = algorithm; 127 int type, keytag, algorithm; local 170 algorithm = *cp++; /* algorithm */ 175 type, keytag, algorithm, rdlength); 179 cur->ci_next = getnewci(type, keytag, algorithm, 214 int qtype, qclass, keytag, algorithm; local 303 algorithm = *cp++; /* algorithm * [all...] |
/external/nist-sip/java/gov/nist/core/net/ |
SslNetworkLayer.java | 72 String algorithm = KeyManagerFactory.getDefaultAlgorithm();
local 73 TrustManagerFactory tmFactory = TrustManagerFactory.getInstance(algorithm);
74 KeyManagerFactory kmFactory = KeyManagerFactory.getInstance(algorithm);
|
/libcore/luni/src/main/java/javax/crypto/ |
Mac.java | 47 // Store used algorithm name 48 private final String algorithm; field in class:Mac 60 * @param algorithm 61 * the name of the MAC algorithm. 63 protected Mac(MacSpi macSpi, Provider provider, String algorithm) { 65 this.algorithm = algorithm; 71 * Returns the name of the MAC algorithm. 73 * @return the name of the MAC algorithm. 76 return algorithm; [all...] |
/libcore/luni/src/test/java/libcore/java/security/ |
MessageDigestTest.java | 53 String algorithm = service.getAlgorithm(); local 56 MessageDigest md1 = MessageDigest.getInstance(algorithm); 57 assertEquals(algorithm, md1.getAlgorithm()); 61 MessageDigest md2 = MessageDigest.getInstance(algorithm, provider); 62 assertEquals(algorithm, md2.getAlgorithm()); 67 MessageDigest md3 = MessageDigest.getInstance(algorithm, provider.getName()); 68 assertEquals(algorithm, md3.getAlgorithm()); 72 throw new Exception("Problem testing MessageDigest." + algorithm, e); 80 private static void putExpectation(String algorithm, String inputName, byte[] expected) { 81 algorithm = algorithm.toUpperCase() 197 String algorithm = md.getAlgorithm(); local [all...] |
/libcore/luni/src/test/java/libcore/javax/crypto/ |
KeyGeneratorTest.java | 47 String algorithm = service.getAlgorithm(); local 50 KeyGenerator kg1 = KeyGenerator.getInstance(algorithm); 51 assertEquals(algorithm, kg1.getAlgorithm()); 55 KeyGenerator kg2 = KeyGenerator.getInstance(algorithm, provider); 56 assertEquals(algorithm, kg2.getAlgorithm()); 61 KeyGenerator kg3 = KeyGenerator.getInstance(algorithm, provider.getName()); 62 assertEquals(algorithm, kg3.getAlgorithm()); 66 throw new Exception("Problem testing KeyPairGenerator." + algorithm, e); 74 private static void putKeySize(String algorithm, int keySize) { 75 algorithm = algorithm.toUpperCase() 136 String algorithm = kg.getAlgorithm(); local [all...] |
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/ |
SealedObjectTest.java | 142 assertEquals("The algorithm which was used to seal the object " 143 + "should be the same as the algorithm used to seal the " 153 String algorithm = "DES"; local 154 KeyGenerator kg = KeyGenerator.getInstance(algorithm); 157 Cipher cipher = Cipher.getInstance(algorithm); 161 assertEquals("The algorithm name should be the same as used " 162 + "in cipher.", algorithm, so.getAlgorithm()); 167 * encryption algorithm and specified parameters can be retrieved by 187 + "should contain the encoded algorithm parameters.", Arrays 203 * with encryption algorithm and specified parameters can be retrieved b [all...] |