Lines Matching refs:ctr
77 const u8 *assoc, int assoc_len, __be32 *ctr, u8 *authtag) in aesgcm_mac() argument
87 ctr[3] = cpu_to_be32(1); in aesgcm_mac()
88 aesgcm_encrypt_block(&ctx->aes_ctx, buf, ctr); in aesgcm_mac()
96 int len, __be32 *ctr) in aesgcm_crypt() argument
109 ctr[3] = cpu_to_be32(n++); in aesgcm_crypt()
110 aesgcm_encrypt_block(&ctx->aes_ctx, buf, ctr); in aesgcm_crypt()
139 __be32 ctr[4]; in aesgcm_encrypt() local
141 memcpy(ctr, iv, GCM_AES_IV_SIZE); in aesgcm_encrypt()
143 aesgcm_crypt(ctx, dst, src, crypt_len, ctr); in aesgcm_encrypt()
144 aesgcm_mac(ctx, dst, crypt_len, assoc, assoc_len, ctr, authtag); in aesgcm_encrypt()
171 __be32 ctr[4]; in aesgcm_decrypt() local
173 memcpy(ctr, iv, GCM_AES_IV_SIZE); in aesgcm_decrypt()
175 aesgcm_mac(ctx, src, crypt_len, assoc, assoc_len, ctr, tagbuf); in aesgcm_decrypt()
180 aesgcm_crypt(ctx, dst, src, crypt_len, ctr); in aesgcm_decrypt()