KeyPtr pub = extract_public_key(prv);
CtxPtr ctx = verify_init(YACA_DIGEST_MD5, pub);
- YACA_INVALID_PARAM(yaca_sign_update(YACA_CONTEXT_NULL, lorem16, LOREM16_SIZE));
- YACA_INVALID_PARAM(yaca_sign_update(ctx.get(), nullptr, LOREM16_SIZE));
- YACA_INVALID_PARAM(yaca_sign_update(ctx.get(), lorem16, 0));
+ YACA_INVALID_PARAM(yaca_verify_update(YACA_CONTEXT_NULL, lorem16, LOREM16_SIZE));
+ YACA_INVALID_PARAM(yaca_verify_update(ctx.get(), nullptr, LOREM16_SIZE));
+ YACA_INVALID_PARAM(yaca_verify_update(ctx.get(), lorem16, 0));
}
RUNNER_TEST(T6080_yaca_verify_final_invalid_param)