Home
last modified time | relevance | path

Searched refs:sha1tmp (Results 1 – 4 of 4) sorted by relevance

/freebsd/crypto/openssl/crypto/sha/
H A Dsha1dgst.c31 unsigned char sha1tmp[SHA_DIGEST_LENGTH]; in ossl_sha1_ctrl() local
56 if (!SHA1_Final(sha1tmp, sha1)) in ossl_sha1_ctrl()
73 if (!SHA1_Update(sha1, sha1tmp, sizeof(sha1tmp))) in ossl_sha1_ctrl()
77 OPENSSL_cleanse(sha1tmp, sizeof(sha1tmp)); in ossl_sha1_ctrl()
/freebsd/crypto/openssl/crypto/md5/
H A Dmd5_sha1.c45 unsigned char sha1tmp[SHA_DIGEST_LENGTH]; in ossl_md5_sha1_ctrl() local
76 if (!SHA1_Final(sha1tmp, &mctx->sha1)) in ossl_md5_sha1_ctrl()
99 if (!SHA1_Update(&mctx->sha1, sha1tmp, sizeof(sha1tmp))) in ossl_md5_sha1_ctrl()
105 OPENSSL_cleanse(sha1tmp, sizeof(sha1tmp)); in ossl_md5_sha1_ctrl()
/freebsd/crypto/openssl/providers/implementations/ciphers/
H A Dcipher_tdes_wrap.c38 unsigned char icv[8], iv[TDES_IVLEN], sha1tmp[SHA_DIGEST_LENGTH]; in des_ede3_unwrap() local
68 if (ossl_sha1(out, inl - 16, sha1tmp) /* Work out hash of first portion */ in des_ede3_unwrap()
69 && CRYPTO_memcmp(sha1tmp, icv, 8) == 0) 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() local
95 if (!ossl_sha1(in, inl, sha1tmp)) in des_ede3_wrap()
97 memcpy(out + inl + ivlen, sha1tmp, icvlen); in des_ede3_wrap()
98 OPENSSL_cleanse(sha1tmp, SHA_DIGEST_LENGTH); in des_ede3_wrap()
/freebsd/crypto/openssl/crypto/evp/
H A De_des3.c320 unsigned char icv[8], iv[8], sha1tmp[SHA_DIGEST_LENGTH]; in des_ede3_unwrap() local
348 if (ossl_sha1(out, inl - 16, sha1tmp) /* Work out hash of first portion */ in des_ede3_unwrap()
349 && CRYPTO_memcmp(sha1tmp, icv, 8) == 0) 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() local
370 if (!ossl_sha1(in, inl, sha1tmp)) in des_ede3_wrap()
372 memcpy(out + inl + 8, sha1tmp, 8); in des_ede3_wrap()
373 OPENSSL_cleanse(sha1tmp, SHA_DIGEST_LENGTH); in des_ede3_wrap()