/external/epid-sdk/epid/member/tiny/math/unittests/ |
D | sha256-test.cc | 68 uint8_t digest[32]; in TEST() local 71 tc_sha256_final(digest, &s); in TEST() 72 EXPECT_TRUE(0 == memcmp(expected, digest, sizeof(digest))) in TEST() 73 << digest << std::endl in TEST() 85 uint8_t digest[32]; in TEST() local 90 tc_sha256_final(digest, &s); in TEST() 91 EXPECT_TRUE(0 == memcmp(expected, digest, sizeof(digest))) in TEST() 92 << digest << std::endl in TEST() 105 uint8_t digest[32]; in TEST() local 110 tc_sha256_final(digest, &s); in TEST() [all …]
|
D | sha512-test.cc | 35 uint8_t digest[SHA512_DIGEST_SIZE]; in TEST() local 40 tinysha512_final(digest, &s); in TEST() 41 EXPECT_TRUE(0 == memcmp(expected, digest, sizeof(digest))) in TEST() 42 << digest << std::endl in TEST() 55 uint8_t digest[SHA512_DIGEST_SIZE]; in TEST() local 60 tinysha512_final(digest, &s); in TEST() 61 EXPECT_TRUE(0 == memcmp(expected, digest, sizeof(digest))) in TEST() 62 << digest << std::endl in TEST() 75 uint8_t digest[SHA512_DIGEST_SIZE]; in TEST() local 80 tinysha512_final(digest, &s); in TEST() [all …]
|
/external/python/cpython3/Modules/ |
D | sha512module.c | 50 SHA_INT64 digest[8]; /* Message digest */ member 91 memcpy(dest->digest, src->digest, sizeof(src->digest)); in SHAcopy() 149 S[i] = sha_info->digest[i]; in sha512_transform() 244 sha_info->digest[i] = sha_info->digest[i] + S[i]; in sha512_transform() 256 sha_info->digest[0] = Py_ULL(0x6a09e667f3bcc908); in sha512_init() 257 sha_info->digest[1] = Py_ULL(0xbb67ae8584caa73b); in sha512_init() 258 sha_info->digest[2] = Py_ULL(0x3c6ef372fe94f82b); in sha512_init() 259 sha_info->digest[3] = Py_ULL(0xa54ff53a5f1d36f1); in sha512_init() 260 sha_info->digest[4] = Py_ULL(0x510e527fade682d1); in sha512_init() 261 sha_info->digest[5] = Py_ULL(0x9b05688c2b3e6c1f); in sha512_init() [all …]
|
D | sha256module.c | 49 SHA_INT32 digest[8]; /* Message digest */ member 82 memcpy(dest->digest, src->digest, sizeof(src->digest)); in SHAcopy() 140 S[i] = sha_info->digest[i]; in sha_transform() 219 sha_info->digest[i] = sha_info->digest[i] + S[i]; in sha_transform() 231 sha_info->digest[0] = 0x6A09E667L; in sha_init() 232 sha_info->digest[1] = 0xBB67AE85L; in sha_init() 233 sha_info->digest[2] = 0x3C6EF372L; in sha_init() 234 sha_info->digest[3] = 0xA54FF53AL; in sha_init() 235 sha_info->digest[4] = 0x510E527FL; in sha_init() 236 sha_info->digest[5] = 0x9B05688CL; in sha_init() [all …]
|
/external/python/cpython2/Modules/ |
D | sha512module.c | 51 SHA_INT64 digest[8]; /* Message digest */ member 93 memcpy(dest->digest, src->digest, sizeof(src->digest)); in SHAcopy() 149 S[i] = sha_info->digest[i]; in sha512_transform() 244 sha_info->digest[i] = sha_info->digest[i] + S[i]; in sha512_transform() 257 sha_info->digest[0] = Py_ULL(0x6a09e667f3bcc908); in sha512_init() 258 sha_info->digest[1] = Py_ULL(0xbb67ae8584caa73b); in sha512_init() 259 sha_info->digest[2] = Py_ULL(0x3c6ef372fe94f82b); in sha512_init() 260 sha_info->digest[3] = Py_ULL(0xa54ff53a5f1d36f1); in sha512_init() 261 sha_info->digest[4] = Py_ULL(0x510e527fade682d1); in sha512_init() 262 sha_info->digest[5] = Py_ULL(0x9b05688c2b3e6c1f); in sha512_init() [all …]
|
D | shamodule.c | 48 SHA_INT32 digest[5]; /* Message digest */ member 80 memcpy(dest->digest, src->digest, sizeof(src->digest)); in SHAcopy() 175 A = sha_info->digest[0]; in sha_transform() 176 B = sha_info->digest[1]; in sha_transform() 177 C = sha_info->digest[2]; in sha_transform() 178 D = sha_info->digest[3]; in sha_transform() 179 E = sha_info->digest[4]; in sha_transform() 190 sha_info->digest[0] += E; in sha_transform() 191 sha_info->digest[1] += T; in sha_transform() 192 sha_info->digest[2] += A; in sha_transform() [all …]
|
D | sha256module.c | 49 SHA_INT32 digest[8]; /* Message digest */ member 83 memcpy(dest->digest, src->digest, sizeof(src->digest)); in SHAcopy() 139 S[i] = sha_info->digest[i]; in sha_transform() 218 sha_info->digest[i] = sha_info->digest[i] + S[i]; in sha_transform() 231 sha_info->digest[0] = 0x6A09E667L; in sha_init() 232 sha_info->digest[1] = 0xBB67AE85L; in sha_init() 233 sha_info->digest[2] = 0x3C6EF372L; in sha_init() 234 sha_info->digest[3] = 0xA54FF53AL; in sha_init() 235 sha_info->digest[4] = 0x510E527FL; in sha_init() 236 sha_info->digest[5] = 0x9B05688CL; in sha_init() [all …]
|
/external/webrtc/webrtc/base/ |
D | messagedigest.cc | 40 MessageDigest* digest = new OpenSSLDigest(alg); in Create() local 41 if (digest->Size() == 0) { // invalid algorithm in Create() 42 delete digest; in Create() 43 digest = NULL; in Create() 45 return digest; in Create() 47 MessageDigest* digest = NULL; in Create() 49 digest = new Md5Digest(); in Create() 51 digest = new Sha1Digest(); in Create() 53 return digest; in Create() 70 size_t ComputeDigest(MessageDigest* digest, const void* input, size_t in_len, in ComputeDigest() argument [all …]
|
/external/curl/lib/vauth/ |
D | digest.c | 364 unsigned char digest[MD5_DIGEST_LEN]; in Curl_auth_create_digest_md5_message() local 418 Curl_MD5_final(ctxt, digest); in Curl_auth_create_digest_md5_message() 424 Curl_MD5_update(ctxt, (const unsigned char *) digest, MD5_DIGEST_LEN); in Curl_auth_create_digest_md5_message() 431 Curl_MD5_final(ctxt, digest); in Curl_auth_create_digest_md5_message() 435 msnprintf(&HA1_hex[2 * i], 3, "%02x", digest[i]); in Curl_auth_create_digest_md5_message() 455 Curl_MD5_final(ctxt, digest); in Curl_auth_create_digest_md5_message() 458 msnprintf(&HA2_hex[2 * i], 3, "%02x", digest[i]); in Curl_auth_create_digest_md5_message() 485 Curl_MD5_final(ctxt, digest); in Curl_auth_create_digest_md5_message() 488 msnprintf(&resp_hash_hex[2 * i], 3, "%02x", digest[i]); in Curl_auth_create_digest_md5_message() 522 struct digestdata *digest) in Curl_auth_decode_digest_http_message() argument [all …]
|
D | cram.c | 100 unsigned char digest[MD5_DIGEST_LEN]; in Curl_auth_create_cram_md5_message() local 119 Curl_HMAC_final(ctxt, digest); in Curl_auth_create_cram_md5_message() 124 userp, digest[0], digest[1], digest[2], digest[3], digest[4], in Curl_auth_create_cram_md5_message() 125 digest[5], digest[6], digest[7], digest[8], digest[9], digest[10], in Curl_auth_create_cram_md5_message() 126 digest[11], digest[12], digest[13], digest[14], digest[15]); in Curl_auth_create_cram_md5_message()
|
D | digest_sspi.c | 334 struct digestdata *digest) in Curl_auth_decode_digest_http_message() argument 340 if(digest->input_token) { in Curl_auth_decode_digest_http_message() 369 Curl_auth_digest_cleanup(digest); in Curl_auth_decode_digest_http_message() 375 digest->input_token = (BYTE *) Curl_memdup(chlg, chlglen + 1); in Curl_auth_decode_digest_http_message() 376 if(!digest->input_token) in Curl_auth_decode_digest_http_message() 379 digest->input_token_len = chlglen; in Curl_auth_decode_digest_http_message() 409 struct digestdata *digest, in Curl_auth_create_digest_http_message() argument 443 if((userp && !digest->user) || (!userp && digest->user) || in Curl_auth_create_digest_http_message() 444 (passwdp && !digest->passwd) || (!passwdp && digest->passwd) || in Curl_auth_create_digest_http_message() 445 (userp && digest->user && strcmp(userp, digest->user)) || in Curl_auth_create_digest_http_message() [all …]
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/crypto/macs/ |
D | HMac.java | 26 private Digest digest; field in HMac 67 Digest digest) in getByteLength() argument 69 if (digest instanceof ExtendedDigest) in getByteLength() 71 return ((ExtendedDigest)digest).getByteLength(); in getByteLength() 74 Integer b = (Integer)blockLengths.get(digest.getAlgorithmName()); in getByteLength() 78 … throw new IllegalArgumentException("unknown digest passed: " + digest.getAlgorithmName()); in getByteLength() 91 Digest digest) in HMac() argument 93 this(digest, getByteLength(digest)); in HMac() 97 Digest digest, in HMac() argument 100 this.digest = digest; in HMac() [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/macs/ |
D | HMac.java | 24 private Digest digest; field in HMac 65 Digest digest) in getByteLength() argument 67 if (digest instanceof ExtendedDigest) in getByteLength() 69 return ((ExtendedDigest)digest).getByteLength(); in getByteLength() 72 Integer b = (Integer)blockLengths.get(digest.getAlgorithmName()); in getByteLength() 76 … throw new IllegalArgumentException("unknown digest passed: " + digest.getAlgorithmName()); in getByteLength() 89 Digest digest) in HMac() argument 91 this(digest, getByteLength(digest)); in HMac() 95 Digest digest, in HMac() argument 98 this.digest = digest; in HMac() [all …]
|
/external/vboot_reference/tests/ |
D | vb2_sha_tests.c | 19 uint8_t *digest, in vb2_digest() argument 33 return vb2_digest_finalize(&dc, digest, digest_size); in vb2_digest() 38 uint8_t digest[VB2_SHA1_DIGEST_SIZE]; in sha1_tests() local 49 VB2_HASH_SHA1, digest, sizeof(digest)), in sha1_tests() 51 TEST_EQ(memcmp(digest, sha1_results[i], sizeof(digest)), in sha1_tests() 56 VB2_HASH_SHA1, digest, sizeof(digest) - 1), in sha1_tests() 62 uint8_t digest[VB2_SHA256_DIGEST_SIZE]; in sha256_tests() local 73 VB2_HASH_SHA256, digest, sizeof(digest)), in sha256_tests() 75 TEST_EQ(memcmp(digest, sha256_results[i], sizeof(digest)), in sha256_tests() 80 VB2_HASH_SHA256, digest, sizeof(digest) - 1), in sha256_tests() [all …]
|
/external/epid-sdk/ext/ipp/sources/ippcp/ |
D | pcpsha256gettag.c | 90 DigestSHA256 digest; variable 91 CopyBlock(HASH_VALUE(pState), digest, sizeof(DigestSHA256)); 92 cpFinalizeSHA256(digest, HASH_BUFF(pState), HAHS_BUFFIDX(pState), HASH_LENLO(pState)); 93 digest[0] = ENDIANNESS32(digest[0]); 94 digest[1] = ENDIANNESS32(digest[1]); 95 digest[2] = ENDIANNESS32(digest[2]); 96 digest[3] = ENDIANNESS32(digest[3]); 97 digest[4] = ENDIANNESS32(digest[4]); 98 digest[5] = ENDIANNESS32(digest[5]); 99 digest[6] = ENDIANNESS32(digest[6]); [all …]
|
D | pcpsha512gettag.c | 90 DigestSHA512 digest; variable 91 CopyBlock(HASH_VALUE(pState), digest, sizeof(DigestSHA512)); 92 cpFinalizeSHA512(digest, 95 digest[0] = ENDIANNESS64(digest[0]); 96 digest[1] = ENDIANNESS64(digest[1]); 97 digest[2] = ENDIANNESS64(digest[2]); 98 digest[3] = ENDIANNESS64(digest[3]); 99 digest[4] = ENDIANNESS64(digest[4]); 100 digest[5] = ENDIANNESS64(digest[5]); 101 digest[6] = ENDIANNESS64(digest[6]); [all …]
|
D | pcpsha224gettag.c | 91 DigestSHA256 digest; variable 92 CopyBlock(HASH_VALUE(pState), digest, sizeof(DigestSHA256)); 93 cpFinalizeSHA256(digest, HASH_BUFF(pState), HAHS_BUFFIDX(pState), HASH_LENLO(pState)); 94 digest[0] = ENDIANNESS32(digest[0]); 95 digest[1] = ENDIANNESS32(digest[1]); 96 digest[2] = ENDIANNESS32(digest[2]); 97 digest[3] = ENDIANNESS32(digest[3]); 98 digest[4] = ENDIANNESS32(digest[4]); 99 digest[5] = ENDIANNESS32(digest[5]); 100 digest[6] = ENDIANNESS32(digest[6]); [all …]
|
D | pcpsha384gettag.c | 91 DigestSHA512 digest; variable 92 CopyBlock(HASH_VALUE(pState), digest, sizeof(DigestSHA512)); 93 cpFinalizeSHA512(digest, 96 digest[0] = ENDIANNESS64(digest[0]); 97 digest[1] = ENDIANNESS64(digest[1]); 98 digest[2] = ENDIANNESS64(digest[2]); 99 digest[3] = ENDIANNESS64(digest[3]); 100 digest[4] = ENDIANNESS64(digest[4]); 101 digest[5] = ENDIANNESS64(digest[5]); 102 CopyBlock(digest, pTag, tagLen);
|
D | pcphashsha256px.c | 127 Ipp32u* digest = (Ipp32u*)uniHash; in UpdateSHA256() local 153 Ipp32u A = digest[0]; in UpdateSHA256() 154 Ipp32u B = digest[1]; in UpdateSHA256() 155 Ipp32u C = digest[2]; in UpdateSHA256() 156 Ipp32u D = digest[3]; in UpdateSHA256() 157 Ipp32u E = digest[4]; in UpdateSHA256() 158 Ipp32u F = digest[5]; in UpdateSHA256() 159 Ipp32u G = digest[6]; in UpdateSHA256() 160 Ipp32u H = digest[7]; in UpdateSHA256() 166 digest[0] += A; in UpdateSHA256() [all …]
|
/external/selinux/libselinux/src/ |
D | label_support.c | 116 void hidden digest_gen_hash(struct selabel_digest *digest) in digest_gen_hash() argument 121 if (!digest) in digest_gen_hash() 125 Sha1Update(&context, digest->hashbuf, digest->hashbuf_size); in digest_gen_hash() 126 Sha1Finalise(&context, (SHA1_HASH *)digest->digest); in digest_gen_hash() 127 free(digest->hashbuf); in digest_gen_hash() 128 digest->hashbuf = NULL; in digest_gen_hash() 144 int hidden digest_add_specfile(struct selabel_digest *digest, FILE *fp, in digest_add_specfile() argument 151 if (!digest) in digest_add_specfile() 154 if (digest->hashbuf_size + buf_len < digest->hashbuf_size) { in digest_add_specfile() 158 digest->hashbuf_size += buf_len; in digest_add_specfile() [all …]
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/ |
D | RSA.java | 246 String digest, in addDigestSignature() argument 250 String mainName = digest + "WITHRSA"; in addDigestSignature() 251 String jdk11Variation1 = digest + "withRSA"; in addDigestSignature() 252 String jdk11Variation2 = digest + "WithRSA"; in addDigestSignature() 253 String alias = digest + "/" + "RSA"; in addDigestSignature() 254 String longName = digest + "WITHRSAENCRYPTION"; in addDigestSignature() 255 String longJdk11Variation1 = digest + "withRSAEncryption"; in addDigestSignature() 256 String longJdk11Variation2 = digest + "WithRSAEncryption"; in addDigestSignature() 275 String digest, in addISO9796Signature() argument 278 …provider.addAlgorithm("Alg.Alias.Signature." + digest + "withRSA/ISO9796-2", digest + "WITHRSA/ISO… in addISO9796Signature() [all …]
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/provider/asymmetric/ |
D | RSA.java | 253 String digest, in addDigestSignature() argument 257 String mainName = digest + "WITHRSA"; in addDigestSignature() 258 String jdk11Variation1 = digest + "withRSA"; in addDigestSignature() 259 String jdk11Variation2 = digest + "WithRSA"; in addDigestSignature() 260 String alias = digest + "/" + "RSA"; in addDigestSignature() 261 String longName = digest + "WITHRSAENCRYPTION"; in addDigestSignature() 262 String longJdk11Variation1 = digest + "withRSAEncryption"; in addDigestSignature() 263 String longJdk11Variation2 = digest + "WithRSAEncryption"; in addDigestSignature() 282 String digest, in addISO9796Signature() argument 285 …provider.addAlgorithm("Alg.Alias.Signature." + digest + "withRSA/ISO9796-2", digest + "WITHRSA/ISO… in addISO9796Signature() [all …]
|
/external/openssh/ |
D | digest-libc.c | 148 const struct ssh_digest *digest = ssh_digest_by_alg(alg); in ssh_digest_alg_name() local 150 return digest == NULL ? NULL : digest->name; in ssh_digest_alg_name() 156 const struct ssh_digest *digest = ssh_digest_by_alg(alg); in ssh_digest_bytes() local 158 return digest == NULL ? 0 : digest->digest_len; in ssh_digest_bytes() 164 const struct ssh_digest *digest = ssh_digest_by_alg(ctx->alg); in ssh_digest_blocksize() local 166 return digest == NULL ? 0 : digest->block_len; in ssh_digest_blocksize() 172 const struct ssh_digest *digest = ssh_digest_by_alg(alg); in ssh_digest_start() local 175 if (digest == NULL || (ret = calloc(1, sizeof(*ret))) == NULL) in ssh_digest_start() 177 if ((ret->mdctx = calloc(1, digest->ctx_len)) == NULL) { in ssh_digest_start() 182 digest->md_init(ret->mdctx); in ssh_digest_start() [all …]
|
/external/libchrome/base/ |
D | md5_unittest.cc | 17 MD5Digest digest; in TEST() local 27 digest.a[i] = data[i] & 0xff; in TEST() 29 std::string actual = MD5DigestToBase16(digest); in TEST() 36 MD5Digest digest; in TEST() local 39 MD5Sum(data, strlen(data), &digest); in TEST() 49 EXPECT_EQ(expected[i], digest.a[i] & 0xFF); in TEST() 53 MD5Digest digest; in TEST() local 56 MD5Sum(data, strlen(data), &digest); in TEST() 66 EXPECT_EQ(expected[i], digest.a[i] & 0xFF); in TEST() 76 MD5Digest digest; in TEST() local [all …]
|
/external/ltp/testcases/kernel/security/integrity/ima/tests/ |
D | ima_measurements.sh | 68 local digest 70 digest="$(${algorithm}sum $file 2>/dev/null | cut -f1 -d ' ')" 71 if [ -n "$digest" ]; then 72 echo "$digest" 76 digest="$(openssl $algorithm $file 2>/dev/null | cut -f2 -d ' ')" 77 if [ -n "$digest" ]; then 78 echo "$digest" 89 digest="$(rdigest --$arg $file 2>/dev/null | cut -f1 -d ' ')" 90 if [ -n "$digest" ]; then 91 echo "$digest" [all …]
|