Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/crypto/bcm/
Dspu.c595 struct spu_hash_parms *hash_parms, in spum_create_request() argument
611 unsigned int cipher_len = hash_parms->prebuf_len + data_size + in spum_create_request()
612 hash_parms->pad_len; in spum_create_request()
621 hash_parms->prebuf_len, in spum_create_request()
625 hash_parms->pad_len); in spum_create_request()
636 cipher_len -= hash_parms->digestsize; in spum_create_request()
639 auth_len -= hash_parms->digestsize; in spum_create_request()
641 if ((hash_parms->alg == HASH_ALG_AES) && in spum_create_request()
642 (hash_parms->mode == HASH_MODE_XCBC)) { in spum_create_request()
643 auth_len -= hash_parms->pad_len; in spum_create_request()
[all …]
Dspu2.c942 struct spu_hash_parms *hash_parms, in spu2_create_request() argument
959 hash_parms->prebuf_len + data_size + hash_parms->pad_len - in spu2_create_request()
961 hash_parms->digestsize : 0); in spu2_create_request()
971 hash_parms->prebuf_len, in spu2_create_request()
975 hash_parms->pad_len); in spu2_create_request()
1005 hash_parms->alg, hash_parms->mode, hash_parms->type); in spu2_create_request()
1006 flow_log(" digestsize: %u\n", hash_parms->digestsize); in spu2_create_request()
1007 flow_log(" authkey: %d\n", hash_parms->key_len); in spu2_create_request()
1008 flow_dump(" authkey: ", hash_parms->key_buf, hash_parms->key_len); in spu2_create_request()
1010 flow_log(" prebuf_len:%u\n", hash_parms->prebuf_len); in spu2_create_request()
[all …]
Dcipher.c717 struct spu_hash_parms hash_parms; in handle_ahash_req() local
736 memset(&hash_parms, 0, sizeof(hash_parms)); in handle_ahash_req()
740 hash_parms.alg = ctx->auth.alg; in handle_ahash_req()
741 hash_parms.mode = ctx->auth.mode; in handle_ahash_req()
742 hash_parms.type = HASH_TYPE_NONE; in handle_ahash_req()
743 hash_parms.key_buf = (u8 *)ctx->authkey; in handle_ahash_req()
744 hash_parms.key_len = ctx->authkeylen; in handle_ahash_req()
809 if (hash_parms.alg == HASH_ALG_AES) in handle_ahash_req()
810 hash_parms.type = (enum hash_type)cipher_parms.type; in handle_ahash_req()
812 hash_parms.type = spu->spu_hash_type(rctx->total_sent); in handle_ahash_req()
[all …]
Dspu2.h195 struct spu_hash_parms *hash_parms,
Dspu.h244 struct spu_hash_parms *hash_parms,
Dcipher.h380 struct spu_hash_parms *hash_parms,