Lines Matching refs:tfm
97 static inline struct aes_ctx *aes_ctx(struct crypto_tfm *tfm)
99 return aes_ctx_common(crypto_tfm_ctx(tfm));
102 static inline struct aes_ctx *skcipher_aes_ctx(struct crypto_skcipher *tfm)
104 return aes_ctx_common(crypto_skcipher_ctx(tfm));
107 static int aes_set_key(struct crypto_tfm *tfm, const u8 *in_key,
110 struct aes_ctx *ctx = aes_ctx(tfm);
162 static int aes_set_key_skcipher(struct crypto_skcipher *tfm, const u8 *in_key,
165 return aes_set_key(crypto_skcipher_tfm(tfm), in_key, key_len);
306 static void padlock_aes_encrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in)
308 struct aes_ctx *ctx = aes_ctx(tfm);
315 static void padlock_aes_decrypt(struct crypto_tfm *tfm, u8 *out, const u8 *in)
317 struct aes_ctx *ctx = aes_ctx(tfm);
346 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
347 struct aes_ctx *ctx = skcipher_aes_ctx(tfm);
371 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
372 struct aes_ctx *ctx = skcipher_aes_ctx(tfm);
411 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
412 struct aes_ctx *ctx = skcipher_aes_ctx(tfm);
438 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
439 struct aes_ctx *ctx = skcipher_aes_ctx(tfm);