Home
last modified time | relevance | path

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

12

/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.h17 char hashStrCmp[SHA_DIGEST_LENGTH * 2 + 1]; in CompareHash()
18 ToHashStr (hashStrCmp, digest, SHA_DIGEST_LENGTH); in CompareHash()
23 char hashStrCmp[SHA_DIGEST_LENGTH * 2 + 1]; in CompareHashAnyOf()
24 ToHashStr (hashStrCmp, digest, SHA_DIGEST_LENGTH); in CompareHashAnyOf()
/third_party/openssl/crypto/evp/
De_aes_cbc_hmac_sha1.c425 ((plen + SHA_DIGEST_LENGTH + in aesni_cbc_hmac_sha1_cipher()
460 SHA1_Update(&key->md, out + plen, SHA_DIGEST_LENGTH); in aesni_cbc_hmac_sha1_cipher()
464 plen += SHA_DIGEST_LENGTH; in aesni_cbc_hmac_sha1_cipher()
476 unsigned int u[SHA_DIGEST_LENGTH / sizeof(unsigned int)]; in aesni_cbc_hmac_sha1_cipher()
477 unsigned char c[32 + SHA_DIGEST_LENGTH]; in aesni_cbc_hmac_sha1_cipher()
498 if (len < (AES_BLOCK_SIZE + SHA_DIGEST_LENGTH + 1)) in aesni_cbc_hmac_sha1_cipher()
507 } else if (len < (SHA_DIGEST_LENGTH + 1)) in aesni_cbc_hmac_sha1_cipher()
527 maxpad = len - (SHA_DIGEST_LENGTH + 1); in aesni_cbc_hmac_sha1_cipher()
541 inp_len = len - (SHA_DIGEST_LENGTH + pad + 1); in aesni_cbc_hmac_sha1_cipher()
574 len -= SHA_DIGEST_LENGTH; /* amend mac */ in aesni_cbc_hmac_sha1_cipher()
[all …]
Dm_md5_sha1.c54 unsigned char sha1tmp[SHA_DIGEST_LENGTH]; in ctrl()
126 MD5_DIGEST_LENGTH + SHA_DIGEST_LENGTH,
De_des3.c319 unsigned char icv[8], iv[8], sha1tmp[SHA_DIGEST_LENGTH]; in des_ede3_unwrap()
353 OPENSSL_cleanse(sha1tmp, SHA_DIGEST_LENGTH); in des_ede3_unwrap()
365 unsigned char sha1tmp[SHA_DIGEST_LENGTH]; in des_ede3_wrap()
373 OPENSSL_cleanse(sha1tmp, SHA_DIGEST_LENGTH); in des_ede3_wrap()
Dm_sha1.c38 unsigned char sha1tmp[SHA_DIGEST_LENGTH]; in ctrl()
97 SHA_DIGEST_LENGTH,
/third_party/openssl/crypto/ocsp/
Docsp_srv.c265 unsigned char md[SHA_DIGEST_LENGTH]; in OCSP_RESPID_set_by_key()
275 if (!(ASN1_OCTET_STRING_set(byKey, md, SHA_DIGEST_LENGTH))) { in OCSP_RESPID_set_by_key()
289 unsigned char md[SHA_DIGEST_LENGTH]; in OCSP_RESPID_match()
298 return (ASN1_STRING_length(respid->value.byKey) == SHA_DIGEST_LENGTH) in OCSP_RESPID_match()
300 SHA_DIGEST_LENGTH) == 0); in OCSP_RESPID_match()
Docsp_vfy.c173 unsigned char tmphash[SHA_DIGEST_LENGTH], *keyhash; in ocsp_find_signer_sk()
183 if (id->value.byKey->length != SHA_DIGEST_LENGTH) in ocsp_find_signer_sk()
190 if (!memcmp(keyhash, tmphash, SHA_DIGEST_LENGTH)) in ocsp_find_signer_sk()
/third_party/openssl/crypto/srp/
Dsrp_vfy.c532 unsigned char digv[SHA_DIGEST_LENGTH]; in SRP_VBASE_get1_by_user()
533 unsigned char digs[SHA_DIGEST_LENGTH]; in SRP_VBASE_get1_by_user()
556 if (RAND_priv_bytes(digv, SHA_DIGEST_LENGTH) <= 0) in SRP_VBASE_get1_by_user()
568 BN_bin2bn(digs, SHA_DIGEST_LENGTH, NULL), in SRP_VBASE_get1_by_user()
569 BN_bin2bn(digv, SHA_DIGEST_LENGTH, NULL))) in SRP_VBASE_get1_by_user()
Dsrp_lib.c25 unsigned char digest[SHA_DIGEST_LENGTH]; in srp_Calc_xy()
122 unsigned char dig[SHA_DIGEST_LENGTH]; in SRP_Calc_x()
/third_party/openh264/test/
Dsha1.h79 #define SHA_DIGEST_LENGTH 20 macro
/third_party/openssl/crypto/sha/
Dsha1_one.c18 static unsigned char m[SHA_DIGEST_LENGTH]; in SHA1()
/third_party/openssl/include/crypto/
Dx509.h109 unsigned char sha1_hash[SHA_DIGEST_LENGTH];
184 unsigned char sha1_hash[SHA_DIGEST_LENGTH];
/third_party/openssl/crypto/x509/
Dt_x509.c227 unsigned char SHA1md[SHA_DIGEST_LENGTH]; in X509_ocspid_print()
244 for (i = 0; i < SHA_DIGEST_LENGTH; i++) { in X509_ocspid_print()
266 for (i = 0; i < SHA_DIGEST_LENGTH; i++) { in X509_ocspid_print()
/third_party/openssl/test/
Dbad_dtls_test.c294 pad = 15 - ((len + SHA_DIGEST_LENGTH) % 16); in send_record()
295 enc = OPENSSL_malloc(len + SHA_DIGEST_LENGTH + 1 + pad); in send_record()
317 len += SHA_DIGEST_LENGTH; in send_record()
Drc4test.c99 unsigned char md[SHA_DIGEST_LENGTH]; in test_rc_bulk()
/third_party/openssl/doc/man3/
DSHA256_Init.pod55 SHA_DIGEST_LENGTH == 20 bytes of output). If B<md> is NULL, the digest
67 for SHA_DIGEST_LENGTH == 20 bytes of output, and erases the B<SHA_CTX>.
/third_party/gstreamer/gstplugins_bad/ext/sctp/usrsctp/usrsctplib/netinet/
Dsctp_sha1.c40 #define SHA_DIGEST_LENGTH (20) macro
60 PK11_DigestFinal(ctx->pk11_ctx, digest, &output_len, SHA_DIGEST_LENGTH); in sctp_sha1_final()
/third_party/openh264/test/api/
Ddecoder_test.cpp84 unsigned char digest[SHA_DIGEST_LENGTH]; in TEST_P()
Dthread_decoder_test.cpp83 unsigned char digest[SHA_DIGEST_LENGTH]; in TEST_P()
/third_party/openssl/include/openssl/
Dsha.h32 # define SHA_DIGEST_LENGTH 20 macro
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/
Dtls_openssl_ocsp.c463 unsigned char hash[SHA_DIGEST_LENGTH]; in ocsp_find_signer()
471 if (rid->value.byKey->length != SHA_DIGEST_LENGTH) in ocsp_find_signer()
478 SHA_DIGEST_LENGTH) == 0) in ocsp_find_signer()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/
Dtls_openssl_ocsp.c463 unsigned char hash[SHA_DIGEST_LENGTH]; in ocsp_find_signer()
471 if (rid->value.byKey->length != SHA_DIGEST_LENGTH) in ocsp_find_signer()
478 SHA_DIGEST_LENGTH) == 0) in ocsp_find_signer()
/third_party/openssl/crypto/ts/
Dts_rsp_verify.c287 unsigned char cert_sha1[SHA_DIGEST_LENGTH]; in ts_find_cert()
302 if (cid->hash->length == SHA_DIGEST_LENGTH in ts_find_cert()
303 && memcmp(cid->hash->data, cert_sha1, SHA_DIGEST_LENGTH) == 0) { in ts_find_cert()
/third_party/openssl/engines/
De_dasync.c227 || !EVP_MD_meth_set_result_size(_hidden_sha1_md, SHA_DIGEST_LENGTH) in bind_dasync()
627 return ((len + SHA_DIGEST_LENGTH + AES_BLOCK_SIZE) in dasync_cipher_ctrl_helper()
630 return SHA_DIGEST_LENGTH; in dasync_cipher_ctrl_helper()

12