Lines Matching defs:base
101 gfp = req->base.flags & CRYPTO_TFM_REQ_MAY_SLEEP ?
171 ret = ccp_crypto_enqueue_request(&req->base, &rctx->cmd);
417 struct crypto_alg *base;
424 /* Copy the base algorithm and only change what's necessary */
435 base = &halg->base;
436 snprintf(base->cra_name, CRYPTO_MAX_ALG_NAME, "hmac(%s)", def->name);
437 snprintf(base->cra_driver_name, CRYPTO_MAX_ALG_NAME, "hmac-%s",
439 base->cra_init = ccp_hmac_sha_cra_init;
440 base->cra_exit = ccp_hmac_sha_cra_exit;
445 base->cra_name, ret);
461 struct crypto_alg *base;
485 base = &halg->base;
486 snprintf(base->cra_name, CRYPTO_MAX_ALG_NAME, "%s", def->name);
487 snprintf(base->cra_driver_name, CRYPTO_MAX_ALG_NAME, "%s",
489 base->cra_flags = CRYPTO_ALG_ASYNC |
493 base->cra_blocksize = def->block_size;
494 base->cra_ctxsize = sizeof(struct ccp_ctx);
495 base->cra_priority = CCP_CRA_PRIORITY;
496 base->cra_init = ccp_sha_cra_init;
497 base->cra_exit = ccp_sha_cra_exit;
498 base->cra_module = THIS_MODULE;
503 base->cra_name, ret);