Lines Matching refs:cra

1494 		struct skcipher_alg *cra = &ixp4xx_algos[i].crypto;  in ixp_crypto_probe()  local
1496 if (snprintf(cra->base.cra_driver_name, CRYPTO_MAX_ALG_NAME, in ixp_crypto_probe()
1497 "%s"IXP_POSTFIX, cra->base.cra_name) >= in ixp_crypto_probe()
1504 cra->base.cra_flags = CRYPTO_ALG_KERN_DRIVER_ONLY | in ixp_crypto_probe()
1508 if (!cra->setkey) in ixp_crypto_probe()
1509 cra->setkey = ablk_setkey; in ixp_crypto_probe()
1510 if (!cra->encrypt) in ixp_crypto_probe()
1511 cra->encrypt = ablk_encrypt; in ixp_crypto_probe()
1512 if (!cra->decrypt) in ixp_crypto_probe()
1513 cra->decrypt = ablk_decrypt; in ixp_crypto_probe()
1514 cra->init = init_tfm_ablk; in ixp_crypto_probe()
1515 cra->exit = exit_tfm_ablk; in ixp_crypto_probe()
1517 cra->base.cra_ctxsize = sizeof(struct ixp_ctx); in ixp_crypto_probe()
1518 cra->base.cra_module = THIS_MODULE; in ixp_crypto_probe()
1519 cra->base.cra_alignmask = 3; in ixp_crypto_probe()
1520 cra->base.cra_priority = 300; in ixp_crypto_probe()
1521 if (crypto_register_skcipher(cra)) in ixp_crypto_probe()
1523 cra->base.cra_name); in ixp_crypto_probe()
1529 struct aead_alg *cra = &ixp4xx_aeads[i].crypto; in ixp_crypto_probe() local
1531 if (snprintf(cra->base.cra_driver_name, CRYPTO_MAX_ALG_NAME, in ixp_crypto_probe()
1532 "%s"IXP_POSTFIX, cra->base.cra_name) >= in ixp_crypto_probe()
1539 cra->base.cra_flags = CRYPTO_ALG_KERN_DRIVER_ONLY | in ixp_crypto_probe()
1542 cra->setkey = cra->setkey ?: aead_setkey; in ixp_crypto_probe()
1543 cra->setauthsize = aead_setauthsize; in ixp_crypto_probe()
1544 cra->encrypt = aead_encrypt; in ixp_crypto_probe()
1545 cra->decrypt = aead_decrypt; in ixp_crypto_probe()
1546 cra->init = init_tfm_aead; in ixp_crypto_probe()
1547 cra->exit = exit_tfm_aead; in ixp_crypto_probe()
1549 cra->base.cra_ctxsize = sizeof(struct ixp_ctx); in ixp_crypto_probe()
1550 cra->base.cra_module = THIS_MODULE; in ixp_crypto_probe()
1551 cra->base.cra_alignmask = 3; in ixp_crypto_probe()
1552 cra->base.cra_priority = 300; in ixp_crypto_probe()
1554 if (crypto_register_aead(cra)) in ixp_crypto_probe()
1556 cra->base.cra_driver_name); in ixp_crypto_probe()