From 7023b7f0ff62ed96af0414df40976d2d63486d0d Mon Sep 17 00:00:00 2001 From: Kris Kwiatkowski Date: Thu, 25 Mar 2021 01:11:53 +0000 Subject: [PATCH] fix some deteails in tests --- test/katrunner/src/main.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/katrunner/src/main.rs b/test/katrunner/src/main.rs index 2579b71a..8b50f6f9 100644 --- a/test/katrunner/src/main.rs +++ b/test/katrunner/src/main.rs @@ -14,14 +14,13 @@ struct Register { fn signature_scheme(el: &TestVector) { - let mut msg = Vec::new(); - msg.resize(el.sig.msg.len(), 0); - msg.extend(el.sig.msg.iter().copied()); unsafe { let p = pqc_sig_alg_by_id(el.scheme_id as u8); + assert_ne!(p.is_null(), true); assert_eq!( - pqc_sig_verify(p, msg.as_mut_ptr(), el.sig.msg.len() as u64, + pqc_sig_verify(p, el.sig.sm.as_ptr(), el.sig.sm.len() as u64, + el.sig.msg.as_ptr(), el.sig.msg.len() as u64, el.sig.pk.as_ptr()), true); }