4 #include <linux/errno.h>
6 #define GCM_AES_IV_SIZE 12
7 #define GCM_RFC4106_IV_SIZE 8
8 #define GCM_RFC4543_IV_SIZE 8
11 * validate authentication tag for GCM
13 static inline int crypto_gcm_check_authsize(unsigned int authsize
)
32 * validate authentication tag for RFC4106
34 static inline int crypto_rfc4106_check_authsize(unsigned int authsize
)
49 * validate assoclen for RFC4106/RFC4543
51 static inline int crypto_ipsec_check_assoclen(unsigned int assoclen
)