@@ -588,7 +588,8 @@ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_pubkey_create(
588
588
* secp256k1_ec_seckey_verify. 1 otherwise
589
589
* Args: ctx: pointer to a context object
590
590
* In/Out: seckey: pointer to the 32-byte private key to be negated. The private
591
- * key should be valid according to secp256k1_ec_seckey_verify
591
+ * key should be valid according to secp256k1_ec_seckey_verify.
592
+ * Value becomes unspecified if this function returns 0.
592
593
* (cannot be NULL)
593
594
*/
594
595
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_privkey_negate (
@@ -614,7 +615,8 @@ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_pubkey_negate(
614
615
* private key would be invalid (only when the tweak is the complement
615
616
* of the private key). 1 otherwise.
616
617
* Args: ctx: pointer to a context object (cannot be NULL).
617
- * In/Out: seckey: pointer to a 32-byte private key.
618
+ * In/Out: seckey: pointer to a 32-byte private key. Value becomes unspecified if this
619
+ * function returns 0. (cannot be NULL)
618
620
* In: tweak: pointer to a 32-byte tweak.
619
621
*/
620
622
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_privkey_tweak_add (
@@ -631,7 +633,8 @@ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_privkey_tweak_add(
631
633
* of the corresponding private key). 1 otherwise.
632
634
* Args: ctx: pointer to a context object initialized for validation
633
635
* (cannot be NULL).
634
- * In/Out: pubkey: pointer to a public key object.
636
+ * In/Out: pubkey: pointer to a public key object. Value becomes unspecified if this
637
+ * function returns 0. (cannot be NULL).
635
638
* In: tweak: pointer to a 32-byte tweak.
636
639
*/
637
640
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_pubkey_tweak_add (
@@ -644,7 +647,8 @@ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_pubkey_tweak_add(
644
647
* Returns: 0 if the tweak was out of range (chance of around 1 in 2^128 for
645
648
* uniformly random 32-byte arrays, or equal to zero. 1 otherwise.
646
649
* Args: ctx: pointer to a context object (cannot be NULL).
647
- * In/Out: seckey: pointer to a 32-byte private key.
650
+ * In/Out: seckey: pointer to a 32-byte private key. Value becomes unspecified if this
651
+ * function returns 0. (cannot be NULL).
648
652
* In: tweak: pointer to a 32-byte tweak.
649
653
*/
650
654
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_privkey_tweak_mul (
@@ -658,7 +662,8 @@ SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_privkey_tweak_mul(
658
662
* uniformly random 32-byte arrays, or equal to zero. 1 otherwise.
659
663
* Args: ctx: pointer to a context object initialized for validation
660
664
* (cannot be NULL).
661
- * In/Out: pubkey: pointer to a public key object.
665
+ * In/Out: pubkey: pointer to a public key object. Value becomes unspecified if this
666
+ * function returns 0. (cannot be NULL).
662
667
* In: tweak: pointer to a 32-byte tweak.
663
668
*/
664
669
SECP256K1_API SECP256K1_WARN_UNUSED_RESULT int secp256k1_ec_pubkey_tweak_mul (
0 commit comments