Lines Matching full:crypto
4 #include <linux/crypto.h>
7 #include <crypto/aead.h>
8 #include <crypto/authenc.h>
9 #include <crypto/des.h>
10 #include <crypto/internal/aead.h>
11 #include <crypto/scatterwalk.h>
12 #include <crypto/gcm.h>
45 /* fill crypto context */ in nitrox_aes_gcm_setkey()
52 memset(&fctx->crypto, 0, sizeof(fctx->crypto)); in nitrox_aes_gcm_setkey()
53 memcpy(fctx->crypto.u.key, key, keylen); in nitrox_aes_gcm_setkey()
225 memcpy(fctx->crypto.iv, areq->iv, GCM_AES_SALT_SIZE); in nitrox_aes_gcm_enc()
242 /* send the crypto request */ in nitrox_aes_gcm_enc()
259 memcpy(fctx->crypto.iv, areq->iv, GCM_AES_SALT_SIZE); in nitrox_aes_gcm_dec()
276 /* send the crypto request */ in nitrox_aes_gcm_dec()
291 /* allocate nitrox crypto context */ in nitrox_aead_init()
345 /* free the nitrox crypto context */ in nitrox_aead_exit()
349 memzero_explicit(&fctx->crypto, sizeof(struct crypto_keys)); in nitrox_aead_exit()
374 memcpy(fctx->crypto.iv, key + keylen, GCM_AES_SALT_SIZE); in nitrox_rfc4106_setkey()
467 /* send the crypto request */ in nitrox_rfc4106_enc()
500 /* send the crypto request */ in nitrox_rfc4106_dec()