OpenSSL: Implement sha384_vector()
This was forgotten from the addition of SHA384 support and is now needed for FILS. Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
This commit is contained in:
parent
a70cd0db87
commit
ef495c78dd
1 changed files with 11 additions and 0 deletions
|
@ -109,6 +109,9 @@ static BIGNUM * get_group5_prime(void)
|
||||||
#ifdef OPENSSL_NO_SHA256
|
#ifdef OPENSSL_NO_SHA256
|
||||||
#define NO_SHA256_WRAPPER
|
#define NO_SHA256_WRAPPER
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef OPENSSL_NO_SHA512
|
||||||
|
#define NO_SHA384_WRAPPER
|
||||||
|
#endif
|
||||||
|
|
||||||
static int openssl_digest_vector(const EVP_MD *type, size_t num_elem,
|
static int openssl_digest_vector(const EVP_MD *type, size_t num_elem,
|
||||||
const u8 *addr[], const size_t *len, u8 *mac)
|
const u8 *addr[], const size_t *len, u8 *mac)
|
||||||
|
@ -242,6 +245,14 @@ int sha256_vector(size_t num_elem, const u8 *addr[], const size_t *len,
|
||||||
}
|
}
|
||||||
#endif /* NO_SHA256_WRAPPER */
|
#endif /* NO_SHA256_WRAPPER */
|
||||||
|
|
||||||
|
#ifndef NO_SHA384_WRAPPER
|
||||||
|
int sha384_vector(size_t num_elem, const u8 *addr[], const size_t *len,
|
||||||
|
u8 *mac)
|
||||||
|
{
|
||||||
|
return openssl_digest_vector(EVP_sha384(), num_elem, addr, len, mac);
|
||||||
|
}
|
||||||
|
#endif /* NO_SHA384_WRAPPER */
|
||||||
|
|
||||||
|
|
||||||
static const EVP_CIPHER * aes_get_evp_cipher(size_t keylen)
|
static const EVP_CIPHER * aes_get_evp_cipher(size_t keylen)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue