Adding reusability to sign/encrypt contexts proved to be too difficult
and prone to errors for the feature to be worth altogether.
Change-Id: I5aaf1db54c482950cb00079e488433c35b5e1b1b
*
* @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.
*
return ret;
}
- /* Make it reusable */
- ret = c->mdctx->digest->init(c->mdctx);
- if (ret != 1) {
- ret = YACA_ERROR_INTERNAL;
- ERROR_DUMP(ret);
- return ret;
- }
-
*digest_len = len;
return YACA_ERROR_NONE;