Lines Matching refs:tfm
168 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key, in aes_set_key() argument
171 struct crypto_sparc64_aes_ctx *ctx = crypto_tfm_ctx(tfm); in aes_set_key()
199 static int aes_set_key_skcipher(struct crypto_skcipher *tfm, const u8 *in_key, in aes_set_key_skcipher() argument
202 return aes_set_key(crypto_skcipher_tfm(tfm), in_key, key_len); in aes_set_key_skcipher()
205 static void crypto_aes_encrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in crypto_aes_encrypt() argument
207 struct crypto_sparc64_aes_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_aes_encrypt()
212 static void crypto_aes_decrypt(struct crypto_tfm *tfm, u8 *dst, const u8 *src) in crypto_aes_decrypt() argument
214 struct crypto_sparc64_aes_ctx *ctx = crypto_tfm_ctx(tfm); in crypto_aes_decrypt()
221 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_encrypt() local
222 const struct crypto_sparc64_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in ecb_encrypt()
244 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ecb_decrypt() local
245 const struct crypto_sparc64_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in ecb_decrypt()
270 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_encrypt() local
271 const struct crypto_sparc64_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in cbc_encrypt()
294 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in cbc_decrypt() local
295 const struct crypto_sparc64_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in cbc_decrypt()
336 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in ctr_crypt() local
337 const struct crypto_sparc64_aes_ctx *ctx = crypto_skcipher_ctx(tfm); in ctr_crypt()