/libcore/luni/src/test/java/tests/security/ |
CertPathValidatorTest.java | 26 private final String algorithmName; 29 public CertPathValidatorTest(String algorithmName) { 30 this.algorithmName = algorithmName; 39 algorithmName);
|
CertificateFactoryTest.java | 26 private final String algorithmName; 30 public CertificateFactoryTest(String algorithmName, byte[] certificateData) { 31 this.algorithmName = algorithmName; 41 algorithmName);
|
CertPathBuilderTest.java | 25 private final String algorithmName; 28 public CertPathBuilderTest(String algorithmName) { 29 this.algorithmName = algorithmName; 44 algorithmName);
|
SecureRandomTest.java | 29 private final String algorithmName; 34 this.algorithmName = name; 44 secureRandom1 = SecureRandom.getInstance(algorithmName); 51 secureRandom2 = SecureRandom.getInstance(algorithmName); 77 final SecureRandom secureRandom = SecureRandom.getInstance(algorithmName);
|
/libcore/support/src/test/java/tests/security/ |
AlgorithmParameterGeneratorTest.java | 25 private final String algorithmName; 28 protected AlgorithmParameterGeneratorTest(String algorithmName, TestHelper<AlgorithmParameters> helper) { 29 this.algorithmName = algorithmName; 36 generator = AlgorithmParameterGenerator.getInstance(algorithmName);
|
CipherAsymmetricCryptHelper.java | 26 public CipherAsymmetricCryptHelper(String algorithmName) { 27 super(algorithmName, plainData, Cipher.ENCRYPT_MODE,
|
CipherSymmetricCryptHelper.java | 26 public CipherSymmetricCryptHelper(String algorithmName) { 27 super(algorithmName, plainData, Cipher.ENCRYPT_MODE,
|
AlgorithmParametersTest.java | 26 private final String algorithmName; 30 public AlgorithmParametersTest(String algorithmName, 32 this.algorithmName = algorithmName; 41 .getInstance(algorithmName);
|
KeyPairGeneratorTest.java | 26 private final String algorithmName; 31 protected KeyPairGeneratorTest(String algorithmName, TestHelper<KeyPair> helper) { 32 this.algorithmName = algorithmName; 43 return KeyPairGenerator.getInstance(algorithmName);
|
KeyFactoryTest.java | 31 private final String algorithmName; 36 public KeyFactoryTest(String algorithmName, 39 this.algorithmName = algorithmName; 50 return KeyFactory.getInstance(algorithmName); 54 PrivateKeySpec privateKeySpec = factory.getKeySpec(DefaultKeys.getPrivateKey(algorithmName), 57 PublicKeySpec publicKeySpec = factory.getKeySpec(DefaultKeys.getPublicKey(algorithmName),
|
AlgorithmParameterKeyAgreementHelper.java | 29 private final String algorithmName; 31 public AlgorithmParameterKeyAgreementHelper(String algorithmName) { 32 this.algorithmName = algorithmName; 40 generator = KeyPairGenerator.getInstance(algorithmName); 51 keyAgreement = KeyAgreement.getInstance(algorithmName);
|
KeyAgreementHelper.java | 29 private final String algorithmName; 31 public KeyAgreementHelper(String algorithmName) { 32 this.algorithmName = algorithmName; 43 keyAgreement = KeyAgreement.getInstance(algorithmName);
|
SignatureHelper.java | 30 private final String algorithmName; 33 public SignatureHelper(String algorithmName) { 34 this.algorithmName = algorithmName; 46 signature = Signature.getInstance(algorithmName);
|
AlgorithmParameterSymmetricHelper.java | 35 private final String algorithmName; 39 public AlgorithmParameterSymmetricHelper(String algorithmName, int keySize) { 40 this.algorithmName = algorithmName; 44 public AlgorithmParameterSymmetricHelper(String algorithmName, String blockmode, int keySize) { 45 this(algorithmName, keySize); 54 generator = KeyGenerator.getInstance(algorithmName); 66 String transformation = algorithmName;
|
CipherHelper.java | 30 private final String algorithmName; 35 public CipherHelper(String algorithmName, String plainData, int mode1, int mode2) { 36 this.algorithmName = algorithmName; 45 cipher = Cipher.getInstance(algorithmName);
|
AlgorithmParameterAsymmetricHelper.java | 35 private final String algorithmName; 37 public AlgorithmParameterAsymmetricHelper(String algorithmName) { 38 this.algorithmName = algorithmName; 46 generator = KeyPairGenerator.getInstance(algorithmName); 58 cipher = Cipher.getInstance(algorithmName);
|
AlgorithmParameterSignatureHelper.java | 34 private final String algorithmName; 38 public AlgorithmParameterSignatureHelper(String algorithmName, Class<T> parameterSpecCla1ss) { 39 this.algorithmName = algorithmName; 48 signature = Signature.getInstance(algorithmName); 63 generator = KeyPairGenerator.getInstance(algorithmName);
|
/external/guava/guava-tests/test/com/google/common/hash/ |
MessageDigestHashFunctionTest.java | 28 private static void assertMessageDigestHashing(byte[] input, String algorithmName) 31 MessageDigest.getInstance(algorithmName).digest(input), 32 new MessageDigestHashFunction(algorithmName).hashBytes(input).asBytes());
|
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
DigestInputStreamTest.java | 45 private static final String algorithmName[] = { 88 for (int i=0; i<algorithmName.length; i++) { 90 MessageDigest md = MessageDigest.getInstance(algorithmName[i]); 121 for (int ii=0; ii<algorithmName.length; ii++) { 123 MessageDigest md = MessageDigest.getInstance(algorithmName[ii]); 134 MDGoldenData.getDigest(algorithmName[ii]))); 154 for (int ii=0; ii<algorithmName.length; ii++) { 156 MessageDigest md = MessageDigest.getInstance(algorithmName[ii]); 169 MDGoldenData.getDigest(algorithmName[ii]))); 189 for (int ii=0; ii<algorithmName.length; ii++) [all...] |
DigestOutputStreamTest.java | 44 private static final String algorithmName[] = { 145 for (int k=0; k<algorithmName.length; k++) { 147 MessageDigest md = MessageDigest.getInstance(algorithmName[k]); 158 MDGoldenData.getDigest(algorithmName[k]))); 178 for (int k=0; k<algorithmName.length; k++) { 180 MessageDigest md = MessageDigest.getInstance(algorithmName[k]); 196 MDGoldenData.getDigest(algorithmName[k]+"_NU"))); 213 for (int k=0; k<algorithmName.length; k++) { 215 MessageDigest md = MessageDigest.getInstance(algorithmName[k]); 288 for (int k=0; k<algorithmName.length; k++) [all...] |
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
DigestInputStreamTest.java | 46 private static final String algorithmName[] = { 81 for (int i=0; i<algorithmName.length; i++) { 83 MessageDigest md = MessageDigest.getInstance(algorithmName[i]); 114 for (int ii=0; ii<algorithmName.length; ii++) { 116 MessageDigest md = MessageDigest.getInstance(algorithmName[ii]); 127 MDGoldenData.getDigest(algorithmName[ii]))); 147 for (int ii=0; ii<algorithmName.length; ii++) { 149 MessageDigest md = MessageDigest.getInstance(algorithmName[ii]); 162 MDGoldenData.getDigest(algorithmName[ii]))); 182 for (int ii=0; ii<algorithmName.length; ii++) [all...] |
DigestOutputStreamTest.java | 46 private static final String algorithmName[] = { 145 for (int k=0; k<algorithmName.length; k++) { 147 MessageDigest md = MessageDigest.getInstance(algorithmName[k]); 157 MDGoldenData.getDigest(algorithmName[k]))); 177 for (int k=0; k<algorithmName.length; k++) { 179 MessageDigest md = MessageDigest.getInstance(algorithmName[k]); 194 MDGoldenData.getDigest(algorithmName[k]+"_NU"))); 211 for (int k=0; k<algorithmName.length; k++) { 213 MessageDigest md = MessageDigest.getInstance(algorithmName[k]); 284 for (int k=0; k<algorithmName.length; k++) [all...] |
/libcore/luni/src/main/java/org/apache/harmony/security/x509/ |
AlgorithmIdentifier.java | 54 private String algorithmName; 75 * For testing when algorithmName is not known, but algorithm OID is. 77 public AlgorithmIdentifier(String algorithm, String algorithmName) { 79 this.algorithmName = algorithmName; 95 if (algorithmName == null) { 96 algorithmName = AlgNameMapper.map2AlgName(algorithm); 97 if (algorithmName == null) { 98 algorithmName = algorithm; 101 return algorithmName; [all...] |
/external/guava/guava/src/com/google/common/hash/ |
MessageDigestHashFunction.java | 38 private final String algorithmName; 41 MessageDigestHashFunction(String algorithmName) { 42 this.algorithmName = algorithmName; 43 this.bits = getMessageDigest(algorithmName).getDigestLength() * 8; 50 private static MessageDigest getMessageDigest(String algorithmName) { 52 return MessageDigest.getInstance(algorithmName); 59 return new MessageDigestHasher(getMessageDigest(algorithmName));
|
/libcore/luni/src/test/java/tests/targets/security/ |
KeyStoreTest.java | 40 private final String algorithmName; 44 public KeyStoreTest(String algorithmName, byte[] keyStoreData, 46 this.algorithmName = algorithmName; 54 keyStore = KeyStore.getInstance(algorithmName); 81 keyStore = KeyStore.getInstance(algorithmName);
|