Searched refs:sw_cipher (Results 1 - 1 of 1) sorted by relevance
/linux-4.1.27/drivers/crypto/ |
H A D | picoxcell_crypto.c | 165 struct crypto_ablkcipher *sw_cipher; member in struct:spacc_ablk_ctx 175 struct crypto_aead *sw_cipher; member in struct:spacc_aead_ctx 481 ctx->sw_cipher->base.crt_flags &= ~CRYPTO_TFM_REQ_MASK; spacc_aead_aes_setkey() 482 ctx->sw_cipher->base.crt_flags |= spacc_aead_aes_setkey() 484 return crypto_aead_setkey(ctx->sw_cipher, key, len); spacc_aead_aes_setkey() 573 if (ctx->sw_cipher) { spacc_aead_do_fallback() 579 aead_request_set_tfm(req, ctx->sw_cipher); spacc_aead_do_fallback() 780 ctx->sw_cipher = crypto_alloc_aead(alg->cra_name, 0, spacc_aead_cra_init() 783 if (IS_ERR(ctx->sw_cipher)) { spacc_aead_cra_init() 786 ctx->sw_cipher = NULL; spacc_aead_cra_init() 806 if (ctx->sw_cipher) spacc_aead_cra_exit() 807 crypto_free_aead(ctx->sw_cipher); spacc_aead_cra_exit() 808 ctx->sw_cipher = NULL; spacc_aead_cra_exit() 861 ctx->sw_cipher) { spacc_aes_setkey() 866 ctx->sw_cipher->base.crt_flags &= ~CRYPTO_TFM_REQ_MASK; spacc_aes_setkey() 867 ctx->sw_cipher->base.crt_flags |= spacc_aes_setkey() 870 err = crypto_ablkcipher_setkey(ctx->sw_cipher, key, len); spacc_aes_setkey() 874 !ctx->sw_cipher) spacc_aes_setkey() 881 if (err && ctx->sw_cipher) { spacc_aes_setkey() 884 ctx->sw_cipher->base.crt_flags & CRYPTO_TFM_RES_MASK; spacc_aes_setkey() 984 if (!ctx->sw_cipher) spacc_ablk_do_fallback() 992 ablkcipher_request_set_tfm(req, ctx->sw_cipher); spacc_ablk_do_fallback() 1087 ctx->sw_cipher = crypto_alloc_ablkcipher(alg->cra_name, 0, spacc_ablk_cra_init() 1089 if (IS_ERR(ctx->sw_cipher)) { spacc_ablk_cra_init() 1092 ctx->sw_cipher = NULL; spacc_ablk_cra_init() 1107 if (ctx->sw_cipher) spacc_ablk_cra_exit() 1108 crypto_free_ablkcipher(ctx->sw_cipher); spacc_ablk_cra_exit() 1109 ctx->sw_cipher = NULL; spacc_ablk_cra_exit()
|
Completed in 70 milliseconds