Change-Id: I2ed584063314213efba934b282f603ce49f69899
API int yaca_context_get_output_length(const yaca_context_h ctx,
size_t input_len, size_t *output_len)
{
- if (ctx == YACA_CONTEXT_NULL)
+ if (ctx == YACA_CONTEXT_NULL || output_len == NULL)
return YACA_ERROR_INVALID_PARAMETER;
return ctx->get_output_length(ctx, input_len, output_len);
UNUSED size_t input_len,
size_t *output_len)
{
+ assert(output_len != NULL);
+
struct yaca_digest_ctx_s *c = get_digest_ctx(ctx);
if (c == NULL)
int get_encrypt_output_length(const yaca_context_h ctx, size_t input_len, size_t *output_len)
{
+ assert(output_len != NULL);
+
struct yaca_encrypt_context_s *nc = get_encrypt_context(ctx);
int block_size;
UNUSED size_t input_len,
size_t *output_len)
{
+ assert(output_len != NULL);
+
struct yaca_sign_ctx_s *c = get_sign_ctx(ctx);
if (c == NULL)