OpenSSL: Use library version of SHA256
There is no need to use the internal SHA256 implementation when using OpenSSL.
This commit is contained in:
parent
4b77bf2a40
commit
1430ba9b7e
2 changed files with 7 additions and 1 deletions
|
@ -102,6 +102,13 @@ int sha1_vector(size_t num_elem, const u8 *addr[], const size_t *len, u8 *mac)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int sha256_vector(size_t num_elem, const u8 *addr[], const size_t *len,
|
||||||
|
u8 *mac)
|
||||||
|
{
|
||||||
|
return openssl_digest_vector(EVP_sha256(), num_elem, addr, len, mac);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
void * aes_encrypt_init(const u8 *key, size_t len)
|
void * aes_encrypt_init(const u8 *key, size_t len)
|
||||||
{
|
{
|
||||||
AES_KEY *ak;
|
AES_KEY *ak;
|
||||||
|
|
|
@ -732,7 +732,6 @@ OBJS_p += ../src/crypto/crypto_openssl.o
|
||||||
ifdef NEED_FIPS186_2_PRF
|
ifdef NEED_FIPS186_2_PRF
|
||||||
OBJS += ../src/crypto/fips_prf_openssl.o
|
OBJS += ../src/crypto/fips_prf_openssl.o
|
||||||
endif
|
endif
|
||||||
CONFIG_INTERNAL_SHA256=y
|
|
||||||
endif
|
endif
|
||||||
ifeq ($(CONFIG_TLS), gnutls)
|
ifeq ($(CONFIG_TLS), gnutls)
|
||||||
OBJS += ../src/crypto/crypto_gnutls.o
|
OBJS += ../src/crypto/crypto_gnutls.o
|
||||||
|
|
Loading…
Reference in a new issue