Lines Matching refs:tfm

50 static int simd_skcipher_setkey(struct crypto_skcipher *tfm, const u8 *key,  in simd_skcipher_setkey()  argument
53 struct simd_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm); in simd_skcipher_setkey()
57 crypto_skcipher_set_flags(child, crypto_skcipher_get_flags(tfm) & in simd_skcipher_setkey()
64 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in simd_skcipher_encrypt() local
65 struct simd_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm); in simd_skcipher_encrypt()
85 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req); in simd_skcipher_decrypt() local
86 struct simd_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm); in simd_skcipher_decrypt()
104 static void simd_skcipher_exit(struct crypto_skcipher *tfm) in simd_skcipher_exit() argument
106 struct simd_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm); in simd_skcipher_exit()
111 static int simd_skcipher_init(struct crypto_skcipher *tfm) in simd_skcipher_init() argument
113 struct simd_skcipher_ctx *ctx = crypto_skcipher_ctx(tfm); in simd_skcipher_init()
119 alg = crypto_skcipher_alg(tfm); in simd_skcipher_init()
134 crypto_skcipher_set_reqsize(tfm, reqsize); in simd_skcipher_init()
268 static int simd_aead_setkey(struct crypto_aead *tfm, const u8 *key, in simd_aead_setkey() argument
271 struct simd_aead_ctx *ctx = crypto_aead_ctx(tfm); in simd_aead_setkey()
275 crypto_aead_set_flags(child, crypto_aead_get_flags(tfm) & in simd_aead_setkey()
280 static int simd_aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in simd_aead_setauthsize() argument
282 struct simd_aead_ctx *ctx = crypto_aead_ctx(tfm); in simd_aead_setauthsize()
290 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in simd_aead_encrypt() local
291 struct simd_aead_ctx *ctx = crypto_aead_ctx(tfm); in simd_aead_encrypt()
311 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in simd_aead_decrypt() local
312 struct simd_aead_ctx *ctx = crypto_aead_ctx(tfm); in simd_aead_decrypt()
330 static void simd_aead_exit(struct crypto_aead *tfm) in simd_aead_exit() argument
332 struct simd_aead_ctx *ctx = crypto_aead_ctx(tfm); in simd_aead_exit()
337 static int simd_aead_init(struct crypto_aead *tfm) in simd_aead_init() argument
339 struct simd_aead_ctx *ctx = crypto_aead_ctx(tfm); in simd_aead_init()
345 alg = crypto_aead_alg(tfm); in simd_aead_init()
359 crypto_aead_set_reqsize(tfm, reqsize); in simd_aead_init()