Lines Matching defs:alg
1254 static void atmel_sha_alg_init(struct ahash_alg *alg)
1256 alg->halg.base.cra_priority = ATMEL_SHA_PRIORITY;
1257 alg->halg.base.cra_flags = CRYPTO_ALG_ASYNC;
1258 alg->halg.base.cra_ctxsize = sizeof(struct atmel_sha_ctx);
1259 alg->halg.base.cra_module = THIS_MODULE;
1260 alg->halg.base.cra_init = atmel_sha_cra_init;
1262 alg->halg.statesize = sizeof(struct atmel_sha_reqctx);
1264 alg->init = atmel_sha_init;
1265 alg->update = atmel_sha_update;
1266 alg->final = atmel_sha_final;
1267 alg->finup = atmel_sha_finup;
1268 alg->digest = atmel_sha_digest;
1269 alg->export = atmel_sha_export;
1270 alg->import = atmel_sha_import;
2016 static void atmel_sha_hmac_alg_init(struct ahash_alg *alg)
2018 alg->halg.base.cra_priority = ATMEL_SHA_PRIORITY;
2019 alg->halg.base.cra_flags = CRYPTO_ALG_ASYNC;
2020 alg->halg.base.cra_ctxsize = sizeof(struct atmel_sha_hmac_ctx);
2021 alg->halg.base.cra_module = THIS_MODULE;
2022 alg->halg.base.cra_init = atmel_sha_hmac_cra_init;
2023 alg->halg.base.cra_exit = atmel_sha_hmac_cra_exit;
2025 alg->halg.statesize = sizeof(struct atmel_sha_reqctx);
2027 alg->init = atmel_sha_hmac_init;
2028 alg->update = atmel_sha_update;
2029 alg->final = atmel_sha_final;
2030 alg->digest = atmel_sha_hmac_digest;
2031 alg->setkey = atmel_sha_hmac_setkey;
2032 alg->export = atmel_sha_export;
2033 alg->import = atmel_sha_import;