Lines Matching refs:n2alg

416 	struct n2_hmac_alg *n2alg = n2_hmac_alg(tfm);  in n2_hmac_cra_init()  local
430 child_shash = crypto_alloc_shash(n2alg->child_alg, 0, 0); in n2_hmac_cra_init()
433 n2alg->child_alg); in n2_hmac_cra_init()
611 struct n2_ahash_alg *n2alg = n2_ahash_alg(req->base.tfm); in n2_hash_async_digest() local
615 ds = n2alg->digest_size; in n2_hash_async_digest()
617 memcpy(req->result, n2alg->hash_zero, ds); in n2_hash_async_digest()
620 memcpy(&rctx->u, n2alg->hash_init, n2alg->hw_op_hashsz); in n2_hash_async_digest()
622 return n2_do_async_digest(req, n2alg->auth_type, in n2_hash_async_digest()
623 n2alg->hw_op_hashsz, ds, in n2_hash_async_digest()
629 struct n2_hmac_alg *n2alg = n2_hmac_alg(req->base.tfm); in n2_hmac_async_digest() local
635 ds = n2alg->derived.digest_size; in n2_hmac_async_digest()
650 memcpy(&rctx->u, n2alg->derived.hash_init, in n2_hmac_async_digest()
651 n2alg->derived.hw_op_hashsz); in n2_hmac_async_digest()
653 return n2_do_async_digest(req, n2alg->derived.hmac_type, in n2_hmac_async_digest()
654 n2alg->derived.hw_op_hashsz, ds, in n2_hmac_async_digest()
732 struct n2_skcipher_alg *n2alg = n2_skcipher_alg(skcipher); in n2_aes_setkey() local
734 ctx->enc_type = (n2alg->enc_type & ENC_TYPE_CHAINING_MASK); in n2_aes_setkey()
760 struct n2_skcipher_alg *n2alg = n2_skcipher_alg(skcipher); in n2_des_setkey() local
767 ctx->enc_type = n2alg->enc_type; in n2_des_setkey()
779 struct n2_skcipher_alg *n2alg = n2_skcipher_alg(skcipher); in n2_3des_setkey() local
786 ctx->enc_type = n2alg->enc_type; in n2_3des_setkey()