Searched refs:fallback_tfm (Results 1 - 25 of 25) sorted by relevance

/linux-master/drivers/crypto/gemini/
H A Dsl3516-ce-cipher.c115 skcipher_request_set_tfm(&rctx->fallback_req, op->fallback_tfm);
328 op->fallback_tfm = crypto_alloc_skcipher(name, 0, CRYPTO_ALG_NEED_FALLBACK);
329 if (IS_ERR(op->fallback_tfm)) {
331 name, PTR_ERR(op->fallback_tfm));
332 return PTR_ERR(op->fallback_tfm);
336 crypto_skcipher_reqsize(op->fallback_tfm));
340 crypto_tfm_alg_driver_name(crypto_skcipher_tfm(op->fallback_tfm)));
349 crypto_free_skcipher(op->fallback_tfm);
358 crypto_free_skcipher(op->fallback_tfm);
385 crypto_skcipher_clear_flags(op->fallback_tfm, CRYPTO_TFM_REQ_MAS
[all...]
H A Dsl3516-ce.h297 * @fallback_tfm: pointer to the fallback TFM
303 struct crypto_skcipher *fallback_tfm; member in struct:sl3516_ce_cipher_tfm_ctx
/linux-master/drivers/crypto/rockchip/
H A Drk3288_crypto_ahash.c54 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm);
126 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm);
139 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm);
154 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm);
168 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm);
185 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm);
198 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm);
352 tctx->fallback_tfm = crypto_alloc_ahash(alg_name, 0,
354 if (IS_ERR(tctx->fallback_tfm)) {
356 return PTR_ERR(tctx->fallback_tfm);
[all...]
H A Drk3288_crypto_skcipher.c79 skcipher_request_set_tfm(&rctx->fallback_req, op->fallback_tfm);
120 return crypto_skcipher_setkey(ctx->fallback_tfm, key, keylen);
136 return crypto_skcipher_setkey(ctx->fallback_tfm, key, keylen);
152 return crypto_skcipher_setkey(ctx->fallback_tfm, key, keylen);
441 ctx->fallback_tfm = crypto_alloc_skcipher(name, 0, CRYPTO_ALG_NEED_FALLBACK);
442 if (IS_ERR(ctx->fallback_tfm)) {
444 name, PTR_ERR(ctx->fallback_tfm));
445 return PTR_ERR(ctx->fallback_tfm);
449 crypto_skcipher_reqsize(ctx->fallback_tfm));
459 crypto_free_skcipher(ctx->fallback_tfm);
[all...]
H A Drk3288_crypto.h232 struct crypto_ahash *fallback_tfm; member in struct:rk_ahash_ctx
248 struct crypto_skcipher *fallback_tfm; member in struct:rk_cipher_ctx
/linux-master/drivers/crypto/allwinner/sun8i-ss/
H A Dsun8i-ss-cipher.c108 skcipher_request_set_tfm(&rctx->fallback_req, op->fallback_tfm);
401 op->fallback_tfm = crypto_alloc_skcipher(name, 0, CRYPTO_ALG_NEED_FALLBACK);
402 if (IS_ERR(op->fallback_tfm)) {
404 name, PTR_ERR(op->fallback_tfm));
405 return PTR_ERR(op->fallback_tfm);
409 crypto_skcipher_reqsize(op->fallback_tfm));
412 crypto_tfm_alg_driver_name(crypto_skcipher_tfm(op->fallback_tfm)),
423 crypto_free_skcipher(op->fallback_tfm);
432 crypto_free_skcipher(op->fallback_tfm);
459 crypto_skcipher_clear_flags(op->fallback_tfm, CRYPTO_TFM_REQ_MAS
[all...]
H A Dsun8i-ss-hash.c84 ret = crypto_ahash_setkey(tfmctx->fallback_tfm, key, keylen);
106 op->fallback_tfm = crypto_alloc_ahash(crypto_ahash_alg_name(tfm), 0,
108 if (IS_ERR(op->fallback_tfm)) {
110 return PTR_ERR(op->fallback_tfm);
114 crypto_ahash_statesize(op->fallback_tfm));
118 crypto_ahash_reqsize(op->fallback_tfm));
120 memcpy(algt->fbname, crypto_ahash_driver_name(op->fallback_tfm),
129 crypto_free_ahash(op->fallback_tfm);
140 crypto_free_ahash(tfmctx->fallback_tfm);
152 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm);
[all...]
H A Dsun8i-ss.h207 * @fallback_tfm: pointer to the fallback TFM
213 struct crypto_skcipher *fallback_tfm; member in struct:sun8i_cipher_tfm_ctx
228 * @fallback_tfm: pointer to the fallback TFM
232 struct crypto_ahash *fallback_tfm; member in struct:sun8i_ss_hash_tfm_ctx
/linux-master/drivers/crypto/allwinner/sun8i-ce/
H A Dsun8i-ce-cipher.c108 skcipher_request_set_tfm(&rctx->fallback_req, op->fallback_tfm);
427 op->fallback_tfm = crypto_alloc_skcipher(name, 0, CRYPTO_ALG_NEED_FALLBACK);
428 if (IS_ERR(op->fallback_tfm)) {
430 name, PTR_ERR(op->fallback_tfm));
431 return PTR_ERR(op->fallback_tfm);
435 crypto_skcipher_reqsize(op->fallback_tfm));
438 crypto_tfm_alg_driver_name(crypto_skcipher_tfm(op->fallback_tfm)),
448 crypto_free_skcipher(op->fallback_tfm);
457 crypto_free_skcipher(op->fallback_tfm);
484 crypto_skcipher_clear_flags(op->fallback_tfm, CRYPTO_TFM_REQ_MAS
[all...]
H A Dsun8i-ce-hash.c37 op->fallback_tfm = crypto_alloc_ahash(crypto_ahash_alg_name(tfm), 0,
39 if (IS_ERR(op->fallback_tfm)) {
41 return PTR_ERR(op->fallback_tfm);
45 crypto_ahash_statesize(op->fallback_tfm));
49 crypto_ahash_reqsize(op->fallback_tfm));
51 memcpy(algt->fbname, crypto_ahash_driver_name(op->fallback_tfm),
60 crypto_free_ahash(op->fallback_tfm);
68 crypto_free_ahash(tfmctx->fallback_tfm);
80 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm);
92 ahash_request_set_tfm(&rctx->fallback_req, tfmctx->fallback_tfm);
[all...]
H A Dsun8i-ce.h271 * @fallback_tfm: pointer to the fallback TFM
277 struct crypto_skcipher *fallback_tfm; member in struct:sun8i_cipher_tfm_ctx
283 * @fallback_tfm: pointer to the fallback TFM
287 struct crypto_ahash *fallback_tfm; member in struct:sun8i_ce_hash_tfm_ctx
/linux-master/drivers/crypto/xilinx/
H A Dzynqmp-sha.c51 struct crypto_shash *fallback_tfm; local
58 fallback_tfm = crypto_alloc_shash(fallback_driver_name, 0,
60 if (IS_ERR(fallback_tfm))
61 return PTR_ERR(fallback_tfm);
63 tfm_ctx->fbk_tfm = fallback_tfm;
/linux-master/drivers/crypto/ccp/
H A Dccp-crypto-aes-xts.c200 struct crypto_skcipher *fallback_tfm; local
205 fallback_tfm = crypto_alloc_skcipher("xts(aes)", 0,
207 if (IS_ERR(fallback_tfm)) {
209 return PTR_ERR(fallback_tfm);
211 ctx->u.aes.tfm_skcipher = fallback_tfm;
215 crypto_skcipher_reqsize(fallback_tfm));
/linux-master/drivers/crypto/amlogic/
H A Damlogic-gxl-cipher.c71 skcipher_request_set_tfm(&rctx->fallback_req, op->fallback_tfm);
323 op->fallback_tfm = crypto_alloc_skcipher(name, 0, CRYPTO_ALG_NEED_FALLBACK);
324 if (IS_ERR(op->fallback_tfm)) {
326 name, PTR_ERR(op->fallback_tfm));
327 return PTR_ERR(op->fallback_tfm);
331 crypto_skcipher_reqsize(op->fallback_tfm));
341 crypto_free_skcipher(op->fallback_tfm);
370 return crypto_skcipher_setkey(op->fallback_tfm, key, keylen);
H A Damlogic-gxl.h121 * @fallback_tfm: pointer to the fallback TFM
128 struct crypto_skcipher *fallback_tfm; member in struct:meson_cipher_tfm_ctx
/linux-master/drivers/crypto/allwinner/sun4i-ss/
H A Dsun4i-ss-cipher.c162 skcipher_request_set_tfm(&ctx->fallback_req, op->fallback_tfm);
547 op->fallback_tfm = crypto_alloc_skcipher(name, 0, CRYPTO_ALG_NEED_FALLBACK);
548 if (IS_ERR(op->fallback_tfm)) {
550 name, PTR_ERR(op->fallback_tfm));
551 return PTR_ERR(op->fallback_tfm);
556 crypto_skcipher_reqsize(op->fallback_tfm));
564 crypto_free_skcipher(op->fallback_tfm);
572 crypto_free_skcipher(op->fallback_tfm);
600 crypto_skcipher_clear_flags(op->fallback_tfm, CRYPTO_TFM_REQ_MASK);
601 crypto_skcipher_set_flags(op->fallback_tfm, tf
[all...]
H A Dsun4i-ss.h181 struct crypto_skcipher *fallback_tfm; member in struct:sun4i_tfm_ctx
/linux-master/drivers/crypto/
H A Dn2_core.c288 struct crypto_ahash *fallback_tfm; member in struct:n2_hash_ctx
318 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm);
330 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm);
344 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm);
357 ahash_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm);
381 struct crypto_ahash *fallback_tfm; local
384 fallback_tfm = crypto_alloc_ahash(fallback_driver_name, 0,
386 if (IS_ERR(fallback_tfm)) {
389 err = PTR_ERR(fallback_tfm);
394 crypto_ahash_reqsize(fallback_tfm)));
417 struct crypto_ahash *fallback_tfm; local
466 struct crypto_ahash *fallback_tfm; local
[all...]
H A Dpadlock-sha.c198 struct crypto_shash *fallback_tfm; local
201 fallback_tfm = crypto_alloc_shash(fallback_driver_name, 0,
203 if (IS_ERR(fallback_tfm)) {
206 return PTR_ERR(fallback_tfm);
209 ctx->fallback = fallback_tfm;
210 hash->descsize += crypto_shash_descsize(fallback_tfm);
H A Datmel-aes.c134 struct crypto_skcipher *fallback_tfm; member in struct:atmel_aes_xts_ctx
1051 skcipher_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm);
1687 crypto_skcipher_clear_flags(ctx->fallback_tfm, CRYPTO_TFM_REQ_MASK);
1688 crypto_skcipher_set_flags(ctx->fallback_tfm, tfm->base.crt_flags &
1690 err = crypto_skcipher_setkey(ctx->fallback_tfm, key, keylen);
1721 ctx->fallback_tfm = crypto_alloc_skcipher(tfm_name, 0,
1723 if (IS_ERR(ctx->fallback_tfm))
1724 return PTR_ERR(ctx->fallback_tfm);
1727 crypto_skcipher_reqsize(ctx->fallback_tfm));
1738 crypto_free_skcipher(ctx->fallback_tfm);
[all...]
/linux-master/drivers/crypto/aspeed/
H A Daspeed-acry.c126 struct crypto_akcipher *fallback_tfm; member in struct:aspeed_acry_ctx
152 akcipher_request_set_tfm(req, ctx->fallback_tfm);
539 ret = crypto_akcipher_set_pub_key(ctx->fallback_tfm, key, keylen);
553 ret = crypto_akcipher_set_priv_key(ctx->fallback_tfm, key, keylen);
565 return crypto_akcipher_maxsize(ctx->fallback_tfm);
581 ctx->fallback_tfm = crypto_alloc_akcipher(name, 0, CRYPTO_ALG_ASYNC |
583 if (IS_ERR(ctx->fallback_tfm)) {
585 name, PTR_ERR(ctx->fallback_tfm));
586 return PTR_ERR(ctx->fallback_tfm);
596 crypto_free_akcipher(ctx->fallback_tfm);
[all...]
H A Daspeed-hace-crypto.c34 skcipher_request_set_tfm(&rctx->fallback_req, ctx->fallback_tfm);
457 crypto_skcipher_clear_flags(ctx->fallback_tfm, CRYPTO_TFM_REQ_MASK);
458 crypto_skcipher_set_flags(ctx->fallback_tfm, cipher->base.crt_flags &
461 return crypto_skcipher_setkey(ctx->fallback_tfm, key, keylen);
597 crypto_skcipher_clear_flags(ctx->fallback_tfm, CRYPTO_TFM_REQ_MASK);
598 crypto_skcipher_set_flags(ctx->fallback_tfm, cipher->base.crt_flags &
601 return crypto_skcipher_setkey(ctx->fallback_tfm, key, keylen);
648 ctx->fallback_tfm = crypto_alloc_skcipher(name, 0, CRYPTO_ALG_ASYNC |
650 if (IS_ERR(ctx->fallback_tfm)) {
652 name, PTR_ERR(ctx->fallback_tfm));
[all...]
H A Daspeed-hace.h233 struct crypto_skcipher *fallback_tfm; member in struct:aspeed_cipher_ctx
/linux-master/drivers/crypto/ccree/
H A Dcc_cipher.c58 struct crypto_skcipher *fallback_tfm; member in struct:cc_cipher_ctx
183 ctx_p->fallback_tfm =
186 if (IS_ERR(ctx_p->fallback_tfm)) {
192 ctx_p->fallback_tfm = NULL;
194 fallback_req_size = crypto_skcipher_reqsize(ctx_p->fallback_tfm);
226 crypto_free_skcipher(ctx_p->fallback_tfm);
249 crypto_free_skcipher(ctx_p->fallback_tfm);
250 ctx_p->fallback_tfm = NULL;
429 if (likely(ctx_p->fallback_tfm)) {
431 crypto_skcipher_clear_flags(ctx_p->fallback_tfm,
[all...]
/linux-master/drivers/crypto/intel/ixp4xx/
H A Dixp4xx_crypto.c190 struct crypto_skcipher *fallback_tfm; member in struct:ixp_ctx
636 ctx->fallback_tfm = crypto_alloc_skcipher(name, 0, CRYPTO_ALG_NEED_FALLBACK);
637 if (IS_ERR(ctx->fallback_tfm)) {
639 name, PTR_ERR(ctx->fallback_tfm));
640 return PTR_ERR(ctx->fallback_tfm);
645 crypto_tfm_alg_driver_name(crypto_skcipher_tfm(ctx->fallback_tfm))
648 crypto_skcipher_set_reqsize(tfm, sizeof(struct ablk_ctx) + crypto_skcipher_reqsize(ctx->fallback_tfm));
671 crypto_free_skcipher(ctx->fallback_tfm);
925 crypto_skcipher_clear_flags(ctx->fallback_tfm, CRYPTO_TFM_REQ_MASK);
926 crypto_skcipher_set_flags(ctx->fallback_tfm, tf
[all...]

Completed in 194 milliseconds