Home
last modified time | relevance | path

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

/external/ltp/testcases/kernel/security/integrity/ima/src/
Dima_measure.c44 static u_int8_t zero[SHA_DIGEST_LENGTH];
45 static u_int8_t fox[SHA_DIGEST_LENGTH];
50 u_int8_t digest[SHA_DIGEST_LENGTH];
55 u_int8_t digest[SHA_DIGEST_LENGTH];
89 u_int8_t digest[SHA_DIGEST_LENGTH]; in verify_template_hash()
138 u_int8_t pcr[SHA_DIGEST_LENGTH]; in main()
165 memset(pcr, 0, SHA_DIGEST_LENGTH); /* initial PCR content 0..0 */ in main()
166 memset(zero, 0, SHA_DIGEST_LENGTH); in main()
167 memset(fox, 0xff, SHA_DIGEST_LENGTH); in main()
176 SHA1_Update(&c, pcr, SHA_DIGEST_LENGTH); in main()
Dima_boot_aggregate.c52 unsigned char boot_aggregate[SHA_DIGEST_LENGTH]; in main()
57 unsigned char digest[SHA_DIGEST_LENGTH]; in main()
63 unsigned char digest[SHA_DIGEST_LENGTH]; in main()
82 memset(&pcr[i].digest, 0, SHA_DIGEST_LENGTH); in main()
103 memset(&boot_aggregate, 0, SHA_DIGEST_LENGTH); in main()
/external/boringssl/src/crypto/cipher_extra/
De_tls.c457 SHA_DIGEST_LENGTH + 16, /* key len (SHA1 + AES128) */
459 16 + SHA_DIGEST_LENGTH, /* overhead (padding + SHA1) */
460 SHA_DIGEST_LENGTH, /* max tag length */
473 SHA_DIGEST_LENGTH + 16 + 16, /* key len (SHA1 + AES128 + IV) */
475 16 + SHA_DIGEST_LENGTH, /* overhead (padding + SHA1) */
476 SHA_DIGEST_LENGTH, /* max tag length */
505 SHA_DIGEST_LENGTH + 32, /* key len (SHA1 + AES256) */
507 16 + SHA_DIGEST_LENGTH, /* overhead (padding + SHA1) */
508 SHA_DIGEST_LENGTH, /* max tag length */
521 SHA_DIGEST_LENGTH + 32 + 16, /* key len (SHA1 + AES256 + IV) */
[all …]
De_ssl3.c362 SHA_DIGEST_LENGTH + 16 + 16, /* key len (SHA1 + AES128 + IV) */
364 16 + SHA_DIGEST_LENGTH, /* overhead (padding + SHA1) */
365 SHA_DIGEST_LENGTH, /* max tag length */
378 SHA_DIGEST_LENGTH + 32 + 16, /* key len (SHA1 + AES256 + IV) */
380 16 + SHA_DIGEST_LENGTH, /* overhead (padding + SHA1) */
381 SHA_DIGEST_LENGTH, /* max tag length */
394 SHA_DIGEST_LENGTH + 24 + 8, /* key len (SHA1 + 3DES + IV) */
396 8 + SHA_DIGEST_LENGTH, /* overhead (padding + SHA1) */
397 SHA_DIGEST_LENGTH, /* max tag length */
410 SHA_DIGEST_LENGTH, /* key len */
[all …]
Dtls_cbc.c292 md_size = SHA_DIGEST_LENGTH; in EVP_tls_cbc_digest_record()
/external/libbrillo/brillo/
Dcryptohome.cc65 unsigned char binmd[SHA_DIGEST_LENGTH]; in SanitizeUserName()
114 return (sanitized.length() == 2 * SHA_DIGEST_LENGTH) && in IsSanitizedUserName()
/external/selinux/libselinux/src/android/
Dandroid_common.h44 #define FC_DIGEST_SIZE SHA_DIGEST_LENGTH
/external/boringssl/src/crypto/x509/
Dt_x509.c258 unsigned char SHA1md[SHA_DIGEST_LENGTH]; in X509_ocspid_print()
272 for (i = 0; i < SHA_DIGEST_LENGTH; i++) { in X509_ocspid_print()
289 for (i = 0; i < SHA_DIGEST_LENGTH; i++) { in X509_ocspid_print()
Dx509_cmp.c184 rv = OPENSSL_memcmp(a->sha1_hash, b->sha1_hash, SHA_DIGEST_LENGTH); in X509_cmp()
228 unsigned char md[SHA_DIGEST_LENGTH]; in X509_NAME_hash()
/external/boringssl/src/ssl/
Dt1_enc.cc269 uint8_t buf[16], smd[SHA_DIGEST_LENGTH]; in ssl3_prf()
308 EVP_DigestUpdate(&md5, smd, SHA_DIGEST_LENGTH); in ssl3_prf()
319 OPENSSL_cleanse(smd, SHA_DIGEST_LENGTH); in ssl3_prf()
Dssl_cipher.cc726 *out_mac_secret_len = SHA_DIGEST_LENGTH; in ssl_cipher_get_evp_aead()
1744 size_t ret = 1 + SHA_DIGEST_LENGTH; in ssl_cipher_get_record_split_len()
/external/boringssl/src/crypto/fipsmodule/digest/
Ddigests.c140 out->md_size = SHA_DIGEST_LENGTH; in DEFINE_METHOD_FUNCTION()
271 out->md_size = MD5_DIGEST_LENGTH + SHA_DIGEST_LENGTH; in DEFINE_METHOD_FUNCTION()
/external/wpa_supplicant_8/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()
/external/boringssl/src/include/openssl/
Dsha.h74 #define SHA_DIGEST_LENGTH 20 macro
Dx509.h263 unsigned char sha1_hash[SHA_DIGEST_LENGTH];
434 unsigned char sha1_hash[SHA_DIGEST_LENGTH];
/external/boringssl/src/fipstools/
Dtest_fips.c162 hexdump(output, SHA_DIGEST_LENGTH); in main()
/external/toybox/toys/lsb/
Dmd5sum.c243 #define SHA1_DIGEST_LENGTH SHA_DIGEST_LENGTH
/external/ipsec-tools/src/racoon/
Dcrypto_openssl.c2061 if ((res = vmalloc(SHA_DIGEST_LENGTH)) == 0)
2069 if (SHA_DIGEST_LENGTH != res->l) {
2345 if ((res = vmalloc(SHA_DIGEST_LENGTH)) == 0)
2371 return SHA_DIGEST_LENGTH << 3; in eay_sha1_hashlen()
/external/boringssl/src/crypto/fipsmodule/rsa/
Drsa.c333 SHA_DIGEST_LENGTH,