Lines Matching refs:rk
28 asmlinkage void aesbs_convert_key(u8 out[], u32 const rk[], int rounds);
30 asmlinkage void aesbs_ecb_encrypt(u8 out[], u8 const in[], u8 const rk[],
32 asmlinkage void aesbs_ecb_decrypt(u8 out[], u8 const in[], u8 const rk[],
35 asmlinkage void aesbs_cbc_decrypt(u8 out[], u8 const in[], u8 const rk[],
38 asmlinkage void aesbs_ctr_encrypt(u8 out[], u8 const in[], u8 const rk[],
41 asmlinkage void aesbs_xts_encrypt(u8 out[], u8 const in[], u8 const rk[],
43 asmlinkage void aesbs_xts_decrypt(u8 out[], u8 const in[], u8 const rk[],
48 u8 rk[13 * (8 * AES_BLOCK_SIZE) + 32] __aligned(AES_BLOCK_SIZE);
71 struct crypto_aes_ctx rk; in aesbs_setkey() local
74 err = aes_expandkey(&rk, in_key, key_len); in aesbs_setkey()
81 aesbs_convert_key(ctx->rk, rk.key_enc, ctx->rounds); in aesbs_setkey()
88 void (*fn)(u8 out[], u8 const in[], u8 const rk[], in __ecb_crypt() argument
106 fn(walk.dst.virt.addr, walk.src.virt.addr, ctx->rk, in __ecb_crypt()
139 aesbs_convert_key(ctx->key.rk, ctx->fallback.key_enc, ctx->key.rounds); in aesbs_cbc_setkey()
193 ctx->key.rk, ctx->key.rounds, blocks, in cbc_decrypt()
216 aesbs_convert_key(ctx->key.rk, ctx->fallback.key_enc, ctx->key.rounds); in aesbs_ctr_setkey_sync()
244 aesbs_ctr_encrypt(dst, src, ctx->rk, ctx->rounds, bytes, walk.iv); in ctr_encrypt()
294 void (*fn)(u8 out[], u8 const in[], u8 const rk[], in __xts_crypt() argument
336 fn(walk.dst.virt.addr, walk.src.virt.addr, ctx->key.rk, in __xts_crypt()