Home
last modified time | relevance | path

Searched refs:hash_size (Results 1 – 3 of 3) sorted by relevance

/openssl/crypto/siphash/
H A Dsiphash.c75 return ctx->hash_size; in SipHash_hash_size()
80 if (hash_size == 0) in siphash_adjust_hash_size()
81 hash_size = SIPHASH_MAX_DIGEST_SIZE; in siphash_adjust_hash_size()
82 return hash_size; in siphash_adjust_hash_size()
87 hash_size = siphash_adjust_hash_size(hash_size); in SipHash_set_hash_size()
88 if (hash_size != SIPHASH_MIN_DIGEST_SIZE in SipHash_set_hash_size()
89 && hash_size != SIPHASH_MAX_DIGEST_SIZE) in SipHash_set_hash_size()
98 ctx->hash_size = siphash_adjust_hash_size(ctx->hash_size); in SipHash_set_hash_size()
101 if ((size_t)ctx->hash_size != hash_size) { in SipHash_set_hash_size()
103 ctx->hash_size = hash_size; in SipHash_set_hash_size()
[all …]
/openssl/include/crypto/
H A Dsiphash.h25 int SipHash_set_hash_size(SIPHASH *ctx, size_t hash_size);
40 unsigned int hash_size; member
/openssl/crypto/sm2/
H A Dsm2_crypt.c291 const int hash_size = EVP_MD_get_size(digest); in ossl_sm2_decrypt() local
300 if (field_size == 0 || hash_size <= 0) in ossl_sm2_decrypt()
312 if (sm2_ctext->C3->length != hash_size) { in ossl_sm2_decrypt()
342 computed_C3 = OPENSSL_zalloc(hash_size); in ossl_sm2_decrypt()
393 if (CRYPTO_memcmp(computed_C3, C3, hash_size) != 0) { in ossl_sm2_decrypt()

Completed in 7 milliseconds