commit 11273ca302d41b1d27857fc3f9b3a8a0cef25bc3
parent 3b6cfcba03958c3fe67012e0e81cc869c9089ef8
Author: lash <dev@holbrook.no>
Date: Tue, 25 Mar 2025 00:13:37 +0000
Signature test assertion pass
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/test/test_crypto.c b/src/test/test_crypto.c
@@ -92,9 +92,8 @@ START_TEST(check_signature) {
sig = lq_privatekey_sign(pk, digest, 32, salt);
ck_assert_ptr_nonnull(sig);
- r = 42;
- lq_signature_bytes(sig, &sigdata);
- ck_assert_mem_eq(sigdata+65, &r, 1);
+ r = lq_signature_bytes(sig, &sigdata);
+ ck_assert_mem_eq(sig->impl, sigdata, r);
lq_signature_free(sig);
lq_privatekey_free(pk);