Home
last modified time | relevance | path

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

/linux/drivers/crypto/bcm/
H A 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 …]
H A Dspu2.c948 struct spu_hash_parms *hash_parms, in spu2_create_request() argument
965 hash_parms->prebuf_len + data_size + hash_parms->pad_len - in spu2_create_request()
967 hash_parms->digestsize : 0); in spu2_create_request()
976 hash_parms->prebuf_len, in spu2_create_request()
980 hash_parms->pad_len); in spu2_create_request()
1009 hash_parms->alg, hash_parms->mode, hash_parms->type); in spu2_create_request()
1010 flow_log(" digestsize: %u\n", hash_parms->digestsize); in spu2_create_request()
1011 flow_log(" authkey: %d\n", hash_parms->key_len); in spu2_create_request()
1012 flow_dump(" authkey: ", hash_parms->key_buf, hash_parms->key_len); in spu2_create_request()
1014 flow_log(" prebuf_len:%u\n", hash_parms->prebuf_len); in spu2_create_request()
[all …]
H A Dcipher.c677 struct spu_hash_parms hash_parms; in handle_ahash_req() local
696 memset(&hash_parms, 0, sizeof(hash_parms)); in handle_ahash_req()
700 hash_parms.alg = ctx->auth.alg; in handle_ahash_req()
701 hash_parms.mode = ctx->auth.mode; in handle_ahash_req()
702 hash_parms.type = HASH_TYPE_NONE; in handle_ahash_req()
703 hash_parms.key_buf = (u8 *)ctx->authkey; in handle_ahash_req()
704 hash_parms.key_len = ctx->authkeylen; in handle_ahash_req()
769 if (hash_parms.alg == HASH_ALG_AES) in handle_ahash_req()
770 hash_parms.type = (enum hash_type)cipher_parms.type; in handle_ahash_req()
772 hash_parms.type = spu->spu_hash_type(rctx->total_sent); in handle_ahash_req()
[all …]
H A Dspu2.h195 struct spu_hash_parms *hash_parms,
H A Dspu.h245 struct spu_hash_parms *hash_parms,
H A Dcipher.h380 struct spu_hash_parms *hash_parms,