Lines Matching refs:output_pk

146     secp256k1_pubkey output_pk;  in test_xonly_pubkey_tweak()  local
163 CHECK(secp256k1_xonly_pubkey_tweak_add(none, &output_pk, &internal_xonly_pk, tweak) == 0); in test_xonly_pubkey_tweak()
165 CHECK(secp256k1_xonly_pubkey_tweak_add(sign, &output_pk, &internal_xonly_pk, tweak) == 0); in test_xonly_pubkey_tweak()
167 CHECK(secp256k1_xonly_pubkey_tweak_add(verify, &output_pk, &internal_xonly_pk, tweak) == 1); in test_xonly_pubkey_tweak()
170 CHECK(secp256k1_xonly_pubkey_tweak_add(verify, &output_pk, NULL, tweak) == 0); in test_xonly_pubkey_tweak()
173 CHECK(secp256k1_memcmp_var(&output_pk, zeros64, sizeof(output_pk)) == 0); in test_xonly_pubkey_tweak()
174 CHECK(secp256k1_xonly_pubkey_tweak_add(verify, &output_pk, &internal_xonly_pk, NULL) == 0); in test_xonly_pubkey_tweak()
177 CHECK(secp256k1_memcmp_var(&output_pk, zeros64, sizeof(output_pk)) == 0); in test_xonly_pubkey_tweak()
180 CHECK(secp256k1_xonly_pubkey_tweak_add(verify, &output_pk, &internal_xonly_pk, overflows) == 0); in test_xonly_pubkey_tweak()
181 CHECK(secp256k1_memcmp_var(&output_pk, zeros64, sizeof(output_pk)) == 0); in test_xonly_pubkey_tweak()
184 CHECK(secp256k1_xonly_pubkey_tweak_add(verify, &output_pk, &internal_xonly_pk, zeros64) == 1); in test_xonly_pubkey_tweak()
194 CHECK((secp256k1_xonly_pubkey_tweak_add(verify, &output_pk, &internal_xonly_pk, sk) == 0) in test_xonly_pubkey_tweak()
195 … || (secp256k1_xonly_pubkey_tweak_add(verify, &output_pk, &internal_xonly_pk, tweak) == 0)); in test_xonly_pubkey_tweak()
196 CHECK(secp256k1_memcmp_var(&output_pk, zeros64, sizeof(output_pk)) == 0); in test_xonly_pubkey_tweak()
203 CHECK(secp256k1_xonly_pubkey_tweak_add(verify, &output_pk, &internal_xonly_pk, tweak) == 0); in test_xonly_pubkey_tweak()
205 CHECK(secp256k1_memcmp_var(&output_pk, zeros64, sizeof(output_pk)) == 0); in test_xonly_pubkey_tweak()
218 secp256k1_pubkey output_pk; in test_xonly_pubkey_tweak_check() local
237 CHECK(secp256k1_xonly_pubkey_tweak_add(verify, &output_pk, &internal_xonly_pk, tweak) == 1); in test_xonly_pubkey_tweak_check()
238 … CHECK(secp256k1_xonly_pubkey_from_pubkey(verify, &output_xonly_pk, &pk_parity, &output_pk) == 1); in test_xonly_pubkey_tweak_check()
257 CHECK(secp256k1_xonly_pubkey_tweak_add(ctx, &output_pk, &internal_xonly_pk, tweak) == 1); in test_xonly_pubkey_tweak_check()
258 CHECK(secp256k1_xonly_pubkey_from_pubkey(ctx, &output_xonly_pk, &pk_parity, &output_pk) == 1); in test_xonly_pubkey_tweak_check()
270 CHECK(secp256k1_xonly_pubkey_tweak_add(ctx, &output_pk, &internal_xonly_pk, overflows) == 0); in test_xonly_pubkey_tweak_check()
271 CHECK(secp256k1_memcmp_var(&output_pk, zeros64, sizeof(output_pk)) == 0); in test_xonly_pubkey_tweak_check()
506 secp256k1_xonly_pubkey output_pk; in test_keypair_add() local
516 CHECK(secp256k1_keypair_xonly_pub(ctx, &output_pk, &pk_parity, &keypair) == 1); in test_keypair_add()
519 CHECK(secp256k1_xonly_pubkey_serialize(ctx, pk32, &output_pk) == 1); in test_keypair_add()