1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * Copyright 2014 Freescale Semiconductor, Inc.
14 /* We support at most 32 Scatter/Gather Entries.*/
18 * Hash context contains the following fields
19 * @sha_desc: Sha Descriptor
20 * @sg_num: number of entries in sg table
21 * @len: total length of buffer
22 * @sg_tbl: sg entry table
23 * @hash: index to the hash calculated
26 uint32_t sha_desc[64];
29 struct sg_entry sg_tbl[MAX_SG_32];
30 u8 hash[HASH_MAX_DIGEST_SIZE];