78 Commits (0c6ab2ff1810afde319037010937262679ef92aa)

Author SHA1 Message Date
Pieter Wuille 0c6ab2ff18 Introduce explicit lower-S normalization 7 years ago
Pieter Wuille 3bb9c44719 Rewrite ECDSA signature parsing code 7 years ago
Gregory Maxwell ee2cb4007d Add ARG_CHECKs to secp256k1_ec_pubkey_parse/secp256k1_ec_pubkey_serialize 7 years ago
Gregory Maxwell cfe0ed916a Fix miscellaneous style nits that irritate overactive static analysis. 7 years ago
Gregory Maxwell 2b199de888 Use the explicit NULL macro for pointer comparisons. 7 years ago
Pieter Wuille dd891e0ed5 Get rid of _t as it is POSIX reserved 7 years ago
Gregory Maxwell 912f203fc5 Eliminate a few unbraced statements that crept into the code. 7 years ago
Luke Dashjr 486b9bb8ce Use a flags bitfield for compressed option to secp256k1_ec_pubkey_serialize and secp256k1_ec_privkey_export 7 years ago
Luke Dashjr 05732c5a5f Callback data: Accept pointers to either const or non-const data 7 years ago
Luke Dashjr 788038d323 Use size_t for lengths (at least in external API) 7 years ago
Luke Dashjr c9d7c2a484 secp256k1_context_set_{error,illegal}_callback: Restore default handler by passing NULL as function argument 7 years ago
Luke Dashjr 9aac008038 secp256k1_context_destroy: Allow NULL argument as a no-op 7 years ago
Luke Dashjr 64b730bc3f secp256k1_context_create: Use unsigned type for flags bitfield 7 years ago
Pieter Wuille dc0ce9fc41 [API BREAK] Change argument order to out/outin/in 7 years ago
Cory Fields b183b41122 bugfix: "ARG_CHECK(ctx != NULL)" makes no sense 7 years ago
Pieter Wuille 9f443be086 Move pubkey recovery code to separate module 7 years ago
Pieter Wuille 439d34adc6 Separate recoverable and normal signatures 7 years ago
Pieter Wuille a5a66c70b6 Add support for custom EC-Schnorr-SHA256 signatures 7 years ago
Andrew Poelstra 0739bbb6f0 Add ECDH module which works by hashing the output of ecmult_const 7 years ago
Andrew Poelstra 4401500060 Add constant-time multiply `secp256k1_ecmult_const` for ECDH 7 years ago
Pieter Wuille 995c548771 Introduce callback functions for dealing with errors. 7 years ago
Pieter Wuille 18c329c506 Remove the internal secp256k1_ecdsa_sig_t type 7 years ago
Pieter Wuille 74a2acdb8a Add a secp256k1_ecdsa_signature_t type 7 years ago
Pieter Wuille 23cfa914d2 Introduce secp256k1_pubkey_t type 7 years ago
Pieter Wuille 3e6f1e20dc Change rfc6979 implementation to be a generic PRNG 7 years ago
Thomas Kerin 99fd963bd5
Add secp256k1_ec_pubkey_compress(), with test similar to the related decompress() function. 8 years ago
Andrew Poelstra 210ffed5cd Use separate in and out pointers in `secp256k1_ec_pubkey_decompress` 8 years ago
Gregory Maxwell d2275795ff Add scalar blinding and a secp256k1_context_randomize() call. 8 years ago
Andrew Poelstra 93226a54b4 secp256k1.c: Add missing DEBUG_CHECKs for sufficiently capable contexts 8 years ago
Andrew Poelstra d899b5b67c Expose ability to deep-copy a context 8 years ago
Pieter Wuille a9b6595ef8 [API BREAK] Introduce explicit contexts 8 years ago
Gregory Maxwell c01df1adc9 Avoid some implicit type conversions to make C++ compilers happy. 8 years ago
Pieter Wuille 1573a102c0 Add ability to pass extra entropy to rfc6979 8 years ago
Gregory Maxwell 0065a8fb9c Eliminate multiple-returns from secp256k1.c. 8 years ago
Gregory Maxwell 354ffa33e6 Make secp256k1_ec_pubkey_create reject oversized secrets. 8 years ago
Pieter Wuille 8030d7c0e5 Improve signing API documentation & specification 8 years ago
Iang 11690d3bb9 Removed gotos, which are hard to trace and maintain. 8 years ago
Gregory Maxwell f735446c4d Convert the rest of the codebase to C89. 8 years ago
Pieter Wuille 4732d26069 Convert the field/group/ecdsa constant initialization to static consts 8 years ago
Pieter Wuille f1ebfe399f Convert the scalar constant initialization to static consts 8 years ago
Pieter Wuille bbd5ba7cfa Use rfc6979 as default nonce generation function 8 years ago
Pieter Wuille b37fbc280e Implement SHA256 / HMAC-SHA256 / RFC6979. 8 years ago
Pieter Wuille c6e7f4e8d8 [API BREAK] Use a nonce-generation function instead of a nonce 8 years ago
Pieter Wuille 603c33bc80 Make signing fail if a too small buffer is passed. 8 years ago
Pieter Wuille cf7b2b4647 Fix ECDSA message hashes to 32 bytes 8 years ago
Pieter Wuille 4285a98722 Move lambda-splitting code to scalar. 8 years ago
Pieter Wuille f24041d6aa Switch all EC/ECDSA logic from num to scalar 8 years ago
Pieter Wuille bbe67d8b29 Make secp256k1_eckey_pubkey_serialize fail for infinity 8 years ago
Gregory Maxwell 71712b27e5 Switch to C89 comments in prep for making the whole codebase C89 compatible. 8 years ago
Gregory Maxwell 8563713a4f Add non-null and unused-result warnings for the external API. 8 years ago