/packages/apps/CertInstaller/src/com/android/certinstaller/ |
Util.java | 59 MessageDigest algorithm = MessageDigest.getInstance("MD5"); local 60 algorithm.reset(); 61 algorithm.update(bytes); 62 return toHexString(algorithm.digest(), "");
|
/external/apache-harmony/security/src/test/support/common/java/org/apache/harmony/security/tests/support/ |
PrivateKeyStub.java | 34 String algorithm = null; field in class:PrivateKeyStub 42 * @param algorithm 46 public PrivateKeyStub(String algorithm, String format, byte[] encoded) { 47 this.algorithm = algorithm; 53 * Returns algorithm 57 return algorithm;
|
PublicKeyStub.java | 37 String algorithm = null; field in class:PublicKeyStub 44 public PublicKeyStub(String algorithm, String format, byte[] encoded) { 45 this.algorithm = algorithm; 51 * returns algorithm 54 return algorithm;
|
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 | 94 private String algorithm; field in class:MyKeyPairGenerator1.PubKey 101 this.algorithm = "MyKeyPairGenerator1"; 107 return algorithm; 120 private String algorithm; field in class:MyKeyPairGenerator1.PrivKey 127 this.algorithm = "MyKeyPairGenerator1"; 133 return algorithm;
|
/external/chromium/crypto/ |
hmac_mac.cc | 45 CCHmacAlgorithm algorithm; local 49 algorithm = kCCHmacAlgSHA1; 53 algorithm = kCCHmacAlgSHA256; 66 CCHmac(algorithm,
|
symmetric_key_unittest.cc | 69 crypto::SymmetricKey::Algorithm algorithm; member in struct:PBKDF2TestVector 94 test_data.algorithm,
|
/libcore/luni/src/main/java/javax/crypto/spec/ |
SecretKeySpec.java | 43 private final String algorithm; field in class:SecretKeySpec 47 * algorithm name. 51 * @param algorithm 52 * the algorithm name. 54 * if the key data or the algorithm name is null or if the key 57 public SecretKeySpec(byte[] key, String algorithm) { 64 if (algorithm == null) { 65 throw new IllegalArgumentException("algorithm == null"); 68 this.algorithm = algorithm; [all...] |
/libcore/luni/src/main/java/org/apache/harmony/security/ |
PrivateKeyImpl.java | 33 private String algorithm; field in class:PrivateKeyImpl 37 public PrivateKeyImpl(String algorithm) { 38 this.algorithm = algorithm; 42 return algorithm; 57 public void setAlgorithm(String algorithm) { 58 this.algorithm = algorithm;
|
PublicKeyImpl.java | 37 private String algorithm; field in class:PublicKeyImpl 40 public PublicKeyImpl(String algorithm) { 41 this.algorithm = algorithm; 46 return algorithm; 62 public void setAlgorithm(String algorithm) { 63 this.algorithm = algorithm;
|
/libcore/luni/src/main/java/org/apache/harmony/security/x509/ |
X509PublicKey.java | 23 private final String algorithm; field in class:X509PublicKey 27 public X509PublicKey(String algorithm, byte[] encoded, byte[] keyBytes) { 28 this.algorithm = algorithm; 34 return algorithm; 47 StringBuilder buf = new StringBuilder("algorithm = "); 48 buf.append(algorithm);
|
AlgorithmIdentifier.java | 37 * with the Algorithm Identifier which is a part of X.509 certificate 45 * algorithm OBJECT IDENTIFIER, 46 * parameters ANY DEFINED BY algorithm OPTIONAL 51 /** the value of algorithm field */ 52 private String algorithm; field in class:AlgorithmIdentifier 53 /** the name of the algorithm */ 60 public AlgorithmIdentifier(String algorithm) { 61 this(algorithm, null, null); 64 public AlgorithmIdentifier(String algorithm, byte[] parameters) { 65 this(algorithm, parameters, null) [all...] |
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/ |
PrivateKeyStub.java | 35 String algorithm = null; field in class:PrivateKeyStub 43 * @param algorithm 47 public PrivateKeyStub(String algorithm, String format, byte[] encoded) { 48 this.algorithm = algorithm; 54 * Returns algorithm 58 return algorithm;
|
PublicKeyStub.java | 38 String algorithm = null; field in class:PublicKeyStub 45 public PublicKeyStub(String algorithm, String format, byte[] encoded) { 46 this.algorithm = algorithm; 52 * returns algorithm 55 return algorithm;
|
/libcore/luni/src/main/java/java/security/ |
KeyFactory.java | 43 // The algorithm. 44 private final String algorithm; field in class:KeyFactory 54 * @param algorithm 55 * the algorithm to use. 59 String algorithm) { 61 this.algorithm = algorithm; 67 * algorithm. 69 * @param algorithm 70 * the name of the algorithm [all...] |
KeyRep.java | 39 // Key algorithm name 40 private final String algorithm; field in class:KeyRep 53 * @param algorithm 54 * the algorithm (obtained by {@link Key#getAlgorithm()}). 61 * if {@code type, algorithm, format or encoded} is {@code null} 64 public KeyRep(Type type, String algorithm, String format, byte[] encoded) { 66 this.algorithm = algorithm; 72 if(this.algorithm == null) { 73 throw new NullPointerException("algorithm == null") [all...] |
AlgorithmParameterGenerator.java | 25 * generating parameters for the algorithm it was initialized with. 44 //Store used algorithm 45 private final String algorithm; field in class:AlgorithmParameterGenerator 55 * @param algorithm 56 * the name of the algorithm. 60 String algorithm) { 62 this.algorithm = algorithm; 67 * Returns the name of the algorithm. 69 * @return the name of the algorithm [all...] |
/libcore/luni/src/main/java/javax/crypto/ |
KeyAgreement.java | 50 // Store used algorithm name 51 private final String algorithm; field in class:KeyAgreement 60 * @param algorithm 61 * the name of the key agreement algorithm. 64 String algorithm) { 66 this.algorithm = algorithm; 71 * Returns the name of the key agreement algorithm. 73 * @return the name of the key agreement algorithm. 76 return algorithm; [all...] |
KeyGenerator.java | 48 // Store used algorithm name 49 private final String algorithm; field in class:KeyGenerator 58 * @param algorithm 59 * the name of the algorithm. 62 String algorithm) { 64 this.algorithm = algorithm; 69 * Returns the name of the key generation algorithm. 71 * @return the name of the key generation algorithm. 74 return algorithm; [all...] |
SecretKeyFactory.java | 53 // Store used algorithm name 54 private final String algorithm; field in class:SecretKeyFactory 63 * @param algorithm 64 * the algorithm name for the secret key. 67 Provider provider, String algorithm) { 69 this.algorithm = algorithm; 74 * Returns the name of the secret key algorithm. 76 * @return the name of the secret key algorithm. 79 return algorithm; [all...] |
/libcore/luni/src/main/java/javax/net/ssl/ |
TrustManagerFactory.java | 41 private static final String PROPERTYNAME = "ssl.TrustManagerFactory.algorithm"; 44 * Returns the default algorithm name for the {@code TrustManagerFactory}. The 45 * default algorithm name is specified by the security property 46 * {@code 'ssl.TrustManagerFactory.algorithm'}. 48 * @return the default algorithm name. 56 * trust management algorithm. 58 * @param algorithm 59 * the name of the requested trust management algorithm. 60 * @return a trust manager factory for the requested algorithm. 62 * if no installed provider can provide the requested algorithm 142 private final String algorithm; field in class:TrustManagerFactory [all...] |
/external/apache-harmony/crypto/src/test/api/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 162 String algorithm = "Algorithm"; local 175 String algorithm = "Algorithm"; local 189 String algorithm = "Algorithm"; local 215 String algorithm = "Algorithm"; local 230 String algorithm = "Algorithm"; local [all...] |
/external/apache-harmony/crypto/src/test/impl/java/org/apache/harmony/crypto/tests/javax/crypto/ |
Cipher_Impl1Test.java | 31 final static String algorithm = "DESede"; field in class:Cipher_Impl1Test 36 KeyGenerator kg = KeyGenerator.getInstance(algorithm); 61 AlgorithmParameters ap = AlgorithmParameters.getInstance(algorithm); 64 cipher = Cipher.getInstance(algorithm + "/CBC/PKCS5Padding"); 96 cipher = Cipher.getInstance(algorithm + "/CBC/PKCS5Padding");
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
KeyStorePrivateKeyEntryTest.java | 65 String algorithm = certificate.getPublicKey().getAlgorithm(); local 67 .getInstance(algorithm);
|
/external/bouncycastle/src/main/java/org/bouncycastle/jce/provider/asymmetric/ec/ |
KeyFactory.java | 25 String algorithm; field in class:KeyFactory 28 String algorithm) 30 this.algorithm = algorithm; 106 return new JCEECPrivateKey(algorithm, key); 115 return new JCEECPrivateKey(algorithm, (ECPrivateKeySpec)keySpec); 119 return new JCEECPrivateKey(algorithm, (java.security.spec.ECPrivateKeySpec)keySpec); 136 return new JCEECPublicKey(algorithm, key); 145 return new JCEECPublicKey(algorithm, (ECPublicKeySpec)keySpec); 149 return new JCEECPublicKey(algorithm, (java.security.spec.ECPublicKeySpec)keySpec) [all...] |