Lines Matching refs:ctr
90 const u8 *assoc, int assoc_len, __be32 *ctr, u8 *authtag) in aesgcm_mac() argument
100 ctr[3] = cpu_to_be32(1); in aesgcm_mac()
101 aesgcm_encrypt_block(&ctx->aes_ctx, buf, ctr); in aesgcm_mac()
109 int len, __be32 *ctr) in aesgcm_crypt() argument
122 ctr[3] = cpu_to_be32(n++); in aesgcm_crypt()
123 aesgcm_encrypt_block(&ctx->aes_ctx, buf, ctr); in aesgcm_crypt()
152 __be32 ctr[4]; in aesgcm_encrypt() local
154 memcpy(ctr, iv, GCM_AES_IV_SIZE); in aesgcm_encrypt()
156 aesgcm_crypt(ctx, dst, src, crypt_len, ctr); in aesgcm_encrypt()
157 aesgcm_mac(ctx, dst, crypt_len, assoc, assoc_len, ctr, authtag); in aesgcm_encrypt()
184 __be32 ctr[4]; in aesgcm_decrypt() local
186 memcpy(ctr, iv, GCM_AES_IV_SIZE); in aesgcm_decrypt()
188 aesgcm_mac(ctx, src, crypt_len, assoc, assoc_len, ctr, tagbuf); in aesgcm_decrypt()
193 aesgcm_crypt(ctx, dst, src, crypt_len, ctr); in aesgcm_decrypt()