Lines Matching refs:ctx
20 static int num_rounds(struct crypto_aes_ctx *ctx)
29 return 6 + ctx->key_length / 4;
49 struct crypto_aes_ctx *ctx = crypto_aead_ctx(tfm);
51 return ce_aes_expandkey(ctx, in_key, key_len);
137 struct crypto_aes_ctx *ctx = crypto_aead_ctx(aead);
153 ccm_update_mac(ctx, mac, (u8 *)<ag, ltag.len, &macp);
165 ccm_update_mac(ctx, mac, p, n, &macp);
175 struct crypto_aes_ctx *ctx, bool enc)
199 aes_encrypt(ctx, buf, walk->iv);
200 aes_encrypt(ctx, mac, mac);
215 aes_encrypt(ctx, buf, iv0);
216 aes_encrypt(ctx, mac, mac);
225 struct crypto_aes_ctx *ctx = crypto_aead_ctx(aead);
254 walk.nbytes - tail, ctx->key_enc,
255 num_rounds(ctx), mac, walk.iv);
262 ce_aes_ccm_final(mac, buf, ctx->key_enc,
263 num_rounds(ctx));
267 err = ccm_crypt_fallback(&walk, mac, buf, ctx, true);
282 struct crypto_aes_ctx *ctx = crypto_aead_ctx(aead);
312 walk.nbytes - tail, ctx->key_enc,
313 num_rounds(ctx), mac, walk.iv);
320 ce_aes_ccm_final(mac, buf, ctx->key_enc,
321 num_rounds(ctx));
325 err = ccm_crypt_fallback(&walk, mac, buf, ctx, false);