/libcore/luni/src/test/java/tests/targets/security/ |
MessageDigestTestMD2.java | 18 import java.security.MessageDigest; 28 MessageDigest digest = MessageDigest.getInstance("MD2"); 29 fail("MD2 MessageDigest algorithm must not be supported"); 35 MessageDigest digest = MessageDigest.getInstance( 37 fail("MD2 MessageDigest algorithm must not be supported"); 49 MessageDigest digest = MessageDigest.getInstance("MD2"); 51 digest = MessageDigest.getInstance("1.2.840.113549.2.2") [all...] |
/external/glide/library/src/main/java/com/bumptech/glide/load/ |
Key.java | 4 import java.security.MessageDigest; 10 * {@link java.security.MessageDigest} in {@link #updateDiskCacheKey(java.security.MessageDigest)}}, although this 20 * Note - Using {@link java.security.MessageDigest#reset()} inside of this method will result in undefined 24 void updateDiskCacheKey(MessageDigest messageDigest) throws UnsupportedEncodingException;
|
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/cache/ |
SafeKeyGenerator.java | 8 import java.security.MessageDigest; 24 MessageDigest messageDigest = MessageDigest.getInstance("SHA-256"); 25 key.updateDiskCacheKey(messageDigest); 26 safeKey = Util.sha256BytesToHex(messageDigest.digest());
|
/external/glide/library/src/main/java/com/bumptech/glide/signature/ |
EmptySignature.java | 6 import java.security.MessageDigest; 23 public void updateDiskCacheKey(MessageDigest messageDigest) throws UnsupportedEncodingException {
|
StringSignature.java | 6 import java.security.MessageDigest; 41 public void updateDiskCacheKey(MessageDigest messageDigest) throws UnsupportedEncodingException { 42 messageDigest.update(signature.getBytes(STRING_CHARSET_NAME));
|
/external/apache-harmony/security/src/test/impl/java/org/apache/harmony/security/tests/java/security/ |
MessageDigest_Impl2Test.java | 24 import java.security.MessageDigest; 34 * Tests for <code>MessageDigest</code> constructor and methods 61 * Class under test for MessageDigest getInstance(String) 64 MessageDigest md1 = MessageDigest.getInstance("ABC"); 69 * Class under test for MessageDigest getInstance(String) 72 MessageDigest md2 = MessageDigest.getInstance("CBA"); 77 * Class under test for MessageDigest getInstance(String, String) 80 MessageDigest md1 = MessageDigest.getInstance("ABC", "MyProvider") [all...] |
/external/guava/guava-tests/benchmark/com/google/common/hash/ |
MessageDigestCreationBenchmark.java | 23 import java.security.MessageDigest; 26 * Benchmarks for comparing instance creation of {@link MessageDigest}s. 35 private MessageDigest md; 38 md = MessageDigest.getInstance(algorithm); 44 retValue ^= MessageDigest.getInstance(algorithm).getDigestLength(); 52 retValue ^= ((MessageDigest) md.clone()).getDigestLength();
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
MessageDigest2Test.java | 23 import java.security.MessageDigest; 37 private static final String MESSAGEDIGEST_ID = "MessageDigest."; 63 * java.security.MessageDigest#MessageDigest(java.lang.String) 77 * java.security.MessageDigest#clone() 82 MessageDigest d1 = MessageDigest.getInstance(algorithm, e.getKey().getName()); 87 MessageDigest d2 = (MessageDigest) d1.clone(); 92 MessageDigest.isEqual(d1.digest(), d2.digest())) [all...] |
DigestInputStream2Test.java | 23 import java.security.MessageDigest; 33 MessageDigest digest; 37 * java.security.MessageDigest) 41 // java.security.MessageDigest) 50 // Test for method java.security.MessageDigest 62 MessageDigest originalDigest = (MessageDigest) (digest.clone()); 63 MessageDigest noChangeDigest = (MessageDigest) (digest.clone()); 73 assertTrue("MessageDigest changed even though processing was off" [all...] |
MessageDigest1Test.java | 22 import java.security.MessageDigest; 32 * Tests for <code>MessageDigest</code> constructor and methods 37 * java.security.MessageDigest#reset() 46 * java.security.MessageDigest#update(byte) 55 * java.security.MessageDigest#update(byte[], int, int) 99 * java.security.MessageDigest#update(byte[]) 109 * java.security.MessageDigest#update(ByteBuffer) 124 * java.security.MessageDigest#digest() 133 * java.security.MessageDigest#digest(byte[]) 143 * java.security.MessageDigest#digest(byte[], int, int [all...] |
DigestInputStreamTest.java | 29 import java.security.MessageDigest; 83 MessageDigest md = MessageDigest.getInstance(algorithmName[i]); 92 fail(getName() + ": no MessageDigest algorithms available - test not performed"); 116 MessageDigest md = MessageDigest.getInstance(algorithmName[ii]); 133 fail(getName() + ": no MessageDigest algorithms available - test not performed"); 149 MessageDigest md = MessageDigest.getInstance(algorithmName[ii]); 168 fail(getName() + ": no MessageDigest algorithms available - test not performed") [all...] |
/external/apache-harmony/security/src/test/api/java/org/apache/harmony/security/tests/java/security/ |
MessageDigest1Test.java | 22 import java.security.MessageDigest; 29 * Tests for <code>MessageDigest</code> constructor and methods 34 * @tests java.security.MessageDigest#reset() 43 * @tests java.security.MessageDigest#update(byte) 52 * @tests java.security.MessageDigest#update(byte[], int, int) 96 * @tests java.security.MessageDigest#update(byte[]) 106 * @tests java.security.MessageDigest#update(ByteBuffer) 121 * @tests java.security.MessageDigest#digest() 130 * @tests java.security.MessageDigest#digest(byte[]) 140 * @tests java.security.MessageDigest#digest(byte[], int, int [all...] |
DigestInputStream2Test.java | 24 import java.security.MessageDigest; 33 MessageDigest digest; 37 *java.security.MessageDigest) 41 // java.security.MessageDigest) 50 // Test for method java.security.MessageDigest 62 MessageDigest originalDigest = (MessageDigest) (digest.clone()); 63 MessageDigest noChangeDigest = (MessageDigest) (digest.clone()); 73 assertTrue("MessageDigest changed even though processing was off" [all...] |
DigestInputStreamTest.java | 28 import java.security.MessageDigest; 90 MessageDigest md = MessageDigest.getInstance(algorithmName[i]); 99 fail(getName() + ": no MessageDigest algorithms available - test not performed"); 123 MessageDigest md = MessageDigest.getInstance(algorithmName[ii]); 140 fail(getName() + ": no MessageDigest algorithms available - test not performed"); 156 MessageDigest md = MessageDigest.getInstance(algorithmName[ii]); 175 fail(getName() + ": no MessageDigest algorithms available - test not performed") [all...] |
ProviderTest.java | 67 assertNull(p.getProperty("MessageDigest.SHA-1")); 98 hm.put("MessageDigest.SHA-1", "aaa.bbb.ccc.ddd"); 106 !"aaa.bbb.ccc.ddd".equals(p.getProperty("MessageDigest.SHA-1").trim())) { 115 p.put("MessageDigest.SHA-256", "aaa.bbb.ccc.ddd"); 130 if (key.equals("MessageDigest.SHA-1") && val.equals("SomeClassName")) { 133 if (key.equals("Alg.Alias.MessageDigest.SHA1") && val.equals("SHA-1")) { 136 if (key.equals("MessageDigest.abc") && val.equals("SomeClassName")) { 145 if (key.equals("MessageDigest.SHA-256") && val.equals("aaa.bbb.ccc.ddd")) { 162 p.put("MessageDigest.SHA-256", "aaa.bbb.ccc.ddd"); 175 assertTrue(s1.contains("MessageDigest.SHA-256")) [all...] |
MessageDigest2Test.java | 25 import java.security.MessageDigest; 36 private static final String MESSAGEDIGEST_ID = "MessageDigest."; 64 * @tests java.security.MessageDigest#clone() 69 MessageDigest d1 = MessageDigest.getInstance(digestAlgs[i], 75 MessageDigest d2 = (MessageDigest) d1.clone(); 80 + digestAlgs[i], MessageDigest.isEqual(d1.digest(), d2 95 private void testSerializationSHA_DATA_2(MessageDigest sha) { 163 private void testSerializationSHA_DATA_1(MessageDigest sha) [all...] |
DigestOutputStreamTest.java | 81 *java.security.MessageDigest) 86 MessageDigest md = new MyMessageDigest1(); 104 MessageDigest digest = new MyMessageDigest1(); 118 * @tests java.security.DigestOutputStream#setMessageDigest(MessageDigest) 122 MessageDigest digest = new MyMessageDigest1(); 148 MessageDigest md = MessageDigest.getInstance(algorithmName[k]); 165 fail(getName() + ": no MessageDigest algorithms available - test not performed"); 181 MessageDigest md = MessageDigest.getInstance(algorithmName[k]) [all...] |
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/ |
OriginalKey.java | 6 import java.security.MessageDigest; 50 public void updateDiskCacheKey(MessageDigest messageDigest) throws UnsupportedEncodingException { 51 messageDigest.update(id.getBytes(STRING_CHARSET_NAME)); 52 signature.updateDiskCacheKey(messageDigest);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/digest/ |
BCMessageDigest.java | 3 import java.security.MessageDigest; 8 extends MessageDigest
|
SHA512.java | 167 provider.addAlgorithm("MessageDigest.SHA-512", PREFIX + "$Digest"); 168 provider.addAlgorithm("Alg.Alias.MessageDigest.SHA512", "SHA-512"); 169 provider.addAlgorithm("Alg.Alias.MessageDigest." + NISTObjectIdentifiers.id_sha512, "SHA-512"); 172 // provider.addAlgorithm("MessageDigest.SHA-512/224", PREFIX + "$DigestT224"); 173 // provider.addAlgorithm("Alg.Alias.MessageDigest.SHA512/224", "SHA-512/224"); 174 // provider.addAlgorithm("Alg.Alias.MessageDigest." + NISTObjectIdentifiers.id_sha512_224, "SHA-512/224"); 176 // provider.addAlgorithm("MessageDigest.SHA-512/256", PREFIX + "$DigestT256"); 177 // provider.addAlgorithm("Alg.Alias.MessageDigest.SHA512256", "SHA-512/256"); 178 // provider.addAlgorithm("Alg.Alias.MessageDigest." + NISTObjectIdentifiers.id_sha512_256, "SHA-512/256");
|
/external/lzma/Java/Tukaani/src/org/tukaani/xz/check/ |
SHA256.java | 13 private final java.security.MessageDigest sha256; 18 sha256 = java.security.MessageDigest.getInstance("SHA-256");
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
MD5Calculator.java | 21 import java.security.MessageDigest; 27 // This code from the Android documentation for MessageDigest. Nearly verbatim. 28 MessageDigest digester; 30 digester = MessageDigest.getInstance("MD5");
|
/libcore/ojluni/src/main/java/java/security/ |
MessageDigest.java | 39 * This MessageDigest class provides applications the functionality of a 44 * <p>A MessageDigest object starts out initialized. The data is 52 * of updates. After <code>digest</code> has been called, the MessageDigest 60 * MessageDigest md = MessageDigest.getInstance("SHA"); 64 * MessageDigest tc1 = md.clone(); 80 * this <code>MessageDigest</code> class; all the methods in 84 * <p> Android provides the following <code>MessageDigest</code> algorithms: 121 * "{@docRoot}openjdk-redirect.html?v=8&path=/technotes/guides/security/StandardNames.html#MessageDigest"> 122 * MessageDigest section</a> of th [all...] |
/external/webrtc/webrtc/base/ |
messagedigest.cc | 11 #include "webrtc/base/messagedigest.h" 38 MessageDigest* MessageDigestFactory::Create(const std::string& alg) { 40 MessageDigest* digest = new OpenSSLDigest(alg); 47 MessageDigest* digest = NULL; 70 size_t ComputeDigest(MessageDigest* digest, const void* input, size_t in_len, 78 scoped_ptr<MessageDigest> digest(MessageDigestFactory::Create(alg)); 84 std::string ComputeDigest(MessageDigest* digest, const std::string& input) { 93 scoped_ptr<MessageDigest> digest(MessageDigestFactory::Create(alg)); 108 size_t ComputeHmac(MessageDigest* digest, 113 // TODO: Add BlockSize() method to MessageDigest [all...] |
/external/guava/guava/src/com/google/common/hash/ |
MessageDigestHashFunction.java | 22 import java.security.MessageDigest; 27 * {@link HashFunction} adapter for {@link MessageDigest} instances. 34 private final MessageDigest prototype; 73 private static MessageDigest getMessageDigest(String algorithmName) { 75 return MessageDigest.getInstance(algorithmName); 84 return new MessageDigestHasher((MessageDigest) prototype.clone(), bytes); 119 private final MessageDigest digest; 123 private MessageDigestHasher(MessageDigest digest, int bytes) {
|