From 938fa5992203c5a409eeed89eef00147cb52ac71 Mon Sep 17 00:00:00 2001 From: Krzysztof Jackiewicz Date: Tue, 21 Jun 2016 15:14:13 +0200 Subject: [PATCH] Update digest API description -Add empty message digest remark -Add context reuse remark Change-Id: I255dc403f3f82d4359e56e632607b4d93e811b2f --- api/yaca/yaca_digest.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/api/yaca/yaca_digest.h b/api/yaca/yaca_digest.h index 6a66a6f..f45f25b 100644 --- a/api/yaca/yaca_digest.h +++ b/api/yaca/yaca_digest.h @@ -87,6 +87,13 @@ int yaca_digest_update(yaca_context_h ctx, const char *data, size_t data_len); * * @since_tizen 3.0 * + * @remarks After returning from this function the context is ready to be reused for another + * message digest calculation. There's no need to initialize it again with + * yaca_digest_initialize(). + * + * @remarks Skipping yaca_digest_update() and calling only yaca_digest_finalize() will produce an + * empty message digest. + * * @param[in,out] ctx A valid digest context * @param[out] digest Buffer for the message digest * (must be allocated by client, see yaca_context_get_output_length()) -- 2.7.4