Add EVP_aes_192_gcm() as a known AEAD.
authorjsing <jsing@openbsd.org>
Sat, 30 Jul 2022 16:31:41 +0000 (16:31 +0000)
committerjsing <jsing@openbsd.org>
Sat, 30 Jul 2022 16:31:41 +0000 (16:31 +0000)
regress/lib/libcrypto/aead/aeadtest.c

index 189cece..1301a19 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: aeadtest.c,v 1.20 2022/07/30 16:30:42 jsing Exp $     */
+/*     $OpenBSD: aeadtest.c,v 1.21 2022/07/30 16:31:41 jsing Exp $     */
 /*
  * Copyright (c) 2014, Google Inc.
  *
@@ -93,6 +93,8 @@ aead_from_name(const EVP_AEAD **aead, const EVP_CIPHER **cipher,
        if (strcmp(name, "aes-128-gcm") == 0) {
                *aead = EVP_aead_aes_128_gcm();
                *cipher = EVP_aes_128_gcm();
+       } else if (strcmp(name, "aes-192-gcm") == 0) {
+               *cipher = EVP_aes_192_gcm();
        } else if (strcmp(name, "aes-256-gcm") == 0) {
                *aead = EVP_aead_aes_256_gcm();
                *cipher = EVP_aes_256_gcm();