]> Git Repo - secp256k1.git/commit
Make randomization of a non-signing context a noop
authorTim Ruffing <[email protected]>
Sun, 27 Jan 2019 12:17:37 +0000 (13:17 +0100)
committerTim Ruffing <[email protected]>
Sun, 27 Jan 2019 12:33:52 +0000 (13:33 +0100)
commit6198375218b8132f016b701ef049fb295ca28c95
tree59a0732482869636f03899cc64cc241db307d951
parente34ceb333b1c0e6f4115ecbb80c632ac1042fa49
Make randomization of a non-signing context a noop

Before this commit secp256k1_context_randomize called illegal_callback
when called on a context not initialized for signing. This is not
documented. Moreover, it is not desirable because non-signing contexts
may use randomization in the future.

This commit makes secp256k1_context_randomize a noop in this case. This
is safe because the context cannot be used for signing anyway.

This fixes #573 and it fixes rust-bitcoin/rust-secp256k1#82.
include/secp256k1.h
src/secp256k1.c
src/tests.c
This page took 0.025824 seconds and 4 git commands to generate.