Lines Matching refs:tmpl
1388 static int __n2_register_one_cipher(const struct n2_cipher_tmpl *tmpl) in __n2_register_one_cipher() argument
1399 snprintf(alg->cra_name, CRYPTO_MAX_ALG_NAME, "%s", tmpl->name); in __n2_register_one_cipher()
1400 snprintf(alg->cra_driver_name, CRYPTO_MAX_ALG_NAME, "%s-n2", tmpl->drv_name); in __n2_register_one_cipher()
1404 alg->cra_blocksize = tmpl->block_size; in __n2_register_one_cipher()
1405 p->enc_type = tmpl->enc_type; in __n2_register_one_cipher()
1408 alg->cra_u.ablkcipher = tmpl->ablkcipher; in __n2_register_one_cipher()
1462 static int __n2_register_one_ahash(const struct n2_hash_tmpl *tmpl) in __n2_register_one_ahash() argument
1473 p->hash_zero = tmpl->hash_zero; in __n2_register_one_ahash()
1474 p->hash_init = tmpl->hash_init; in __n2_register_one_ahash()
1475 p->auth_type = tmpl->auth_type; in __n2_register_one_ahash()
1476 p->hmac_type = tmpl->hmac_type; in __n2_register_one_ahash()
1477 p->hw_op_hashsz = tmpl->hw_op_hashsz; in __n2_register_one_ahash()
1478 p->digest_size = tmpl->digest_size; in __n2_register_one_ahash()
1488 halg->digestsize = tmpl->digest_size; in __n2_register_one_ahash()
1491 snprintf(base->cra_name, CRYPTO_MAX_ALG_NAME, "%s", tmpl->name); in __n2_register_one_ahash()
1492 snprintf(base->cra_driver_name, CRYPTO_MAX_ALG_NAME, "%s-n2", tmpl->name); in __n2_register_one_ahash()
1497 base->cra_blocksize = tmpl->block_size; in __n2_register_one_ahash()