Lines Matching refs:ctr
89 const u8 *assoc, int assoc_len, __be32 *ctr, u8 *authtag) in aesgcm_mac() argument
99 ctr[3] = cpu_to_be32(1); in aesgcm_mac()
100 aesgcm_encrypt_block(&ctx->aes_ctx, buf, ctr); in aesgcm_mac()
108 int len, __be32 *ctr) in aesgcm_crypt() argument
121 ctr[3] = cpu_to_be32(n++); in aesgcm_crypt()
122 aesgcm_encrypt_block(&ctx->aes_ctx, buf, ctr); in aesgcm_crypt()
151 __be32 ctr[4]; in aesgcm_encrypt() local
153 memcpy(ctr, iv, GCM_AES_IV_SIZE); in aesgcm_encrypt()
155 aesgcm_crypt(ctx, dst, src, crypt_len, ctr); in aesgcm_encrypt()
156 aesgcm_mac(ctx, dst, crypt_len, assoc, assoc_len, ctr, authtag); in aesgcm_encrypt()
183 __be32 ctr[4]; in aesgcm_decrypt() local
185 memcpy(ctr, iv, GCM_AES_IV_SIZE); in aesgcm_decrypt()
187 aesgcm_mac(ctx, src, crypt_len, assoc, assoc_len, ctr, tagbuf); in aesgcm_decrypt()
192 aesgcm_crypt(ctx, dst, src, crypt_len, ctr); in aesgcm_decrypt()