Home
last modified time | relevance | path

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

/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()
/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()
/openssl/providers/implementations/ciphers/
H A Dcipher_tdes_wrap.c37 unsigned char icv[8], iv[TDES_IVLEN], sha1tmp[SHA_DIGEST_LENGTH]; in des_ede3_unwrap() local
67 if (ossl_sha1(out, inl - 16, sha1tmp) /* Work out hash of first portion */ in des_ede3_unwrap()
68 && CRYPTO_memcmp(sha1tmp, icv, 8) == 0) in des_ede3_unwrap()
71 OPENSSL_cleanse(sha1tmp, SHA_DIGEST_LENGTH); in des_ede3_unwrap()
83 unsigned char sha1tmp[SHA_DIGEST_LENGTH]; in des_ede3_wrap() local
94 if (!ossl_sha1(in, inl, sha1tmp)) in des_ede3_wrap()
96 memcpy(out + inl + ivlen, sha1tmp, icvlen); in des_ede3_wrap()
97 OPENSSL_cleanse(sha1tmp, SHA_DIGEST_LENGTH); in des_ede3_wrap()
/openssl/crypto/evp/
H A De_des3.c322 unsigned char icv[8], iv[8], sha1tmp[SHA_DIGEST_LENGTH]; in des_ede3_unwrap() local
350 if (ossl_sha1(out, inl - 16, sha1tmp) /* Work out hash of first portion */ in des_ede3_unwrap()
351 && CRYPTO_memcmp(sha1tmp, icv, 8) == 0) in des_ede3_unwrap()
354 OPENSSL_cleanse(sha1tmp, SHA_DIGEST_LENGTH); in des_ede3_unwrap()
366 unsigned char sha1tmp[SHA_DIGEST_LENGTH]; in des_ede3_wrap() local
372 if (!ossl_sha1(in, inl, sha1tmp)) in des_ede3_wrap()
374 memcpy(out + inl + 8, sha1tmp, 8); in des_ede3_wrap()
375 OPENSSL_cleanse(sha1tmp, SHA_DIGEST_LENGTH); in des_ede3_wrap()

Completed in 10 milliseconds