Changeset View
Changeset View
Standalone View
Standalone View
src/secp256k1/src/modules/schnorrsig/tests_impl.h
/*********************************************************************** | /*********************************************************************** | ||||
* Copyright (c) 2018-2020 Andrew Poelstra, Jonas Nick * | * Copyright (c) 2018-2020 Andrew Poelstra, Jonas Nick * | ||||
* Distributed under the MIT software license, see the accompanying * | * Distributed under the MIT software license, see the accompanying * | ||||
* file COPYING or https://www.opensource.org/licenses/mit-license.php.* | * file COPYING or https://www.opensource.org/licenses/mit-license.php.* | ||||
***********************************************************************/ | ***********************************************************************/ | ||||
#ifndef _SECP256K1_MODULE_SCHNORRSIG_TESTS_ | #ifndef SECP256K1_MODULE_SCHNORRSIG_TESTS_H | ||||
#define _SECP256K1_MODULE_SCHNORRSIG_TESTS_ | #define SECP256K1_MODULE_SCHNORRSIG_TESTS_H | ||||
#include "secp256k1_schnorrsig.h" | #include "secp256k1_schnorrsig.h" | ||||
/* Checks that a bit flip in the n_flip-th argument (that has n_bytes many | /* Checks that a bit flip in the n_flip-th argument (that has n_bytes many | ||||
* bytes) changes the hash function | * bytes) changes the hash function | ||||
*/ | */ | ||||
void nonce_function_bip340_bitflip(unsigned char **args, size_t n_flip, size_t n_bytes) { | void nonce_function_bip340_bitflip(unsigned char **args, size_t n_flip, size_t n_bytes) { | ||||
unsigned char nonces[2][32]; | unsigned char nonces[2][32]; | ||||
▲ Show 20 Lines • Show All 790 Lines • Show Last 20 Lines |