/third_party/ltp/testcases/kernel/security/integrity/ima/src/ |
D | ima_boot_aggregate.c | 36 static unsigned char boot_aggregate[SHA_DIGEST_LENGTH]; 42 u_int8_t digest[SHA_DIGEST_LENGTH]; 49 unsigned char digest[SHA_DIGEST_LENGTH]; 56 for (i = 0; i < SHA_DIGEST_LENGTH; i++) in display_sha1_digest() 74 memset(&pcr[i].digest, 0, SHA_DIGEST_LENGTH); in do_test() 90 SHA_DIGEST_LENGTH); in do_test() 92 SHA_DIGEST_LENGTH); in do_test() 109 memset(&boot_aggregate, 0, SHA_DIGEST_LENGTH); in do_test() 116 SHA1_Update(&c, pcr[i].digest, SHA_DIGEST_LENGTH); in do_test()
|
/third_party/openh264/test/utils/ |
D | HashFunctions.h | 18 char hashStrCmp[SHA_DIGEST_LENGTH * 2 + 1]; in CompareHash() 19 ToHashStr (hashStrCmp, digest, SHA_DIGEST_LENGTH); in CompareHash() 24 char hashStrCmp[SHA_DIGEST_LENGTH * 2 + 1]; in CompareHashAnyOf() 25 ToHashStr (hashStrCmp, digest, SHA_DIGEST_LENGTH); in CompareHashAnyOf()
|
/third_party/node/deps/openssl/openssl/providers/implementations/ciphers/ |
D | cipher_aes_cbc_hmac_sha1_hw.c | 64 vctx->removetlsfixed = SHA_DIGEST_LENGTH + AES_BLOCK_SIZE; in aesni_cbc_hmac_sha1_init_key() 393 ((plen + SHA_DIGEST_LENGTH + in aesni_cbc_hmac_sha1_cipher() 425 sha1_update(&sctx->md, out + plen, SHA_DIGEST_LENGTH); in aesni_cbc_hmac_sha1_cipher() 429 plen += SHA_DIGEST_LENGTH; in aesni_cbc_hmac_sha1_cipher() 441 unsigned int u[SHA_DIGEST_LENGTH / sizeof(unsigned int)]; in aesni_cbc_hmac_sha1_cipher() 442 unsigned char c[32 + SHA_DIGEST_LENGTH]; in aesni_cbc_hmac_sha1_cipher() 459 if (len < (AES_BLOCK_SIZE + SHA_DIGEST_LENGTH + 1)) in aesni_cbc_hmac_sha1_cipher() 468 } else if (len < (SHA_DIGEST_LENGTH + 1)) in aesni_cbc_hmac_sha1_cipher() 476 maxpad = len - (SHA_DIGEST_LENGTH + 1); in aesni_cbc_hmac_sha1_cipher() 490 inp_len = len - (SHA_DIGEST_LENGTH + pad + 1); in aesni_cbc_hmac_sha1_cipher() [all …]
|
D | cipher_tdes_wrap.c | 38 unsigned char icv[8], iv[TDES_IVLEN], sha1tmp[SHA_DIGEST_LENGTH]; in des_ede3_unwrap() 72 OPENSSL_cleanse(sha1tmp, SHA_DIGEST_LENGTH); in des_ede3_unwrap() 84 unsigned char sha1tmp[SHA_DIGEST_LENGTH]; in des_ede3_wrap() 98 OPENSSL_cleanse(sha1tmp, SHA_DIGEST_LENGTH); in des_ede3_wrap()
|
/third_party/openssl/providers/implementations/ciphers/ |
D | cipher_aes_cbc_hmac_sha1_hw.c | 64 vctx->removetlsfixed = SHA_DIGEST_LENGTH + AES_BLOCK_SIZE; in aesni_cbc_hmac_sha1_init_key() 393 ((plen + SHA_DIGEST_LENGTH + in aesni_cbc_hmac_sha1_cipher() 425 sha1_update(&sctx->md, out + plen, SHA_DIGEST_LENGTH); in aesni_cbc_hmac_sha1_cipher() 429 plen += SHA_DIGEST_LENGTH; in aesni_cbc_hmac_sha1_cipher() 441 unsigned int u[SHA_DIGEST_LENGTH / sizeof(unsigned int)]; in aesni_cbc_hmac_sha1_cipher() 442 unsigned char c[32 + SHA_DIGEST_LENGTH]; in aesni_cbc_hmac_sha1_cipher() 459 if (len < (AES_BLOCK_SIZE + SHA_DIGEST_LENGTH + 1)) in aesni_cbc_hmac_sha1_cipher() 468 } else if (len < (SHA_DIGEST_LENGTH + 1)) in aesni_cbc_hmac_sha1_cipher() 476 maxpad = len - (SHA_DIGEST_LENGTH + 1); in aesni_cbc_hmac_sha1_cipher() 490 inp_len = len - (SHA_DIGEST_LENGTH + pad + 1); in aesni_cbc_hmac_sha1_cipher() [all …]
|
D | cipher_tdes_wrap.c | 38 unsigned char icv[8], iv[TDES_IVLEN], sha1tmp[SHA_DIGEST_LENGTH]; in des_ede3_unwrap() 72 OPENSSL_cleanse(sha1tmp, SHA_DIGEST_LENGTH); in des_ede3_unwrap() 84 unsigned char sha1tmp[SHA_DIGEST_LENGTH]; in des_ede3_wrap() 98 OPENSSL_cleanse(sha1tmp, SHA_DIGEST_LENGTH); in des_ede3_wrap()
|
/third_party/node/deps/openssl/openssl/crypto/evp/ |
D | e_aes_cbc_hmac_sha1.c | 431 ((plen + SHA_DIGEST_LENGTH + in aesni_cbc_hmac_sha1_cipher() 465 SHA1_Update(&key->md, out + plen, SHA_DIGEST_LENGTH); in aesni_cbc_hmac_sha1_cipher() 469 plen += SHA_DIGEST_LENGTH; in aesni_cbc_hmac_sha1_cipher() 481 unsigned int u[SHA_DIGEST_LENGTH / sizeof(unsigned int)]; in aesni_cbc_hmac_sha1_cipher() 482 unsigned char c[32 + SHA_DIGEST_LENGTH]; in aesni_cbc_hmac_sha1_cipher() 503 if (len < (AES_BLOCK_SIZE + SHA_DIGEST_LENGTH + 1)) in aesni_cbc_hmac_sha1_cipher() 512 } else if (len < (SHA_DIGEST_LENGTH + 1)) in aesni_cbc_hmac_sha1_cipher() 532 maxpad = len - (SHA_DIGEST_LENGTH + 1); in aesni_cbc_hmac_sha1_cipher() 546 inp_len = len - (SHA_DIGEST_LENGTH + pad + 1); in aesni_cbc_hmac_sha1_cipher() 579 len -= SHA_DIGEST_LENGTH; /* amend mac */ in aesni_cbc_hmac_sha1_cipher() [all …]
|
D | e_des3.c | 320 unsigned char icv[8], iv[8], sha1tmp[SHA_DIGEST_LENGTH]; in des_ede3_unwrap() 352 OPENSSL_cleanse(sha1tmp, SHA_DIGEST_LENGTH); in des_ede3_unwrap() 364 unsigned char sha1tmp[SHA_DIGEST_LENGTH]; in des_ede3_wrap() 373 OPENSSL_cleanse(sha1tmp, SHA_DIGEST_LENGTH); in des_ede3_wrap()
|
/third_party/openssl/crypto/evp/ |
D | e_aes_cbc_hmac_sha1.c | 431 ((plen + SHA_DIGEST_LENGTH + in aesni_cbc_hmac_sha1_cipher() 465 SHA1_Update(&key->md, out + plen, SHA_DIGEST_LENGTH); in aesni_cbc_hmac_sha1_cipher() 469 plen += SHA_DIGEST_LENGTH; in aesni_cbc_hmac_sha1_cipher() 481 unsigned int u[SHA_DIGEST_LENGTH / sizeof(unsigned int)]; in aesni_cbc_hmac_sha1_cipher() 482 unsigned char c[32 + SHA_DIGEST_LENGTH]; in aesni_cbc_hmac_sha1_cipher() 503 if (len < (AES_BLOCK_SIZE + SHA_DIGEST_LENGTH + 1)) in aesni_cbc_hmac_sha1_cipher() 512 } else if (len < (SHA_DIGEST_LENGTH + 1)) in aesni_cbc_hmac_sha1_cipher() 532 maxpad = len - (SHA_DIGEST_LENGTH + 1); in aesni_cbc_hmac_sha1_cipher() 546 inp_len = len - (SHA_DIGEST_LENGTH + pad + 1); in aesni_cbc_hmac_sha1_cipher() 579 len -= SHA_DIGEST_LENGTH; /* amend mac */ in aesni_cbc_hmac_sha1_cipher() [all …]
|
D | e_des3.c | 320 unsigned char icv[8], iv[8], sha1tmp[SHA_DIGEST_LENGTH]; in des_ede3_unwrap() 352 OPENSSL_cleanse(sha1tmp, SHA_DIGEST_LENGTH); in des_ede3_unwrap() 364 unsigned char sha1tmp[SHA_DIGEST_LENGTH]; in des_ede3_wrap() 373 OPENSSL_cleanse(sha1tmp, SHA_DIGEST_LENGTH); in des_ede3_wrap()
|
/third_party/node/deps/openssl/openssl/engines/ |
D | e_ossltest.c | 104 || !EVP_MD_meth_set_result_size(md, SHA_DIGEST_LENGTH) in digest_sha1() 609 fill_known_data(md, SHA_DIGEST_LENGTH); in digest_sha1_final() 808 ((plen + SHA_DIGEST_LENGTH + in ossltest_aes128_cbc_hmac_sha1_cipher() 816 fill_known_data(out + plen, SHA_DIGEST_LENGTH); in ossltest_aes128_cbc_hmac_sha1_cipher() 819 plen += SHA_DIGEST_LENGTH; in ossltest_aes128_cbc_hmac_sha1_cipher() 831 if (len < (AES_BLOCK_SIZE + SHA_DIGEST_LENGTH + 1)) in ossltest_aes128_cbc_hmac_sha1_cipher() 838 } else if (len < (SHA_DIGEST_LENGTH + 1)) in ossltest_aes128_cbc_hmac_sha1_cipher() 843 maxpad = len - (SHA_DIGEST_LENGTH + 1); in ossltest_aes128_cbc_hmac_sha1_cipher() 885 return (int)(((len + SHA_DIGEST_LENGTH + in ossltest_aes128_cbc_hmac_sha1_ctrl() 891 return SHA_DIGEST_LENGTH; in ossltest_aes128_cbc_hmac_sha1_ctrl()
|
/third_party/openssl/engines/ |
D | e_ossltest.c | 104 || !EVP_MD_meth_set_result_size(md, SHA_DIGEST_LENGTH) in digest_sha1() 609 fill_known_data(md, SHA_DIGEST_LENGTH); in digest_sha1_final() 808 ((plen + SHA_DIGEST_LENGTH + in ossltest_aes128_cbc_hmac_sha1_cipher() 816 fill_known_data(out + plen, SHA_DIGEST_LENGTH); in ossltest_aes128_cbc_hmac_sha1_cipher() 819 plen += SHA_DIGEST_LENGTH; in ossltest_aes128_cbc_hmac_sha1_cipher() 831 if (len < (AES_BLOCK_SIZE + SHA_DIGEST_LENGTH + 1)) in ossltest_aes128_cbc_hmac_sha1_cipher() 838 } else if (len < (SHA_DIGEST_LENGTH + 1)) in ossltest_aes128_cbc_hmac_sha1_cipher() 843 maxpad = len - (SHA_DIGEST_LENGTH + 1); in ossltest_aes128_cbc_hmac_sha1_cipher() 885 return (int)(((len + SHA_DIGEST_LENGTH + in ossltest_aes128_cbc_hmac_sha1_ctrl() 891 return SHA_DIGEST_LENGTH; in ossltest_aes128_cbc_hmac_sha1_ctrl()
|
/third_party/openssl/crypto/ocsp/ |
D | ocsp_srv.c | 250 unsigned char md[SHA_DIGEST_LENGTH]; in OCSP_RESPID_set_by_key_ex() 265 if (!(ASN1_OCTET_STRING_set(byKey, md, SHA_DIGEST_LENGTH))) { in OCSP_RESPID_set_by_key_ex() 293 unsigned char md[SHA_DIGEST_LENGTH]; in OCSP_RESPID_match_ex() 306 ret = (ASN1_STRING_length(respid->value.byKey) == SHA_DIGEST_LENGTH) in OCSP_RESPID_match_ex() 308 SHA_DIGEST_LENGTH) == 0); in OCSP_RESPID_match_ex()
|
D | ocsp_vfy.c | 192 unsigned char tmphash[SHA_DIGEST_LENGTH], *keyhash; in ocsp_find_signer_sk() 203 if (id->value.byKey->length != SHA_DIGEST_LENGTH) in ocsp_find_signer_sk() 215 if (memcmp(keyhash, tmphash, SHA_DIGEST_LENGTH) == 0) in ocsp_find_signer_sk()
|
/third_party/node/deps/openssl/openssl/crypto/ocsp/ |
D | ocsp_srv.c | 250 unsigned char md[SHA_DIGEST_LENGTH]; in OCSP_RESPID_set_by_key_ex() 265 if (!(ASN1_OCTET_STRING_set(byKey, md, SHA_DIGEST_LENGTH))) { in OCSP_RESPID_set_by_key_ex() 293 unsigned char md[SHA_DIGEST_LENGTH]; in OCSP_RESPID_match_ex() 306 ret = (ASN1_STRING_length(respid->value.byKey) == SHA_DIGEST_LENGTH) in OCSP_RESPID_match_ex() 308 SHA_DIGEST_LENGTH) == 0); in OCSP_RESPID_match_ex()
|
D | ocsp_vfy.c | 192 unsigned char tmphash[SHA_DIGEST_LENGTH], *keyhash; in ocsp_find_signer_sk() 203 if (id->value.byKey->length != SHA_DIGEST_LENGTH) in ocsp_find_signer_sk() 215 if (memcmp(keyhash, tmphash, SHA_DIGEST_LENGTH) == 0) in ocsp_find_signer_sk()
|
/third_party/openssl/test/ |
D | sha_test.c | 39 static const unsigned char output[SHA_DIGEST_LENGTH] = { in test_static_sha1() 45 return test_static_sha_common("abc", SHA_DIGEST_LENGTH, output, &SHA1); in test_static_sha1()
|
D | bad_dtls_test.c | 300 pad = 15 - ((len + SHA_DIGEST_LENGTH) % 16); in send_record() 301 enc = OPENSSL_malloc(len + SHA_DIGEST_LENGTH + 1 + pad); in send_record() 324 || !EVP_MAC_final(ctx, enc + len, NULL, SHA_DIGEST_LENGTH)) in send_record() 328 len += SHA_DIGEST_LENGTH; in send_record()
|
/third_party/node/deps/openssl/openssl/crypto/sha/ |
D | sha1_one.c | 26 static unsigned char m[SHA_DIGEST_LENGTH]; in ossl_sha1() 40 static unsigned char m[SHA_DIGEST_LENGTH]; in SHA1()
|
/third_party/openssl/crypto/sha/ |
D | sha1_one.c | 26 static unsigned char m[SHA_DIGEST_LENGTH]; in ossl_sha1() 40 static unsigned char m[SHA_DIGEST_LENGTH]; in SHA1()
|
/third_party/node/deps/openssl/openssl/crypto/rsa/ |
D | rsa_sign.c | 130 ASN1_SEQUENCE, 0x0d + SHA_DIGEST_LENGTH, 134 ASN1_OCTET_STRING, SHA_DIGEST_LENGTH 213 MD_NID_CASE(sha1, SHA_DIGEST_LENGTH) in digest_sz_from_nid()
|
/third_party/openssl/crypto/rsa/ |
D | rsa_sign.c | 130 ASN1_SEQUENCE, 0x0d + SHA_DIGEST_LENGTH, 134 ASN1_OCTET_STRING, SHA_DIGEST_LENGTH 213 MD_NID_CASE(sha1, SHA_DIGEST_LENGTH) in digest_sz_from_nid()
|
/third_party/openssl/crypto/srp/ |
D | srp_vfy.c | 551 unsigned char digv[SHA_DIGEST_LENGTH]; in SRP_VBASE_get1_by_user() 552 unsigned char digs[SHA_DIGEST_LENGTH]; in SRP_VBASE_get1_by_user() 576 if (RAND_priv_bytes(digv, SHA_DIGEST_LENGTH) <= 0) in SRP_VBASE_get1_by_user() 593 BN_bin2bn(digs, SHA_DIGEST_LENGTH, NULL), in SRP_VBASE_get1_by_user() 594 BN_bin2bn(digv, SHA_DIGEST_LENGTH, NULL))) in SRP_VBASE_get1_by_user()
|
/third_party/node/deps/openssl/openssl/crypto/srp/ |
D | srp_vfy.c | 552 unsigned char digv[SHA_DIGEST_LENGTH]; in SRP_VBASE_get1_by_user() 553 unsigned char digs[SHA_DIGEST_LENGTH]; in SRP_VBASE_get1_by_user() 577 if (RAND_priv_bytes(digv, SHA_DIGEST_LENGTH) <= 0) in SRP_VBASE_get1_by_user() 594 BN_bin2bn(digs, SHA_DIGEST_LENGTH, NULL), in SRP_VBASE_get1_by_user() 595 BN_bin2bn(digv, SHA_DIGEST_LENGTH, NULL))) in SRP_VBASE_get1_by_user()
|
/third_party/openssl/ohos_lite/include/crypto/ |
D | x509.h | 109 unsigned char sha1_hash[SHA_DIGEST_LENGTH]; 184 unsigned char sha1_hash[SHA_DIGEST_LENGTH];
|