/libcore/benchmarks/src/benchmarks/regression/ |
DigestBenchmark.java | 21 import com.android.org.bouncycastle.crypto.Digest; 41 private Class<? extends Digest> digestClass; 50 className += (algorithm + "Digest"); 55 this.digestClass = (Class<? extends Digest>)Class.forName(className); 60 Digest digest = digestClass.newInstance(); local 61 digest.update(DATA, 0, DATA_SIZE); 62 digest.doFinal(new byte[digest.getDigestSize()], 0);
|
/external/skia/tests/ |
MD5Test.cpp | 10 static bool digests_equal(const SkMD5::Digest& expectedDigest, const SkMD5::Digest& computedDigest) { 19 static void md5_test(const char* string, const SkMD5::Digest& expectedDigest, skiatest::Reporter* reporter) { 26 SkMD5::Digest digest; local 27 context.finish(digest); 29 REPORTER_ASSERT(reporter, digests_equal(expectedDigest, digest)); 40 SkMD5::Digest digest; local 41 context.finish(digest); 49 SkMD5::Digest digest; member in struct:MD5Test [all...] |
SHA1Test.cpp | 10 static bool digests_equal(const SkSHA1::Digest& expectedDigest, const SkSHA1::Digest& computedDigest) { 22 const SkSHA1::Digest digest; member in struct:SHA1Test 42 SkSHA1::Digest digest; local 43 context.finish(digest); 45 REPORTER_ASSERT(reporter, digests_equal(test.digest, digest));
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/generators/ |
PKCS5S1ParametersGenerator.java | 4 import org.bouncycastle.crypto.Digest; 12 * digest used to drive it. 21 private Digest digest; field in class:PKCS5S1ParametersGenerator 26 * @param digest the digest to be used as the source of derived keys. 29 Digest digest) 31 this.digest = digest; [all...] |
OpenSSLPBEParametersGenerator.java | 4 import org.bouncycastle.crypto.Digest; 23 private Digest digest = AndroidDigestFactory.getMD5(); field in class:OpenSSLPBEParametersGenerator 52 byte[] buf = new byte[digest.getDigestSize()]; 58 digest.update(password, 0, password.length); 59 digest.update(salt, 0, salt.length); 61 digest.doFinal(buf, 0); 75 digest.reset(); 76 digest.update(buf, 0, buf.length);
|
PKCS12ParametersGenerator.java | 4 import org.bouncycastle.crypto.Digest; 24 private Digest digest; field in class:PKCS12ParametersGenerator 31 * accept any digest which also implements ExtendedDigest. 33 * @param digest the digest to be used as the source of derived keys. 34 * @exception IllegalArgumentException if an unknown digest is passed in. 37 Digest digest) 39 this.digest = digest [all...] |
/external/ganymed-ssh2/src/main/java/ch/ethz/ssh2/crypto/digest/ |
HMAC.java | 5 package ch.ethz.ssh2.crypto.digest; 13 public final class HMAC implements Digest 15 Digest md; 23 public HMAC(Digest md, byte[] key, int size) 39 md.digest(tmp); 80 public void digest(byte[] out) method in class:HMAC 82 digest(out, 0); method 85 public void digest(byte[] out, int off) method in class:HMAC 87 md.digest(tmp); 92 md.digest(tmp) [all...] |
HashForSSH2Types.java | 5 package ch.ethz.ssh2.crypto.digest; 17 Digest md; 19 public HashForSSH2Types(Digest md) 94 md.digest(out, off);
|
/external/smack/src/org/xbill/DNS/ |
DSRecord.java | 19 public static class Digest { 20 private Digest() {} 32 public static final int SHA1_DIGEST_ID = Digest.SHA1; 33 public static final int SHA256_DIGEST_ID = Digest.SHA256; 34 public static final int SHA384_DIGEST_ID = Digest.SHA384; 41 private byte [] digest; field in class:DSRecord 54 * @param digestid The digest id code. 55 * @param digest A hash of the original key. 59 int digestid, byte [] digest) 65 this.digest = digest [all...] |
SSHFPRecord.java | 25 public static class Digest { 26 private Digest() {} 45 * @param digestType The public key's digest type. 89 /** Returns the public key's digest type. */
|
NSEC3Record.java | 37 public static class Digest { 38 private Digest() {} 44 public static final int SHA1_DIGEST_ID = Digest.SHA1; 230 MessageDigest digest; local 232 case Digest.SHA1: 233 digest = MessageDigest.getInstance("sha-1"); 242 digest.reset(); 244 digest.update(name.toWireCanonical()); 246 digest.update(hash); 248 digest.update(salt) [all...] |
DLVRecord.java | 20 public static final int SHA1_DIGEST_ID = DSRecord.Digest.SHA1; 21 public static final int SHA256_DIGEST_ID = DSRecord.Digest.SHA1; 28 private byte [] digest; field in class:DLVRecord 41 * @param digestid The digest id code. 42 * @param digest A hash of the original key. 46 int digestid, byte [] digest) 52 this.digest = digest; 60 digest = in.readByteArray(); 68 digest = st.getHex() [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/macs/ |
HMac.java | 6 import org.bouncycastle.crypto.Digest; 24 private Digest digest; field in class:HMac 67 Digest digest) 69 if (digest instanceof ExtendedDigest) 71 return ((ExtendedDigest)digest).getByteLength(); 74 Integer b = (Integer)blockLengths.get(digest.getAlgorithmName()); 78 throw new IllegalArgumentException("unknown digest passed: " + digest.getAlgorithmName()) [all...] |
/external/libppp/src/ |
chap_ms.c | 158 char Digest[SHA_DIGEST_LENGTH]; 173 SHA1_Final(Digest, &Context); 174 memcpy(Challenge, Digest, 8); 196 unsigned char digest[LENGTH]; local 203 SHA1_Final(digest, ctx); 205 buf[i+i] = hex[digest[i] >> 4]; 206 buf[i+i+1] = hex[digest[i] & 0x0f]; 223 u_char Digest[SHA_DIGEST_LENGTH]; 255 SHA1_Final(Digest, &Context); 258 SHA1_Update(&Context, Digest, 20) [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/util/ |
DSABase.java | 11 import org.bouncycastle.crypto.Digest; 17 protected Digest digest; field in class:DSABase 22 Digest digest, 26 this.digest = digest; 35 digest.update(b); 44 digest.update(b, off, len); 50 byte[] hash = new byte[digest.getDigestSize()] [all...] |
/external/llvm/utils/ |
UpdateCMakeLists.pl | 5 use Digest::MD5; 88 die("Cannot open $cmakeList when computing digest\n"); 90 my $digestA = Digest::MD5->new->addfile(*FILE)->hexdigest; 94 die("Cannot open $cmakeListNew when computing digest\n"); 96 my $digestB = Digest::MD5->new->addfile(*FILE)->hexdigest;
|
/external/chromium_org/third_party/WebKit/Source/core/inspector/ |
DOMPatchSupport.cpp | 62 struct DOMPatchSupport::Digest { 63 explicit Digest(Node* node) : m_node(node) { } 68 Vector<OwnPtr<Digest> > m_children; 108 OwnPtr<Digest> oldInfo = createDigest(m_document->documentElement(), 0); 109 OwnPtr<Digest> newInfo = createDigest(newDocument->documentElement(), &m_unusedNodesMap); 136 Vector<OwnPtr<Digest> > oldList; 143 Vector<OwnPtr<Digest> > newList; 164 bool DOMPatchSupport::innerPatchNode(Digest* oldDigest, Digest* newDigest, ExceptionState& es) 213 DOMPatchSupport::diff(const Vector<OwnPtr<Digest> >& oldList, const Vector<OwnPtr<Digest> >& newList 412 Digest* digest = new Digest(node); local [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/digest/ |
SHA1.java | 1 package org.bouncycastle.jcajce.provider.digest; 31 static public class Digest 35 public Digest() 43 Digest d = (Digest)super.clone(); 44 d.digest = new SHA1Digest((SHA1Digest)digest); 138 int digest = SHA1; local 141 CipherParameters param = PBE.Util.makePBEMacParameters(pbeSpec, scheme, digest, keySize); 143 return new BCPBEKey(this.algName, this.algOid, scheme, digest, keySize, ivSize, pbeSpec, param) [all...] |
/external/robolectric/ |
update-downloads.rb | 12 require 'digest/sha1' 16 sha1 = Digest::SHA1.hexdigest File.read(f)
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/asn1/x509/ |
SubjectKeyIdentifier.java | 8 import org.bouncycastle.crypto.Digest; 130 Digest digest = AndroidDigestFactory.getSHA1(); local 132 byte[] resBuf = new byte[digest.getDigestSize()]; 135 digest.update(bytes, 0, bytes.length); 136 digest.doFinal(resBuf, 0);
|
AuthorityKeyIdentifier.java | 16 import org.bouncycastle.crypto.Digest; 112 Digest digest = AndroidDigestFactory.getSHA1(); local 114 byte[] resBuf = new byte[digest.getDigestSize()]; 117 digest.update(bytes, 0, bytes.length); 118 digest.doFinal(resBuf, 0); 132 Digest digest = AndroidDigestFactory.getSHA1(); local 134 byte[] resBuf = new byte[digest.getDigestSize()]; 137 digest.update(bytes, 0, bytes.length) [all...] |
/external/skia/bench/ |
ChecksumBench.cpp | 64 SkMD5::Digest digest; local 65 md5.finish(digest); 72 SkSHA1::Digest digest; local 73 sha1.finish(digest);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/encodings/ |
OAEPEncoding.java | 7 import org.bouncycastle.crypto.Digest; 21 private Digest mgf1Hash; 37 Digest hash) 44 Digest hash, 52 Digest hash, 53 Digest mgf1Hash,
|
/external/chromium_org/third_party/WebKit/Source/modules/crypto/ |
NormalizeAlgorithm.cpp | 99 {WebKit::WebCryptoAlgorithmIdSha1, Digest, WebKit::WebCryptoAlgorithmParamsTypeNone}, 100 {WebKit::WebCryptoAlgorithmIdSha224, Digest, WebKit::WebCryptoAlgorithmParamsTypeNone}, 101 {WebKit::WebCryptoAlgorithmIdSha256, Digest, WebKit::WebCryptoAlgorithmParamsTypeNone}, 102 {WebKit::WebCryptoAlgorithmIdSha384, Digest, WebKit::WebCryptoAlgorithmParamsTypeNone}, 103 {WebKit::WebCryptoAlgorithmIdSha512, Digest, WebKit::WebCryptoAlgorithmParamsTypeNone}, 192 return normalizeAlgorithm(rawHash, Digest, hash, es);
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/signers/ |
RSADigestSigner.java | 19 import org.bouncycastle.crypto.Digest; 32 private final Digest digest; field in class:RSADigestSigner 64 Digest digest) 66 this.digest = digest; 68 algId = new AlgorithmIdentifier((ASN1ObjectIdentifier)oidMap.get(digest.getAlgorithmName()), DERNull.INSTANCE); 76 return digest.getAlgorithmName() + "withRSA"; 119 * update the internal digest with the byte [all...] |