lkml.org 
[lkml]   [2021]   [Aug]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/5] crypto: hisilicon/sec - add ahash alg features for Kunpeng920
On Fri, Aug 13, 2021 at 05:40:23PM +0800, Kai Ye wrote:
>
> +static int sec_ahash_import(struct ahash_request *req, const void *in)
> +{
> + /*
> + * Import partial state of the transformation. This function loads the
> + * entire state of the ongoing transformation from a provided block of
> + * data so the transformation can continue from this point onward.
> + */
> + struct sec_req *sreq = ahash_request_ctx(req);
> +
> + memcpy(sreq, in, sizeof(struct sec_req));
> + return 0;
> +}

Please explain how this works given that you've got pointers in
struct sec_req?

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

\
 
 \ /
  Last update: 2021-08-21 09:27    [W:0.042 / U:1.884 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site