crypto: inside-secure - remove useless memset
This patch removes an useless memset in the ahash_export function, as the zeroed buffer will be entirely overridden the next line. Suggested-by: Ofer Heifetz <oferh@marvell.com> Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
dfbcc08faa
commit
60310eae7d
|
@ -624,7 +624,6 @@ static int safexcel_ahash_export(struct ahash_request *areq, void *out)
|
||||||
export->processed = req->processed;
|
export->processed = req->processed;
|
||||||
|
|
||||||
memcpy(export->state, req->state, req->state_sz);
|
memcpy(export->state, req->state, req->state_sz);
|
||||||
memset(export->cache, 0, crypto_ahash_blocksize(ahash));
|
|
||||||
memcpy(export->cache, req->cache, crypto_ahash_blocksize(ahash));
|
memcpy(export->cache, req->cache, crypto_ahash_blocksize(ahash));
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in New Issue