Lines Matching refs:n2alg

397 	struct n2_hmac_alg *n2alg = n2_hmac_alg(tfm);  in n2_hmac_cra_init()  local
411 child_shash = crypto_alloc_shash(n2alg->child_alg, 0, 0); in n2_hmac_cra_init()
414 n2alg->child_alg); in n2_hmac_cra_init()
597 struct n2_ahash_alg *n2alg = n2_ahash_alg(req->base.tfm); in n2_hash_async_digest() local
601 ds = n2alg->digest_size; in n2_hash_async_digest()
603 memcpy(req->result, n2alg->hash_zero, ds); in n2_hash_async_digest()
606 memcpy(&rctx->u, n2alg->hash_init, n2alg->hw_op_hashsz); in n2_hash_async_digest()
608 return n2_do_async_digest(req, n2alg->auth_type, in n2_hash_async_digest()
609 n2alg->hw_op_hashsz, ds, in n2_hash_async_digest()
615 struct n2_hmac_alg *n2alg = n2_hmac_alg(req->base.tfm); in n2_hmac_async_digest() local
621 ds = n2alg->derived.digest_size; in n2_hmac_async_digest()
636 memcpy(&rctx->u, n2alg->derived.hash_init, in n2_hmac_async_digest()
637 n2alg->derived.hw_op_hashsz); in n2_hmac_async_digest()
639 return n2_do_async_digest(req, n2alg->derived.hmac_type, in n2_hmac_async_digest()
640 n2alg->derived.hw_op_hashsz, ds, in n2_hmac_async_digest()
719 struct n2_cipher_alg *n2alg = n2_cipher_alg(tfm); in n2_aes_setkey() local
721 ctx->enc_type = (n2alg->enc_type & ENC_TYPE_CHAINING_MASK); in n2_aes_setkey()
748 struct n2_cipher_alg *n2alg = n2_cipher_alg(tfm); in n2_des_setkey() local
752 ctx->enc_type = n2alg->enc_type; in n2_des_setkey()
775 struct n2_cipher_alg *n2alg = n2_cipher_alg(tfm); in n2_3des_setkey() local
777 ctx->enc_type = n2alg->enc_type; in n2_3des_setkey()
793 struct n2_cipher_alg *n2alg = n2_cipher_alg(tfm); in n2_arc4_setkey() local
799 ctx->enc_type = n2alg->enc_type; in n2_arc4_setkey()