[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20210821072557.GA31491@gondor.apana.org.au>
Date: Sat, 21 Aug 2021 15:25:57 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Kai Ye <yekai13@...wei.com>
Cc: linux-crypto@...r.kernel.org, linux-kernel@...r.kernel.org,
wangzhou1@...ilicon.com
Subject: Re: [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@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Powered by blists - more mailing lists