]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
OpenSSL: Use library version of SHA256
authorJouni Malinen <j@w1.fi>
Sun, 16 Aug 2009 11:15:36 +0000 (14:15 +0300)
committerJouni Malinen <j@w1.fi>
Sun, 16 Aug 2009 11:15:36 +0000 (14:15 +0300)
There is no need to use the internal SHA256 implementation when using
OpenSSL.

src/crypto/crypto_openssl.c
wpa_supplicant/Makefile

index 7b5a4d2ecdb7d429e2fae57a3422127998ace949..fceefb12c520d1233e1b1c641a44eeda165a9c89 100644 (file)
@@ -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)
 {
        AES_KEY *ak;
index 78daca50975f03137db49a2e94396f3218ff69ea..311b5378787837360e4c5a3fe919f7ddca8c23f5 100644 (file)
@@ -732,7 +732,6 @@ OBJS_p += ../src/crypto/crypto_openssl.o
 ifdef NEED_FIPS186_2_PRF
 OBJS += ../src/crypto/fips_prf_openssl.o
 endif
-CONFIG_INTERNAL_SHA256=y
 endif
 ifeq ($(CONFIG_TLS), gnutls)
 OBJS += ../src/crypto/crypto_gnutls.o