valgrind_ctime_test: Add schnorrsig_sign
This commit is contained in:
parent
16ffa9d97c
commit
f431b3f28a
@ -21,6 +21,10 @@
|
|||||||
# include "include/secp256k1_extrakeys.h"
|
# include "include/secp256k1_extrakeys.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if ENABLE_MODULE_SCHNORRSIG
|
||||||
|
#include "include/secp256k1_schnorrsig.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
int main(void) {
|
int main(void) {
|
||||||
secp256k1_context* ctx;
|
secp256k1_context* ctx;
|
||||||
secp256k1_ecdsa_signature signature;
|
secp256k1_ecdsa_signature signature;
|
||||||
@ -138,6 +142,16 @@ int main(void) {
|
|||||||
CHECK(ret == 1);
|
CHECK(ret == 1);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if ENABLE_MODULE_SCHNORRSIG
|
||||||
|
VALGRIND_MAKE_MEM_UNDEFINED(key, 32);
|
||||||
|
ret = secp256k1_keypair_create(ctx, &keypair, key);
|
||||||
|
VALGRIND_MAKE_MEM_DEFINED(&ret, sizeof(ret));
|
||||||
|
CHECK(ret == 1);
|
||||||
|
ret = secp256k1_schnorrsig_sign(ctx, sig, msg, &keypair, NULL, NULL);
|
||||||
|
VALGRIND_MAKE_MEM_DEFINED(&ret, sizeof(ret));
|
||||||
|
CHECK(ret == 1);
|
||||||
|
#endif
|
||||||
|
|
||||||
secp256k1_context_destroy(ctx);
|
secp256k1_context_destroy(ctx);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user