Changeset View
Changeset View
Standalone View
Standalone View
head/sys/opencrypto/xform_gmac.c
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Lines | |||||
#include <sys/cdefs.h> | #include <sys/cdefs.h> | ||||
__FBSDID("$FreeBSD$"); | __FBSDID("$FreeBSD$"); | ||||
#include <opencrypto/gmac.h> | #include <opencrypto/gmac.h> | ||||
#include <opencrypto/xform_auth.h> | #include <opencrypto/xform_auth.h> | ||||
/* Encryption instances */ | /* Encryption instances */ | ||||
struct enc_xform enc_xform_aes_nist_gmac = { | struct enc_xform enc_xform_aes_nist_gmac = { | ||||
CRYPTO_AES_NIST_GMAC, "AES-GMAC", | .type = CRYPTO_AES_NIST_GMAC, | ||||
AES_ICM_BLOCK_LEN, AES_GCM_IV_LEN, AES_MIN_KEY, AES_MAX_KEY, | .name = "AES-GMAC", | ||||
NULL, | .blocksize = AES_ICM_BLOCK_LEN, | ||||
NULL, | .ivsize = AES_GCM_IV_LEN, | ||||
NULL, | .minkey = AES_MIN_KEY, | ||||
NULL, | .maxkey = AES_MAX_KEY, | ||||
NULL, | |||||
}; | }; | ||||
/* Authentication instances */ | /* Authentication instances */ | ||||
struct auth_hash auth_hash_nist_gmac_aes_128 = { | struct auth_hash auth_hash_nist_gmac_aes_128 = { | ||||
CRYPTO_AES_NIST_GMAC, "GMAC-AES-128", | CRYPTO_AES_NIST_GMAC, "GMAC-AES-128", | ||||
AES_128_GMAC_KEY_LEN, AES_GMAC_HASH_LEN, sizeof(struct aes_gmac_ctx), | AES_128_GMAC_KEY_LEN, AES_GMAC_HASH_LEN, sizeof(struct aes_gmac_ctx), | ||||
GMAC_BLOCK_LEN, | GMAC_BLOCK_LEN, | ||||
(void (*)(void *)) AES_GMAC_Init, | (void (*)(void *)) AES_GMAC_Init, | ||||
Show All 27 Lines |