/external/glide/library/src/main/java/com/bumptech/glide/load/engine/cache/ |
SafeKeyGenerator.java | 8 import java.security.MessageDigest; 21 MessageDigest messageDigest = MessageDigest.getInstance("SHA-256"); 22 key.updateDiskCacheKey(messageDigest); 23 safeKey = Util.sha256BytesToHex(messageDigest.digest());
|
StringKey.java | 6 import java.security.MessageDigest; 44 public void updateDiskCacheKey(MessageDigest messageDigest) throws UnsupportedEncodingException { 45 messageDigest.update(key.getBytes("UTF-8"));
|
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/ |
OriginalEngineKey.java | 6 import java.security.MessageDigest; 39 public void updateDiskCacheKey(MessageDigest messageDigest) throws UnsupportedEncodingException { 40 messageDigest.update(id.getBytes("UTF-8"));
|
EngineKey.java | 12 import java.security.MessageDigest; 120 public void updateDiskCacheKey(MessageDigest messageDigest) throws UnsupportedEncodingException { 125 messageDigest.update(id.getBytes(FORMAT)); 126 messageDigest.update(dimensions); 127 messageDigest.update(cacheDecoder.getId().getBytes(FORMAT)); 128 messageDigest.update(decoder.getId().getBytes(FORMAT)); 129 messageDigest.update(transformation.getId().getBytes(FORMAT)); 130 messageDigest.update(encoder.getId().getBytes(FORMAT)); 131 messageDigest.update(sourceEncoder.getId().getBytes(FORMAT)) [all...] |
/libcore/luni/src/test/java/tests/targets/security/ |
MessageDigestTestMD2.java | 19 import java.security.MessageDigest; 30 MessageDigest digest = MessageDigest.getInstance("MD2"); 31 fail("MD2 MessageDigest algorithm must not be supported"); 37 MessageDigest digest = MessageDigest.getInstance( 39 fail("MD2 MessageDigest algorithm must not be supported"); 52 MessageDigest digest = MessageDigest.getInstance("MD2"); 54 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; 17 public void updateDiskCacheKey(MessageDigest messageDigest) throws UnsupportedEncodingException;
|
/libcore/luni/src/main/java/java/security/ |
MessageDigest.java | 32 * MessageDigest digester = MessageDigest.getInstance("MD5"); 41 * <p>That is, after creating or resetting a {@code MessageDigest} you should 43 * to get the final digest. Note that calling {@code digest} resets the {@code MessageDigest}. 44 * Advanced users who want partial digests should clone their {@code MessageDigest} before 51 public abstract class MessageDigest extends MessageDigestSpi { 54 private static final Engine ENGINE = new Engine("MessageDigest"); 63 * Constructs a new instance of {@code MessageDigest} with the name of 69 protected MessageDigest(String algorithm) { 74 * Returns a new instance of {@code MessageDigest} that utilizes th [all...] |
/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...] |
/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/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/chromium_org/third_party/webrtc/base/ |
stringdigest.h | 14 // TODO: Update remaining callers to use messagedigest.h instead 15 #include "webrtc/base/messagedigest.h"
|
messagedigest.cc | 11 #include "webrtc/base/messagedigest.h" 37 MessageDigest* MessageDigestFactory::Create(const std::string& alg) { 39 MessageDigest* digest = new OpenSSLDigest(alg); 46 MessageDigest* digest = NULL; 69 size_t ComputeDigest(MessageDigest* digest, const void* input, size_t in_len, 77 scoped_ptr<MessageDigest> digest(MessageDigestFactory::Create(alg)); 83 std::string ComputeDigest(MessageDigest* digest, const std::string& input) { 92 scoped_ptr<MessageDigest> digest(MessageDigestFactory::Create(alg)); 107 size_t ComputeHmac(MessageDigest* digest, 112 // TODO: Add BlockSize() method to MessageDigest [all...] |
/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");
|
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/ |
DefaultSignedAttributeTableGenerator.java | 52 * normally include contentType, signingTime, and messageDigest. If the constructor 54 * messageDigest will override the generated ones. 87 if (!std.containsKey(CMSAttributes.messageDigest)) 89 byte[] messageDigest = (byte[])parameters.get( 91 Attribute attr = new Attribute(CMSAttributes.messageDigest, 92 new DERSet(new DEROctetString(messageDigest)));
|
/external/guava/guava-tests/test/com/google/common/hash/ |
MessageDigestHashFunctionTest.java | 5 import java.security.MessageDigest; 31 MessageDigest.getInstance(algorithmName).digest(input),
|