Lines Matching refs:hash_parms
717 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()
815 hash_parms.type); in handle_ahash_req()
816 hash_parms.digestsize = digestsize; in handle_ahash_req()
824 hash_parms.pad_len = spu->spu_hash_pad_len(hash_parms.alg, in handle_ahash_req()
825 hash_parms.mode, in handle_ahash_req()
833 if ((hash_parms.type == HASH_TYPE_UPDT) && in handle_ahash_req()
834 (hash_parms.alg != HASH_ALG_AES)) { in handle_ahash_req()
835 hash_parms.key_buf = rctx->incr_hash; in handle_ahash_req()
836 hash_parms.key_len = digestsize; in handle_ahash_req()
854 hash_parms.prebuf_len = local_nbuf; in handle_ahash_req()
858 &hash_parms, &aead_parms, in handle_ahash_req()
872 0, 0, hash_parms.pad_len); in handle_ahash_req()
877 pad_len = hash_parms.pad_len + data_pad_len + stat_pad_len; in handle_ahash_req()
881 hash_parms.pad_len, ctx->auth.alg, in handle_ahash_req()
1313 struct spu_hash_parms hash_parms; in handle_aead_req() local
1330 memset(&hash_parms, 0, sizeof(hash_parms)); in handle_aead_req()
1346 hash_parms.alg = ctx->auth.alg; in handle_aead_req()
1347 hash_parms.mode = ctx->auth.mode; in handle_aead_req()
1348 hash_parms.type = HASH_TYPE_NONE; in handle_aead_req()
1349 hash_parms.key_buf = (u8 *)ctx->authkey; in handle_aead_req()
1350 hash_parms.key_len = ctx->authkeylen; in handle_aead_req()
1351 hash_parms.digestsize = digestsize; in handle_aead_req()
1355 hash_parms.key_len = SHA224_DIGEST_SIZE; in handle_aead_req()
1401 hash_parms.type = (enum hash_type)ctx->cipher_type; in handle_aead_req()
1472 &cipher_parms, &hash_parms, in handle_aead_req()