logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

kcapi_md_digest - calculate message digest on buffer (one-shot)

Arguments

handle
           [in] cipher handle

       in
           [in] buffer with input data

       inlen
           [in] length of input buffer

       out
           [out] buffer for message digest

       outlen
           [in] length of out

Author

StephanMueller <smueller@chronox.de>
           Author.

Description

       With this one-shot function, a message digest of the given buffer is generated. The output buffer must be
       allocated by the caller and have at least the length of the message digest size for the chosen message
       digest.

       The message digest handle must have been initialized, potentially by also setting the key using the
       generic message digest API functions.

       The input buffer can be at most INT_MAX in size.

       return size of message digest upon success; -EIO - data cannot be obtained; -ENOMEM - buffer is too small
       for the complete message digest, the buffer is filled with the truncated message digest

Name

       kcapi_md_digest - calculate message digest on buffer (one-shot)

Synopsis

ssize_tkcapi_md_digest(structkcapi_handle*handle,constuint8_t*in,size_tinlen,uint8_t*out,size_toutlen);

See Also