Thread (2 messages) 2 messages, 2 authors, 2021-08-28

Re: [PATCH 2/5] crypto: hisilicon/sec - add ahash alg features for Kunpeng920

flat view

From: Herbert Xu <herbert@gondor.apana.org.au>
Date: 2021-08-28 06:47:37

On Sat, Aug 28, 2021 at 11:16:47AM +0800, yekai(A) wrote:
I refered to other people's plans. Modify the value of halg.statesize
is sizeof(struct sec_req) + sizeof(u32), So user can allocate an extra
sizeof(u32) memory. The driver will write a tag number to the addr in the
export process, then the driver will check the pointers by the tag number
through the import path.
I think this plan can avoid random pointers.
I don't see what that's going to achieve.  The whole point of
export/import is to serialise the entire hash state.  You can
not store any pointers in there.  After all, I can export the
hash state, reboot, and then reimport the hash state and it
should still work.

Cheers,
-- 
Email: Herbert Xu [off-list ref]
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help