Lines Matching refs:alg
325 cipher_parms.alg = ctx->cipher.alg; in handle_skcipher_req()
415 0, ctx->auth.alg, ctx->auth.mode, in handle_skcipher_req()
502 &iproc_priv.cipher_cnt[ctx->cipher.alg][ctx->cipher.mode]); in handle_skcipher_resp()
704 hash_parms.alg = ctx->auth.alg; in handle_ahash_req()
773 if (hash_parms.alg == HASH_ALG_AES) in handle_ahash_req()
778 digestsize = spu->spu_digest_size(ctx->digestsize, ctx->auth.alg, in handle_ahash_req()
788 hash_parms.pad_len = spu->spu_hash_pad_len(hash_parms.alg, in handle_ahash_req()
798 (hash_parms.alg != HASH_ALG_AES)) { in handle_ahash_req()
845 hash_parms.pad_len, ctx->auth.alg, in handle_ahash_req()
905 switch (ctx->auth.alg) { in spu_hmac_outer_hash()
958 if (ctx->auth.alg == HASH_ALG_MD5) { in ahash_req_done()
979 atomic_inc(&iproc_priv.hmac_cnt[ctx->auth.alg]); in ahash_req_done()
982 atomic_inc(&iproc_priv.hash_cnt[ctx->auth.alg]); in ahash_req_done()
1301 cipher_parms.alg = ctx->cipher.alg; in handle_aead_req()
1309 hash_parms.alg = ctx->auth.alg; in handle_aead_req()
1316 if ((ctx->auth.alg == HASH_ALG_SHA224) && in handle_aead_req()
1363 if (ctx->auth.alg == HASH_ALG_AES) in handle_aead_req()
1452 ctx->auth.alg, ctx->auth.mode, in handle_aead_req()
1570 if (ctx->cipher.alg == CIPHER_ALG_AES) { in handle_aead_resp()
1650 switch (rctx->ctx->alg->type) { in spu_rx_callback()
1673 switch (rctx->ctx->alg->type) { in spu_rx_callback()
1831 switch (ctx->cipher.alg) { in skcipher_setkey()
1852 if ((ctx->cipher.alg == CIPHER_ALG_AES) && in skcipher_setkey()
1869 cipher_parms.alg = ctx->cipher.alg; in skcipher_setkey()
2009 if ((ctx->auth.alg == HASH_ALG_AES) && in spu_no_incr_hash()
2261 if (ctx->auth.alg == HASH_ALG_AES) { in ahash_setkey()
2331 switch (ctx->auth.alg) { in ahash_hmac_setkey()
2378 __func__, rc, hash_alg_name[ctx->auth.alg]); in ahash_hmac_setkey()
2553 ctx->cipher.alg == CIPHER_ALG_AES && in aead_need_fallback()
2785 switch (ctx->alg->cipher_info.alg) { in aead_authenc_setkey()
3064 .alg.aead = {
3076 .alg = CIPHER_ALG_AES,
3080 .alg = HASH_ALG_AES,
3087 .alg.aead = {
3099 .alg = CIPHER_ALG_AES,
3103 .alg = HASH_ALG_AES,
3110 .alg.aead = {
3122 .alg = CIPHER_ALG_AES,
3126 .alg = HASH_ALG_AES,
3133 .alg.aead = {
3145 .alg = CIPHER_ALG_AES,
3149 .alg = HASH_ALG_AES,
3156 .alg.aead = {
3168 .alg = CIPHER_ALG_AES,
3172 .alg = HASH_ALG_AES,
3179 .alg.aead = {
3193 .alg = CIPHER_ALG_AES,
3197 .alg = HASH_ALG_MD5,
3204 .alg.aead = {
3218 .alg = CIPHER_ALG_AES,
3222 .alg = HASH_ALG_SHA1,
3229 .alg.aead = {
3243 .alg = CIPHER_ALG_AES,
3247 .alg = HASH_ALG_SHA256,
3254 .alg.aead = {
3268 .alg = CIPHER_ALG_DES,
3272 .alg = HASH_ALG_MD5,
3279 .alg.aead = {
3293 .alg = CIPHER_ALG_DES,
3297 .alg = HASH_ALG_SHA1,
3304 .alg.aead = {
3318 .alg = CIPHER_ALG_DES,
3322 .alg = HASH_ALG_SHA224,
3329 .alg.aead = {
3343 .alg = CIPHER_ALG_DES,
3347 .alg = HASH_ALG_SHA256,
3354 .alg.aead = {
3368 .alg = CIPHER_ALG_DES,
3372 .alg = HASH_ALG_SHA384,
3379 .alg.aead = {
3393 .alg = CIPHER_ALG_DES,
3397 .alg = HASH_ALG_SHA512,
3404 .alg.aead = {
3418 .alg = CIPHER_ALG_3DES,
3422 .alg = HASH_ALG_MD5,
3429 .alg.aead = {
3443 .alg = CIPHER_ALG_3DES,
3447 .alg = HASH_ALG_SHA1,
3454 .alg.aead = {
3468 .alg = CIPHER_ALG_3DES,
3472 .alg = HASH_ALG_SHA224,
3479 .alg.aead = {
3493 .alg = CIPHER_ALG_3DES,
3497 .alg = HASH_ALG_SHA256,
3504 .alg.aead = {
3518 .alg = CIPHER_ALG_3DES,
3522 .alg = HASH_ALG_SHA384,
3529 .alg.aead = {
3543 .alg = CIPHER_ALG_3DES,
3547 .alg = HASH_ALG_SHA512,
3556 .alg.skcipher = {
3565 .alg = CIPHER_ALG_DES,
3569 .alg = HASH_ALG_NONE,
3575 .alg.skcipher = {
3584 .alg = CIPHER_ALG_DES,
3588 .alg = HASH_ALG_NONE,
3594 .alg.skcipher = {
3603 .alg = CIPHER_ALG_DES,
3607 .alg = HASH_ALG_NONE,
3613 .alg.skcipher = {
3622 .alg = CIPHER_ALG_3DES,
3626 .alg = HASH_ALG_NONE,
3632 .alg.skcipher = {
3641 .alg = CIPHER_ALG_3DES,
3645 .alg = HASH_ALG_NONE,
3651 .alg.skcipher = {
3660 .alg = CIPHER_ALG_3DES,
3664 .alg = HASH_ALG_NONE,
3670 .alg.skcipher = {
3679 .alg = CIPHER_ALG_AES,
3683 .alg = HASH_ALG_NONE,
3689 .alg.skcipher = {
3698 .alg = CIPHER_ALG_AES,
3702 .alg = HASH_ALG_NONE,
3708 .alg.skcipher = {
3717 .alg = CIPHER_ALG_AES,
3721 .alg = HASH_ALG_NONE,
3727 .alg.skcipher = {
3736 .alg = CIPHER_ALG_AES,
3740 .alg = HASH_ALG_NONE,
3746 .alg.skcipher = {
3755 .alg = CIPHER_ALG_AES,
3759 .alg = HASH_ALG_NONE,
3767 .alg.hash = {
3778 .alg = CIPHER_ALG_NONE,
3782 .alg = HASH_ALG_MD5,
3788 .alg.hash = {
3797 .alg = CIPHER_ALG_NONE,
3801 .alg = HASH_ALG_MD5,
3806 .alg.hash = {
3815 .alg = CIPHER_ALG_NONE,
3819 .alg = HASH_ALG_SHA1,
3824 .alg.hash = {
3833 .alg = CIPHER_ALG_NONE,
3837 .alg = HASH_ALG_SHA1,
3842 .alg.hash = {
3851 .alg = CIPHER_ALG_NONE,
3855 .alg = HASH_ALG_SHA224,
3860 .alg.hash = {
3869 .alg = CIPHER_ALG_NONE,
3873 .alg = HASH_ALG_SHA224,
3878 .alg.hash = {
3887 .alg = CIPHER_ALG_NONE,
3891 .alg = HASH_ALG_SHA256,
3896 .alg.hash = {
3905 .alg = CIPHER_ALG_NONE,
3909 .alg = HASH_ALG_SHA256,
3915 .alg.hash = {
3924 .alg = CIPHER_ALG_NONE,
3928 .alg = HASH_ALG_SHA384,
3934 .alg.hash = {
3943 .alg = CIPHER_ALG_NONE,
3947 .alg = HASH_ALG_SHA384,
3953 .alg.hash = {
3962 .alg = CIPHER_ALG_NONE,
3966 .alg = HASH_ALG_SHA512,
3972 .alg.hash = {
3981 .alg = CIPHER_ALG_NONE,
3985 .alg = HASH_ALG_SHA512,
3991 .alg.hash = {
4000 .alg = CIPHER_ALG_NONE,
4004 .alg = HASH_ALG_SHA3_224,
4010 .alg.hash = {
4019 .alg = CIPHER_ALG_NONE,
4023 .alg = HASH_ALG_SHA3_224,
4029 .alg.hash = {
4038 .alg = CIPHER_ALG_NONE,
4042 .alg = HASH_ALG_SHA3_256,
4048 .alg.hash = {
4057 .alg = CIPHER_ALG_NONE,
4061 .alg = HASH_ALG_SHA3_256,
4067 .alg.hash = {
4076 .alg = CIPHER_ALG_NONE,
4080 .alg = HASH_ALG_SHA3_384,
4086 .alg.hash = {
4095 .alg = CIPHER_ALG_NONE,
4099 .alg = HASH_ALG_SHA3_384,
4105 .alg.hash = {
4114 .alg = CIPHER_ALG_NONE,
4118 .alg = HASH_ALG_SHA3_512,
4124 .alg.hash = {
4133 .alg = CIPHER_ALG_NONE,
4137 .alg = HASH_ALG_SHA3_512,
4143 .alg.hash = {
4152 .alg = CIPHER_ALG_NONE,
4156 .alg = HASH_ALG_AES,
4162 .alg.hash = {
4171 .alg = CIPHER_ALG_NONE,
4175 .alg = HASH_ALG_AES,
4190 ctx->alg = cipher_alg; in generic_cra_init()
4194 ctx->max_payload = spu->spu_ctx_max_payload(ctx->cipher.alg, in generic_cra_init()
4211 struct skcipher_alg *alg = crypto_skcipher_alg(skcipher); in skcipher_init_tfm() local
4218 cipher_alg = container_of(alg, struct iproc_alg_s, alg.skcipher); in skcipher_init_tfm()
4225 struct crypto_alg *alg = tfm->__crt_alg; in ahash_cra_init() local
4228 cipher_alg = container_of(__crypto_ahash_alg(alg), struct iproc_alg_s, in ahash_cra_init()
4229 alg.hash); in ahash_cra_init()
4248 struct crypto_alg *alg = tfm->__crt_alg; in aead_cra_init() local
4249 struct aead_alg *aalg = container_of(alg, struct aead_alg, base); in aead_cra_init()
4251 alg.aead); in aead_cra_init()
4267 if (alg->cra_flags & CRYPTO_ALG_NEED_FALLBACK) { in aead_cra_init()
4271 crypto_alloc_aead(alg->cra_name, 0, in aead_cra_init()
4276 __func__, alg->cra_name); in aead_cra_init()
4458 struct skcipher_alg *crypto = &driver_alg->alg.skcipher; in spu_register_skcipher()
4486 struct ahash_alg *hash = &driver_alg->alg.hash; in spu_register_ahash()
4490 if ((driver_alg->auth_info.alg == HASH_ALG_AES) && in spu_register_ahash()
4496 if ((driver_alg->auth_info.alg >= HASH_ALG_SHA3_224) && in spu_register_ahash()
4516 if ((driver_alg->auth_info.alg == HASH_ALG_AES) && in spu_register_ahash()
4543 struct aead_alg *aead = &driver_alg->alg.aead; in spu_register_aead()
4607 crypto_unregister_skcipher(&driver_algs[j].alg.skcipher); in spu_algs_register()
4611 crypto_unregister_ahash(&driver_algs[j].alg.hash); in spu_algs_register()
4615 crypto_unregister_aead(&driver_algs[j].alg.aead); in spu_algs_register()
4763 crypto_unregister_skcipher(&driver_algs[i].alg.skcipher); in bcm_spu_remove()
4765 driver_algs[i].alg.skcipher.base.cra_driver_name); in bcm_spu_remove()
4769 crypto_unregister_ahash(&driver_algs[i].alg.hash); in bcm_spu_remove()
4770 cdn = driver_algs[i].alg.hash.halg.base.cra_driver_name; in bcm_spu_remove()
4775 crypto_unregister_aead(&driver_algs[i].alg.aead); in bcm_spu_remove()
4777 driver_algs[i].alg.aead.base.cra_driver_name); in bcm_spu_remove()