@@ -288,7 +288,7 @@ SECP256K1_API void secp256k1_selftest(void);
288
288
* Do not create a new context object for each operation, as construction and
289
289
* randomization can take non-negligible time.
290
290
*/
291
- SECP256K1_API secp256k1_context * secp256k1_context_create (
291
+ SECP256K1_API secp256k1_context * secp256k1_context_create (
292
292
unsigned int flags
293
293
) SECP256K1_WARN_UNUSED_RESULT ;
294
294
@@ -304,8 +304,8 @@ SECP256K1_API secp256k1_context* secp256k1_context_create(
304
304
* Returns: a newly created context object.
305
305
* Args: ctx: an existing context to copy (not secp256k1_context_static)
306
306
*/
307
- SECP256K1_API secp256k1_context * secp256k1_context_clone (
308
- const secp256k1_context * ctx
307
+ SECP256K1_API secp256k1_context * secp256k1_context_clone (
308
+ const secp256k1_context * ctx
309
309
) SECP256K1_ARG_NONNULL (1 ) SECP256K1_WARN_UNUSED_RESULT ;
310
310
311
311
/** Destroy a secp256k1 context object (created in dynamically allocated memory).
@@ -323,7 +323,7 @@ SECP256K1_API secp256k1_context* secp256k1_context_clone(
323
323
* (i.e., not secp256k1_context_static).
324
324
*/
325
325
SECP256K1_API void secp256k1_context_destroy (
326
- secp256k1_context * ctx
326
+ secp256k1_context * ctx
327
327
) SECP256K1_ARG_NONNULL (1 );
328
328
329
329
/** Set a callback function to be called when an illegal argument is passed to
@@ -347,8 +347,8 @@ SECP256K1_API void secp256k1_context_destroy(
347
347
* USE_EXTERNAL_DEFAULT_CALLBACKS is defined, which is the case if the build
348
348
* has been configured with --enable-external-default-callbacks. Then the
349
349
* following two symbols must be provided to link against:
350
- * - void secp256k1_default_illegal_callback_fn(const char* message, void* data);
351
- * - void secp256k1_default_error_callback_fn(const char* message, void* data);
350
+ * - void secp256k1_default_illegal_callback_fn(const char * message, void * data);
351
+ * - void secp256k1_default_error_callback_fn(const char * message, void * data);
352
352
* The library can call these default handlers even before a proper callback data
353
353
* pointer could have been set using secp256k1_context_set_illegal_callback or
354
354
* secp256k1_context_set_error_callback, e.g., when the creation of a context
@@ -364,9 +364,9 @@ SECP256K1_API void secp256k1_context_destroy(
364
364
* See also secp256k1_context_set_error_callback.
365
365
*/
366
366
SECP256K1_API void secp256k1_context_set_illegal_callback (
367
- secp256k1_context * ctx ,
368
- void (* fun )(const char * message , void * data ),
369
- const void * data
367
+ secp256k1_context * ctx ,
368
+ void (* fun )(const char * message , void * data ),
369
+ const void * data
370
370
) SECP256K1_ARG_NONNULL (1 );
371
371
372
372
/** Set a callback function to be called when an internal consistency check
@@ -392,9 +392,9 @@ SECP256K1_API void secp256k1_context_set_illegal_callback(
392
392
* See also secp256k1_context_set_illegal_callback.
393
393
*/
394
394
SECP256K1_API void secp256k1_context_set_error_callback (
395
- secp256k1_context * ctx ,
396
- void (* fun )(const char * message , void * data ),
397
- const void * data
395
+ secp256k1_context * ctx ,
396
+ void (* fun )(const char * message , void * data ),
397
+ const void * data
398
398
) SECP256K1_ARG_NONNULL (1 );
399
399
400
400
/** Create a secp256k1 scratch space object.
@@ -404,8 +404,8 @@ SECP256K1_API void secp256k1_context_set_error_callback(
404
404
* In: size: amount of memory to be available as scratch space. Some extra
405
405
* (<100 bytes) will be allocated for extra accounting.
406
406
*/
407
- SECP256K1_API SECP256K1_WARN_UNUSED_RESULT secp256k1_scratch_space * secp256k1_scratch_space_create (
408
- const secp256k1_context * ctx ,
407
+ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT secp256k1_scratch_space * secp256k1_scratch_space_create (
408
+ const secp256k1_context * ctx ,
409
409
size_t size
410
410
) SECP256K1_ARG_NONNULL (1 );
411
411
@@ -416,8 +416,8 @@ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT secp256k1_scratch_space* secp256k1_sc
416
416
* scratch: space to destroy
417
417
*/
418
418
SECP256K1_API void secp256k1_scratch_space_destroy (
419
- const secp256k1_context * ctx ,
420
- secp256k1_scratch_space * scratch
419
+ const secp256k1_context * ctx ,
420
+ secp256k1_scratch_space * scratch
421
421
) SECP256K1_ARG_NONNULL (1 );
422
422
423
423
/** Parse a variable-length public key into the pubkey object.
@@ -435,8 +435,8 @@ SECP256K1_API void secp256k1_scratch_space_destroy(
435
435
* byte 0x06 or 0x07) format public keys.
436
436
*/
437
437
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_pubkey_parse (
438
- const secp256k1_context * ctx ,
439
- secp256k1_pubkey * pubkey ,
438
+ const secp256k1_context * ctx ,
439
+ secp256k1_pubkey * pubkey ,
440
440
const unsigned char * input ,
441
441
size_t inputlen
442
442
) SECP256K1_ARG_NONNULL (1 ) SECP256K1_ARG_NONNULL (2 ) SECP256K1_ARG_NONNULL (3 );
@@ -457,10 +457,10 @@ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_pubkey_parse(
457
457
* compressed format, otherwise SECP256K1_EC_UNCOMPRESSED.
458
458
*/
459
459
SECP256K1_API int secp256k1_ec_pubkey_serialize (
460
- const secp256k1_context * ctx ,
460
+ const secp256k1_context * ctx ,
461
461
unsigned char * output ,
462
462
size_t * outputlen ,
463
- const secp256k1_pubkey * pubkey ,
463
+ const secp256k1_pubkey * pubkey ,
464
464
unsigned int flags
465
465
) SECP256K1_ARG_NONNULL (1 ) SECP256K1_ARG_NONNULL (2 ) SECP256K1_ARG_NONNULL (3 ) SECP256K1_ARG_NONNULL (4 );
466
466
@@ -474,9 +474,9 @@ SECP256K1_API int secp256k1_ec_pubkey_serialize(
474
474
* pubkey2: second public key to compare
475
475
*/
476
476
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_pubkey_cmp (
477
- const secp256k1_context * ctx ,
478
- const secp256k1_pubkey * pubkey1 ,
479
- const secp256k1_pubkey * pubkey2
477
+ const secp256k1_context * ctx ,
478
+ const secp256k1_pubkey * pubkey1 ,
479
+ const secp256k1_pubkey * pubkey2
480
480
) SECP256K1_ARG_NONNULL (1 ) SECP256K1_ARG_NONNULL (2 ) SECP256K1_ARG_NONNULL (3 );
481
481
482
482
/** Parse an ECDSA signature in compact (64 bytes) format.
@@ -495,8 +495,8 @@ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_pubkey_cmp(
495
495
* any message and public key.
496
496
*/
497
497
SECP256K1_API int secp256k1_ecdsa_signature_parse_compact (
498
- const secp256k1_context * ctx ,
499
- secp256k1_ecdsa_signature * sig ,
498
+ const secp256k1_context * ctx ,
499
+ secp256k1_ecdsa_signature * sig ,
500
500
const unsigned char * input64
501
501
) SECP256K1_ARG_NONNULL (1 ) SECP256K1_ARG_NONNULL (2 ) SECP256K1_ARG_NONNULL (3 );
502
502
@@ -516,8 +516,8 @@ SECP256K1_API int secp256k1_ecdsa_signature_parse_compact(
516
516
* guaranteed to fail for every message and public key.
517
517
*/
518
518
SECP256K1_API int secp256k1_ecdsa_signature_parse_der (
519
- const secp256k1_context * ctx ,
520
- secp256k1_ecdsa_signature * sig ,
519
+ const secp256k1_context * ctx ,
520
+ secp256k1_ecdsa_signature * sig ,
521
521
const unsigned char * input ,
522
522
size_t inputlen
523
523
) SECP256K1_ARG_NONNULL (1 ) SECP256K1_ARG_NONNULL (2 ) SECP256K1_ARG_NONNULL (3 );
@@ -534,10 +534,10 @@ SECP256K1_API int secp256k1_ecdsa_signature_parse_der(
534
534
* In: sig: a pointer to an initialized signature object
535
535
*/
536
536
SECP256K1_API int secp256k1_ecdsa_signature_serialize_der (
537
- const secp256k1_context * ctx ,
537
+ const secp256k1_context * ctx ,
538
538
unsigned char * output ,
539
539
size_t * outputlen ,
540
- const secp256k1_ecdsa_signature * sig
540
+ const secp256k1_ecdsa_signature * sig
541
541
) SECP256K1_ARG_NONNULL (1 ) SECP256K1_ARG_NONNULL (2 ) SECP256K1_ARG_NONNULL (3 ) SECP256K1_ARG_NONNULL (4 );
542
542
543
543
/** Serialize an ECDSA signature in compact (64 byte) format.
@@ -550,9 +550,9 @@ SECP256K1_API int secp256k1_ecdsa_signature_serialize_der(
550
550
* See secp256k1_ecdsa_signature_parse_compact for details about the encoding.
551
551
*/
552
552
SECP256K1_API int secp256k1_ecdsa_signature_serialize_compact (
553
- const secp256k1_context * ctx ,
553
+ const secp256k1_context * ctx ,
554
554
unsigned char * output64 ,
555
- const secp256k1_ecdsa_signature * sig
555
+ const secp256k1_ecdsa_signature * sig
556
556
) SECP256K1_ARG_NONNULL (1 ) SECP256K1_ARG_NONNULL (2 ) SECP256K1_ARG_NONNULL (3 );
557
557
558
558
/** Verify an ECDSA signature.
@@ -581,7 +581,7 @@ SECP256K1_API int secp256k1_ecdsa_signature_serialize_compact(
581
581
* For details, see the comments for that function.
582
582
*/
583
583
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ecdsa_verify (
584
- const secp256k1_context * ctx ,
584
+ const secp256k1_context * ctx ,
585
585
const secp256k1_ecdsa_signature * sig ,
586
586
const unsigned char * msghash32 ,
587
587
const secp256k1_pubkey * pubkey
@@ -629,7 +629,7 @@ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ecdsa_verify(
629
629
* secp256k1_ecdsa_signature_normalize must be called before verification.
630
630
*/
631
631
SECP256K1_API int secp256k1_ecdsa_signature_normalize (
632
- const secp256k1_context * ctx ,
632
+ const secp256k1_context * ctx ,
633
633
secp256k1_ecdsa_signature * sigout ,
634
634
const secp256k1_ecdsa_signature * sigin
635
635
) SECP256K1_ARG_NONNULL (1 ) SECP256K1_ARG_NONNULL (3 );
@@ -662,7 +662,7 @@ SECP256K1_API_VAR const secp256k1_nonce_function secp256k1_nonce_function_defaul
662
662
* secp256k1_ecdsa_signature_normalize for more details.
663
663
*/
664
664
SECP256K1_API int secp256k1_ecdsa_sign (
665
- const secp256k1_context * ctx ,
665
+ const secp256k1_context * ctx ,
666
666
secp256k1_ecdsa_signature * sig ,
667
667
const unsigned char * msghash32 ,
668
668
const unsigned char * seckey ,
@@ -683,7 +683,7 @@ SECP256K1_API int secp256k1_ecdsa_sign(
683
683
* In: seckey: pointer to a 32-byte secret key.
684
684
*/
685
685
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_seckey_verify (
686
- const secp256k1_context * ctx ,
686
+ const secp256k1_context * ctx ,
687
687
const unsigned char * seckey
688
688
) SECP256K1_ARG_NONNULL (1 ) SECP256K1_ARG_NONNULL (2 );
689
689
@@ -696,7 +696,7 @@ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_seckey_verify(
696
696
* In: seckey: pointer to a 32-byte secret key.
697
697
*/
698
698
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_pubkey_create (
699
- const secp256k1_context * ctx ,
699
+ const secp256k1_context * ctx ,
700
700
secp256k1_pubkey * pubkey ,
701
701
const unsigned char * seckey
702
702
) SECP256K1_ARG_NONNULL (1 ) SECP256K1_ARG_NONNULL (2 ) SECP256K1_ARG_NONNULL (3 );
@@ -712,14 +712,14 @@ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_pubkey_create(
712
712
* seckey will be set to some unspecified value.
713
713
*/
714
714
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_seckey_negate (
715
- const secp256k1_context * ctx ,
715
+ const secp256k1_context * ctx ,
716
716
unsigned char * seckey
717
717
) SECP256K1_ARG_NONNULL (1 ) SECP256K1_ARG_NONNULL (2 );
718
718
719
719
/** Same as secp256k1_ec_seckey_negate, but DEPRECATED. Will be removed in
720
720
* future versions. */
721
721
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_privkey_negate (
722
- const secp256k1_context * ctx ,
722
+ const secp256k1_context * ctx ,
723
723
unsigned char * seckey
724
724
) SECP256K1_ARG_NONNULL (1 ) SECP256K1_ARG_NONNULL (2 )
725
725
SECP256K1_DEPRECATED ("Use secp256k1_ec_seckey_negate instead ");
@@ -731,7 +731,7 @@ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_privkey_negate(
731
731
* In/Out: pubkey: pointer to the public key to be negated.
732
732
*/
733
733
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_pubkey_negate (
734
- const secp256k1_context * ctx ,
734
+ const secp256k1_context * ctx ,
735
735
secp256k1_pubkey * pubkey
736
736
) SECP256K1_ARG_NONNULL (1 ) SECP256K1_ARG_NONNULL (2 );
737
737
@@ -751,15 +751,15 @@ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_pubkey_negate(
751
751
* is negligible (around 1 in 2^128).
752
752
*/
753
753
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_seckey_tweak_add (
754
- const secp256k1_context * ctx ,
754
+ const secp256k1_context * ctx ,
755
755
unsigned char * seckey ,
756
756
const unsigned char * tweak32
757
757
) SECP256K1_ARG_NONNULL (1 ) SECP256K1_ARG_NONNULL (2 ) SECP256K1_ARG_NONNULL (3 );
758
758
759
759
/** Same as secp256k1_ec_seckey_tweak_add, but DEPRECATED. Will be removed in
760
760
* future versions. */
761
761
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_privkey_tweak_add (
762
- const secp256k1_context * ctx ,
762
+ const secp256k1_context * ctx ,
763
763
unsigned char * seckey ,
764
764
const unsigned char * tweak32
765
765
) SECP256K1_ARG_NONNULL (1 ) SECP256K1_ARG_NONNULL (2 ) SECP256K1_ARG_NONNULL (3 )
@@ -779,7 +779,7 @@ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_privkey_tweak_add(
779
779
* is negligible (around 1 in 2^128).
780
780
*/
781
781
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_pubkey_tweak_add (
782
- const secp256k1_context * ctx ,
782
+ const secp256k1_context * ctx ,
783
783
secp256k1_pubkey * pubkey ,
784
784
const unsigned char * tweak32
785
785
) SECP256K1_ARG_NONNULL (1 ) SECP256K1_ARG_NONNULL (2 ) SECP256K1_ARG_NONNULL (3 );
@@ -798,15 +798,15 @@ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_pubkey_tweak_add(
798
798
* is negligible (around 1 in 2^128).
799
799
*/
800
800
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_seckey_tweak_mul (
801
- const secp256k1_context * ctx ,
801
+ const secp256k1_context * ctx ,
802
802
unsigned char * seckey ,
803
803
const unsigned char * tweak32
804
804
) SECP256K1_ARG_NONNULL (1 ) SECP256K1_ARG_NONNULL (2 ) SECP256K1_ARG_NONNULL (3 );
805
805
806
806
/** Same as secp256k1_ec_seckey_tweak_mul, but DEPRECATED. Will be removed in
807
807
* future versions. */
808
808
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_privkey_tweak_mul (
809
- const secp256k1_context * ctx ,
809
+ const secp256k1_context * ctx ,
810
810
unsigned char * seckey ,
811
811
const unsigned char * tweak32
812
812
) SECP256K1_ARG_NONNULL (1 ) SECP256K1_ARG_NONNULL (2 ) SECP256K1_ARG_NONNULL (3 )
@@ -824,7 +824,7 @@ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_privkey_tweak_mul(
824
824
* is negligible (around 1 in 2^128).
825
825
*/
826
826
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_pubkey_tweak_mul (
827
- const secp256k1_context * ctx ,
827
+ const secp256k1_context * ctx ,
828
828
secp256k1_pubkey * pubkey ,
829
829
const unsigned char * tweak32
830
830
) SECP256K1_ARG_NONNULL (1 ) SECP256K1_ARG_NONNULL (2 ) SECP256K1_ARG_NONNULL (3 );
@@ -862,7 +862,7 @@ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_pubkey_tweak_mul(
862
862
* enhanced protection against side-channel leakage currently.
863
863
*/
864
864
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_context_randomize (
865
- secp256k1_context * ctx ,
865
+ secp256k1_context * ctx ,
866
866
const unsigned char * seed32
867
867
) SECP256K1_ARG_NONNULL (1 );
868
868
@@ -876,9 +876,9 @@ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_context_randomize(
876
876
* n: the number of public keys to add together (must be at least 1).
877
877
*/
878
878
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_pubkey_combine (
879
- const secp256k1_context * ctx ,
879
+ const secp256k1_context * ctx ,
880
880
secp256k1_pubkey * out ,
881
- const secp256k1_pubkey * const * ins ,
881
+ const secp256k1_pubkey * const * ins ,
882
882
size_t n
883
883
) SECP256K1_ARG_NONNULL (1 ) SECP256K1_ARG_NONNULL (2 ) SECP256K1_ARG_NONNULL (3 );
884
884
@@ -899,7 +899,7 @@ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_pubkey_combine(
899
899
* msglen: length of the message array
900
900
*/
901
901
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_tagged_sha256 (
902
- const secp256k1_context * ctx ,
902
+ const secp256k1_context * ctx ,
903
903
unsigned char * hash32 ,
904
904
const unsigned char * tag ,
905
905
size_t taglen ,
0 commit comments