Home
last modified time | relevance | path

Searched refs:GCM_AES_SALT_SIZE (Results 1 – 1 of 1) sorted by relevance

/Linux-v5.4/drivers/crypto/cavium/nitrox/
Dnitrox_aead.c19 #define GCM_AES_SALT_SIZE 4 macro
198 memcpy(fctx->crypto.iv, areq->iv, GCM_AES_SALT_SIZE); in nitrox_aes_gcm_enc()
204 rctx->iv = &areq->iv[GCM_AES_SALT_SIZE]; in nitrox_aes_gcm_enc()
205 rctx->ivsize = GCM_AES_IV_SIZE - GCM_AES_SALT_SIZE; in nitrox_aes_gcm_enc()
229 memcpy(fctx->crypto.iv, areq->iv, GCM_AES_SALT_SIZE); in nitrox_aes_gcm_dec()
235 rctx->iv = &areq->iv[GCM_AES_SALT_SIZE]; in nitrox_aes_gcm_dec()
236 rctx->ivsize = GCM_AES_IV_SIZE - GCM_AES_SALT_SIZE; in nitrox_aes_gcm_dec()
336 if (keylen < GCM_AES_SALT_SIZE) in nitrox_rfc4106_setkey()
339 keylen -= GCM_AES_SALT_SIZE; in nitrox_rfc4106_setkey()
344 memcpy(fctx->crypto.iv, key + keylen, GCM_AES_SALT_SIZE); in nitrox_rfc4106_setkey()