qcrypto_digest()
QNX SDP8.0QNX OS System Security GuideAPIConfiguration
Initialize, update, and finalize a digest
Synopsis:
#include <qcrypto/qcrypto.h>int qcrypto_digest(qcrypto_ctx_t *ctx,
                   const uint8_t *data,
                   size_t size,
                   uint8_t *digest,
                   size_t *dsize)Arguments:
- ctx
 - The algorithm context object.
 - data
 - The input data buffer.
 - size
 - The size of the input data.
 - digest
 - The digest buffer to copy the digest value to. Make sure that the buffer is large enough for the digest.
 - dsize
 - A pointer to a variable to store the size of the digest in. Specify NULL if this value is not required.
 
Library:
libqcryptoDescription:
This function performs qcrypto_digest_init(), qcrypto_digest_update(), and qcrypto_digest_final() in a single operation.
Returns:
QCRYPTO_R_EOK if successful or qcrypto_errno if an error occurred. 
Page updated: 
