HomeSort by relevance Sort by last modified time
    Searched defs:sha (Results 1 - 22 of 22) sorted by null

  /libcore/luni/src/test/java/libcore/java/security/
MessageDigestTest.java 32 MessageDigest sha = MessageDigest.getInstance("SHA"); local
33 sha.update(new byte[] { 1, 2, 3 });
34 sha.reset();
35 sha.update(new byte[] { 4, 5, 6 });
36 assertEquals(Arrays.toString(sha_456), Arrays.toString(sha.digest()));
  /device/samsung/crespo/
releasetools.py 15 import sha namespace
60 len(source_radio_img), sha.sha(source_radio_img).hexdigest(),
61 len(target_radio_img), sha.sha(target_radio_img).hexdigest()))
  /device/htc/common/
releasetools.py 20 import sha namespace
49 radio_sha = sha.sha(radio_img).hexdigest()
  /development/scripts/
add-accounts 30 import sha namespace
add-accounts-sdk 30 import sha namespace
  /libcore/luni/src/main/java/org/apache/harmony/xnet/provider/jsse/
DigitalSignature.java 59 private final MessageDigest sha; field in class:DigitalSignature
72 sha = MessageDigest.getInstance("SHA-1");
136 if (sha != null) {
137 sha.update(data);
153 * Sets SHA hash
177 if (sha != null && sha_hash == null) {
179 sha.digest(sha_hash, 0, sha_hash.length);
PRF.java 39 protected static MessageDigest sha; field in class:PRF
57 sha = MessageDigest.getInstance("SHA-1");
72 if (sha == null) {
81 sha.update(pref);
82 sha.update(secret);
83 sha.update(seed);
85 md5.update(sha.digest());
HandshakeIODataStream.java 67 private static final MessageDigest sha; field in class:HandshakeIODataStream
72 sha = MessageDigest.getInstance("SHA-1");
413 * Returns the SHA-1 digest of the data passed throught the stream
414 * @return SHA-1 digest
417 synchronized (sha) {
421 sha.update(buffer, 0, len);
422 return sha.digest();
439 * Returns the SHA-1 digest of the data passed throught the stream
441 * @return SHA-1 diges
    [all...]
HandshakeProtocol.java 381 MessageDigest sha; local
384 sha = MessageDigest.getInstance("SHA-1");
401 sha.update(handshake_messages);
402 sha.update(sender);
403 sha.update(session.master_secret);
404 b = sha.digest(SSLv3Constants.SHApad1);
405 sha.update(session.master_secret);
406 sha.update(SSLv3Constants.SHApad2);
407 System.arraycopy(sha.digest(b), 0, buf, 16, 20)
    [all...]
  /external/chromium/base/
sha1.cc 11 // Implementation of SHA-1. Only handles data in byte-sized blocks,
14 // This file also contains an HMAC implementation using SHA-1
22 // SecureHashAlgorithm sha;
24 // sha.Update(moredata, size of data);
25 // sha.Final();
26 // memcpy(somewhere, sha.Digest(), 20);
28 // to reuse the instance of sha, call sha.Init();
194 SecureHashAlgorithm sha; local
195 sha.Update(str.c_str(), str.length())
    [all...]
  /system/core/mkbootimg/
mkbootimg.c 25 #include "mincrypt/sha.h"
111 uint8_t* sha; local
228 sha = SHA_final(&ctx);
229 memcpy(hdr.id, sha,
  /libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/
MessageDigest2Test.java 125 private void testSerializationSHA_DATA_2(MessageDigest sha) {
127 sha.reset();
183 byte[] hash = sha.digest(data);
193 private void testSerializationSHA_DATA_1(MessageDigest sha) {
195 sha.reset();
233 byte[] hash = sha.digest(data);
250 MessageDigest sha = null; local
252 sha = MessageDigest.getInstance("SHA");
253 assertNotNull(sha);
    [all...]
  /build/tools/releasetools/
check_target_files_signatures 50 import sha namespace
115 name = "unknown cert %s (%s)" % (sha.sha(cert).hexdigest()[:12],
ota_from_target_files 59 import sha namespace
321 header_sha1 = sha.sha(recovery_img.data[:HEADER_SIZE]).hexdigest()
504 patch_list.append((tf.name, tf, sf, tf.size, sha.sha(d).hexdigest()))
common.py 23 import sha namespace
662 self.sha1 = sha.sha(data).hexdigest()
  /external/openssl/crypto/jpake/
jpake.c 4 #include <openssl/sha.h>
132 static void hashlength(SHA_CTX *sha, size_t l)
139 SHA1_Update(sha, b, 2);
142 static void hashstring(SHA_CTX *sha, const char *string)
146 hashlength(sha, l);
147 SHA1_Update(sha, string, l);
150 static void hashbn(SHA_CTX *sha, const BIGNUM *bn)
155 hashlength(sha, l);
157 SHA1_Update(sha, bin, l);
166 SHA_CTX sha; local
417 SHA_CTX sha; local
    [all...]
  /packages/apps/Email/src/com/android/email/
Utility.java 595 final MessageDigest sha; local
597 sha = MessageDigest.getInstance("SHA-1");
601 sha.update(Utility.toUtf8(deviceId));
602 final int hash = getSmallHashFromSha1(sha.digest());
607 * @return a non-negative integer generated from 20 byte SHA-1 hash.
  /libcore/luni/src/main/java/java/io/
ObjectStreamClass.java 424 digest = MessageDigest.getInstance("SHA");
428 ByteArrayOutputStream sha = new ByteArrayOutputStream(); local
430 DataOutputStream output = new DataOutputStream(sha);
451 * computing SHA-1 to be compatible.
586 throw new RuntimeException(e + " computing SHA-1/SUID");
589 // now compute the UID based on the SHA
590 byte[] hash = digest.digest(sha.toByteArray());
    [all...]
  /external/chromium/net/third_party/nss/ssl/
ssl3prot.h 244 uint8 sha[20]; member in struct:__anon2591
ssl3con.c 3115 PK11Context *sha = NULL; local
3521 PK11Context * sha = NULL; local
    [all...]
sslimpl.h 756 PK11Context * sha; member in struct:SSL3HandshakeStateStr
    [all...]
  /external/openssl/apps/
speed.c 142 #include <openssl/sha.h>
365 unsigned char sha[SHA_DIGEST_LENGTH]; local
782 if (strcmp(*argv,"sha") == 0) doit[D_SHA1]=1,
    [all...]

Completed in 1530 milliseconds