Home
last modified time | relevance | path

Searched refs:SHA_DIGEST_LENGTH (Results 1 – 25 of 73) sorted by relevance

123

/third_party/ltp/testcases/kernel/security/integrity/ima/src/
Dima_boot_aggregate.c36 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/
DHashFunctions.h18 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/
Dcipher_aes_cbc_hmac_sha1_hw.c64 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 …]
Dcipher_tdes_wrap.c38 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/
Dcipher_aes_cbc_hmac_sha1_hw.c64 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 …]
Dcipher_tdes_wrap.c38 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/
De_aes_cbc_hmac_sha1.c431 ((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 …]
De_des3.c320 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/
De_aes_cbc_hmac_sha1.c431 ((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 …]
De_des3.c320 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/
De_ossltest.c104 || !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/
De_ossltest.c104 || !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/
Docsp_srv.c250 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()
Docsp_vfy.c192 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/
Docsp_srv.c250 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()
Docsp_vfy.c192 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/
Dsha_test.c39 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()
Dbad_dtls_test.c300 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/
Dsha1_one.c26 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/
Dsha1_one.c26 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/
Drsa_sign.c130 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/
Drsa_sign.c130 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/
Dsrp_vfy.c551 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/
Dsrp_vfy.c552 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/
Dx509.h109 unsigned char sha1_hash[SHA_DIGEST_LENGTH];
184 unsigned char sha1_hash[SHA_DIGEST_LENGTH];

123