Re: [PATCH RFC 1/2] crypto: ti: Add support for SHA224/256/384/512 in DTHE V2 driver

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Feb 18, 2025 at 04:19:42PM +0530, T Pratham wrote:
>
> +struct dthe_hash_ctx {
> +	enum dthe_hash_algSel mode;
> +	u16 block_size;
> +	u8 digest_size;
> +	u8 phash_available;
> +	u32 phash[SHA512_DIGEST_SIZE / sizeof(u32)];

Is this format identical to the software sha512 hash? If so please
make the export/import functions translate to and from struct
sha512_state.

That way we can export and resume using the software sha512 in case
something goes wrong (e.g., memory allocation failure).

Ditto with all the other hash algorithms.

Thanks,
-- 
Email: Herbert Xu <herbert@xxxxxxxxxxxxxxxxxxx>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt




[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]
  Powered by Linux