]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
BoringSSL: Add AES support with 192-bit keys
authorJouni Malinen <jouni@qca.qualcomm.com>
Fri, 17 Nov 2017 19:03:04 +0000 (21:03 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 17 Nov 2017 19:03:04 +0000 (21:03 +0200)
BoringSSL restored the previously removed AES-192 ECB support in ("Add
AES-192 ECB.") commit. Since this is needed for DPP with the P-384
curve, restore support for this through EVP_aes_192_ecb().

Signed-off-by: Jouni Malinen <jouni@qca.qualcomm.com>
src/crypto/crypto_openssl.c

index 91201ca348bda564a2898a15a90a7c93ffc25c9a..193b5f084f762efae6f53572d3260ad4eba8b19f 100644 (file)
@@ -270,10 +270,8 @@ static const EVP_CIPHER * aes_get_evp_cipher(size_t keylen)
        switch (keylen) {
        case 16:
                return EVP_aes_128_ecb();
-#ifndef OPENSSL_IS_BORINGSSL
        case 24:
                return EVP_aes_192_ecb();
-#endif /* OPENSSL_IS_BORINGSSL */
        case 32:
                return EVP_aes_256_ecb();
        }