Home
last modified time | relevance | path

Searched refs:hash_parms (Results 1 – 6 of 6) sorted by relevance

/linux-6.12.1/drivers/crypto/bcm/
Dspu.c589 struct spu_hash_parms *hash_parms, in spum_create_request() argument
605 unsigned int cipher_len = hash_parms->prebuf_len + data_size + in spum_create_request()
606 hash_parms->pad_len; in spum_create_request()
615 hash_parms->prebuf_len, in spum_create_request()
619 hash_parms->pad_len); in spum_create_request()
630 cipher_len -= hash_parms->digestsize; in spum_create_request()
633 auth_len -= hash_parms->digestsize; in spum_create_request()
635 if ((hash_parms->alg == HASH_ALG_AES) && in spum_create_request()
636 (hash_parms->mode == HASH_MODE_XCBC)) { in spum_create_request()
637 auth_len -= hash_parms->pad_len; in spum_create_request()
[all …]
Dspu2.c947 struct spu_hash_parms *hash_parms, in spu2_create_request() argument
964 hash_parms->prebuf_len + data_size + hash_parms->pad_len - in spu2_create_request()
966 hash_parms->digestsize : 0); in spu2_create_request()
975 hash_parms->prebuf_len, in spu2_create_request()
979 hash_parms->pad_len); in spu2_create_request()
1008 hash_parms->alg, hash_parms->mode, hash_parms->type); in spu2_create_request()
1009 flow_log(" digestsize: %u\n", hash_parms->digestsize); in spu2_create_request()
1010 flow_log(" authkey: %d\n", hash_parms->key_len); in spu2_create_request()
1011 flow_dump(" authkey: ", hash_parms->key_buf, hash_parms->key_len); in spu2_create_request()
1013 flow_log(" prebuf_len:%u\n", hash_parms->prebuf_len); in spu2_create_request()
[all …]
Dcipher.c680 struct spu_hash_parms hash_parms; in handle_ahash_req() local
699 memset(&hash_parms, 0, sizeof(hash_parms)); in handle_ahash_req()
703 hash_parms.alg = ctx->auth.alg; in handle_ahash_req()
704 hash_parms.mode = ctx->auth.mode; in handle_ahash_req()
705 hash_parms.type = HASH_TYPE_NONE; in handle_ahash_req()
706 hash_parms.key_buf = (u8 *)ctx->authkey; in handle_ahash_req()
707 hash_parms.key_len = ctx->authkeylen; in handle_ahash_req()
772 if (hash_parms.alg == HASH_ALG_AES) in handle_ahash_req()
773 hash_parms.type = (enum hash_type)cipher_parms.type; in handle_ahash_req()
775 hash_parms.type = spu->spu_hash_type(rctx->total_sent); in handle_ahash_req()
[all …]
Dspu2.h195 struct spu_hash_parms *hash_parms,
Dspu.h245 struct spu_hash_parms *hash_parms,
Dcipher.h380 struct spu_hash_parms *hash_parms,