git: fbb46ffd8b33 - stable/13 - Fix the IV length in the armv8 AES GCM code

From: Andrew Turner <andrew_at_FreeBSD.org>
Date: Wed, 21 Sep 2022 09:46:45 UTC
The branch stable/13 has been updated by andrew:

URL: https://cgit.FreeBSD.org/src/commit/?id=fbb46ffd8b3389bbbbc444313fc84d40934ebbd3

commit fbb46ffd8b3389bbbbc444313fc84d40934ebbd3
Author:     Andrew Turner <andrew@FreeBSD.org>
AuthorDate: 2022-08-31 14:55:19 +0000
Commit:     Andrew Turner <andrew@FreeBSD.org>
CommitDate: 2022-09-21 09:45:52 +0000

    Fix the IV length in the armv8 AES GCM code
    
    Reviewed by:    cem, delphij
    Sponsored by:   The FreeBSD Foundation
    Differential Revision: https://reviews.freebsd.org/D36403
    
    (cherry picked from commit 7c4cfece6b7cc9733610b99682be5e9f11f31fc3)
---
 sys/crypto/armv8/armv8_crypto.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys/crypto/armv8/armv8_crypto.h b/sys/crypto/armv8/armv8_crypto.h
index a978248703fe..816ef087d726 100644
--- a/sys/crypto/armv8/armv8_crypto.h
+++ b/sys/crypto/armv8/armv8_crypto.h
@@ -73,12 +73,12 @@ void armv8_aes_encrypt_gcm(AES_key_t *, size_t,
     struct crypto_buffer_cursor *, struct crypto_buffer_cursor *,
     size_t, const uint8_t *,
     uint8_t tag[static GMAC_DIGEST_LEN],
-    const uint8_t[static AES_BLOCK_LEN],
+    const uint8_t[static AES_GCM_IV_LEN],
     const __uint128_val_t *);
 int armv8_aes_decrypt_gcm(AES_key_t *, size_t,
     struct crypto_buffer_cursor *, struct crypto_buffer_cursor *,
     size_t, const uint8_t *, const uint8_t tag[static GMAC_DIGEST_LEN],
-    const uint8_t[static AES_BLOCK_LEN],
+    const uint8_t[static AES_GCM_IV_LEN],
     const __uint128_val_t *);
 
 void armv8_aes_encrypt_xts(AES_key_t *, const void *, size_t,