Lines Matching refs:rk
27 asmlinkage void aesbs_convert_key(u8 out[], u32 const rk[], int rounds);
29 asmlinkage void aesbs_ecb_encrypt(u8 out[], u8 const in[], u8 const rk[],
31 asmlinkage void aesbs_ecb_decrypt(u8 out[], u8 const in[], u8 const rk[],
34 asmlinkage void aesbs_cbc_decrypt(u8 out[], u8 const in[], u8 const rk[],
37 asmlinkage void aesbs_ctr_encrypt(u8 out[], u8 const in[], u8 const rk[],
40 asmlinkage void aesbs_xts_encrypt(u8 out[], u8 const in[], u8 const rk[],
42 asmlinkage void aesbs_xts_decrypt(u8 out[], u8 const in[], u8 const rk[],
46 asmlinkage void neon_aes_ecb_encrypt(u8 out[], u8 const in[], u32 const rk[],
48 asmlinkage void neon_aes_cbc_encrypt(u8 out[], u8 const in[], u32 const rk[],
50 asmlinkage void neon_aes_ctr_encrypt(u8 out[], u8 const in[], u32 const rk[],
60 u8 rk[13 * (8 * AES_BLOCK_SIZE) + 32]; member
79 struct crypto_aes_ctx rk; in aesbs_setkey() local
82 err = aes_expandkey(&rk, in_key, key_len); in aesbs_setkey()
89 aesbs_convert_key(ctx->rk, rk.key_enc, ctx->rounds); in aesbs_setkey()
96 void (*fn)(u8 out[], u8 const in[], u8 const rk[], in __ecb_crypt() argument
114 fn(walk.dst.virt.addr, walk.src.virt.addr, ctx->rk, in __ecb_crypt()
138 struct crypto_aes_ctx rk; in aesbs_cbc_ctr_setkey() local
141 err = aes_expandkey(&rk, in_key, key_len); in aesbs_cbc_ctr_setkey()
147 memcpy(ctx->enc, rk.key_enc, sizeof(ctx->enc)); in aesbs_cbc_ctr_setkey()
150 aesbs_convert_key(ctx->key.rk, rk.key_enc, ctx->key.rounds); in aesbs_cbc_ctr_setkey()
152 memzero_explicit(&rk, sizeof(rk)); in aesbs_cbc_ctr_setkey()
198 ctx->key.rk, ctx->key.rounds, blocks, in cbc_decrypt()
225 aesbs_ctr_encrypt(dst, src, ctx->key.rk, ctx->key.rounds, in ctr_encrypt()
256 struct crypto_aes_ctx rk; in aesbs_xts_setkey() local
268 err = aes_expandkey(&rk, in_key + key_len, key_len); in aesbs_xts_setkey()
272 memcpy(ctx->twkey, rk.key_enc, sizeof(ctx->twkey)); in aesbs_xts_setkey()
278 void (*fn)(u8 out[], u8 const in[], u8 const rk[], in __xts_crypt() argument
330 fn(out, in, ctx->key.rk, ctx->key.rounds, blocks, in __xts_crypt()