Lines Matching refs:rk
29 asmlinkage void aesbs_convert_key(u8 out[], u32 const rk[], int rounds);
31 asmlinkage void aesbs_ecb_encrypt(u8 out[], u8 const in[], u8 const rk[],
33 asmlinkage void aesbs_ecb_decrypt(u8 out[], u8 const in[], u8 const rk[],
36 asmlinkage void aesbs_cbc_decrypt(u8 out[], u8 const in[], u8 const rk[],
39 asmlinkage void aesbs_ctr_encrypt(u8 out[], u8 const in[], u8 const rk[],
42 asmlinkage void aesbs_xts_encrypt(u8 out[], u8 const in[], u8 const rk[],
44 asmlinkage void aesbs_xts_decrypt(u8 out[], u8 const in[], u8 const rk[],
49 u8 rk[13 * (8 * AES_BLOCK_SIZE) + 32] __aligned(AES_BLOCK_SIZE);
72 struct crypto_aes_ctx rk; in aesbs_setkey() local
75 err = aes_expandkey(&rk, in_key, key_len); in aesbs_setkey()
82 aesbs_convert_key(ctx->rk, rk.key_enc, ctx->rounds); in aesbs_setkey()
89 void (*fn)(u8 out[], u8 const in[], u8 const rk[], in __ecb_crypt() argument
107 fn(walk.dst.virt.addr, walk.src.virt.addr, ctx->rk, in __ecb_crypt()
131 struct crypto_aes_ctx rk; in aesbs_cbc_setkey() local
134 err = aes_expandkey(&rk, in_key, key_len); in aesbs_cbc_setkey()
141 aesbs_convert_key(ctx->key.rk, rk.key_enc, ctx->key.rounds); in aesbs_cbc_setkey()
143 memzero_explicit(&rk, sizeof(rk)); in aesbs_cbc_setkey()
182 ctx->key.rk, ctx->key.rounds, blocks, in cbc_decrypt()
229 aesbs_convert_key(ctx->key.rk, ctx->fallback.key_enc, ctx->key.rounds); in aesbs_ctr_setkey_sync()
257 aesbs_ctr_encrypt(dst, src, ctx->rk, ctx->rounds, bytes, walk.iv); in ctr_encrypt()
338 void (*fn)(u8 out[], u8 const in[], u8 const rk[], in __xts_crypt() argument
379 fn(walk.dst.virt.addr, walk.src.virt.addr, ctx->key.rk, in __xts_crypt()