Added inline helper functions to check authsize and assoclen for gcm, rfc4106 and rfc4543. Added, also, inline helper function to check key length for AES algorithms. These are used in the generic implementation of gcm/rfc4106/rfc4543 and aes. Changes since v2: - rename aes helper functions without crypto_ prefix; - change include for gcm.h. Iuliana Prodan (2): crypto: gcm - helper functions for assoclen/authsize check crypto: aes - helper function to validate key length for AES algorithms crypto/gcm.c | 41 ++++++++++++++------------------------- include/crypto/aes.h | 17 ++++++++++++++++ include/crypto/gcm.h | 55 ++++++++++++++++++++++++++++++++++++++++++++++++++++ lib/crypto/aes.c | 8 ++++---- 4 files changed, 91 insertions(+), 30 deletions(-) -- 2.1.0