Re: [PATCH] crypto: CTR DRBG - in-place cipher operation

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

 



On Fri, Jul 27, 2018 at 01:49:08PM +0200, Stephan Mueller wrote:
>
> This is guaranteed by the invokers of drbg_kcapi_sym_ctr as there are two 
> only:
> 
> - the one in drbg_ctr_update uses the scratchpad for inbuf
> 
> - the one in drbg_ctr_generate uses NULL which implies that the outscratchpad 
> is used.

I see.  I missed the fact that the buffer provided by the user is
the output buffer and not the input buffer.

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