lkml.org 
[lkml]   [2015]   [Jun]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH RFC v5 2/4] crypto: add PKE API
    On Mon, Jun 15, 2015 at 01:18:42PM -0700, Tadeusz Struk wrote:
    >
    > +struct akcipher_request {
    > + struct crypto_async_request base;
    > + void *src;
    > + void *dst;
    > + unsigned int src_len;
    > + unsigned int dst_len;
    > + unsigned int *result_len;
    > + void *__ctx[] CRYPTO_MINALIGN_ATTR;
    > +};

    result_len is redundant. You can write to dst_len after the
    operation is done.

    Cheers,
    --
    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: 2015-06-16 02:01    [W:6.635 / U:0.008 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site