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()
144 struct crypto_skcipher *tfm; in simd_skcipher_create_compat() local
149 tfm = crypto_alloc_skcipher(basename, CRYPTO_ALG_INTERNAL, in simd_skcipher_create_compat()
151 if (IS_ERR(tfm)) in simd_skcipher_create_compat()
152 return ERR_CAST(tfm); in simd_skcipher_create_compat()
154 ialg = crypto_skcipher_alg(tfm); in simd_skcipher_create_compat()
199 crypto_free_skcipher(tfm); in simd_skcipher_create_compat()
290 static int simd_aead_setkey(struct crypto_aead *tfm, const u8 *key, in simd_aead_setkey() argument
293 struct simd_aead_ctx *ctx = crypto_aead_ctx(tfm); in simd_aead_setkey()
297 crypto_aead_set_flags(child, crypto_aead_get_flags(tfm) & in simd_aead_setkey()
302 static int simd_aead_setauthsize(struct crypto_aead *tfm, unsigned int authsize) in simd_aead_setauthsize() argument
304 struct simd_aead_ctx *ctx = crypto_aead_ctx(tfm); in simd_aead_setauthsize()
312 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in simd_aead_encrypt() local
313 struct simd_aead_ctx *ctx = crypto_aead_ctx(tfm); in simd_aead_encrypt()
333 struct crypto_aead *tfm = crypto_aead_reqtfm(req); in simd_aead_decrypt() local
334 struct simd_aead_ctx *ctx = crypto_aead_ctx(tfm); in simd_aead_decrypt()
352 static void simd_aead_exit(struct crypto_aead *tfm) in simd_aead_exit() argument
354 struct simd_aead_ctx *ctx = crypto_aead_ctx(tfm); in simd_aead_exit()
359 static int simd_aead_init(struct crypto_aead *tfm) in simd_aead_init() argument
361 struct simd_aead_ctx *ctx = crypto_aead_ctx(tfm); in simd_aead_init()
367 alg = crypto_aead_alg(tfm); in simd_aead_init()
381 crypto_aead_set_reqsize(tfm, reqsize); in simd_aead_init()
391 struct crypto_aead *tfm; in simd_aead_create_compat() local
396 tfm = crypto_alloc_aead(basename, CRYPTO_ALG_INTERNAL, in simd_aead_create_compat()
398 if (IS_ERR(tfm)) in simd_aead_create_compat()
399 return ERR_CAST(tfm); in simd_aead_create_compat()
401 ialg = crypto_aead_alg(tfm); in simd_aead_create_compat()
446 crypto_free_aead(tfm); in simd_aead_create_compat()