repo_id
stringlengths
0
42
file_path
stringlengths
15
97
content
stringlengths
2
2.41M
__index_level_0__
int64
0
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/cmake/arm-linux-gnueabihf.toolchain.cmake
set(CMAKE_SYSTEM_NAME Linux) set(CMAKE_SYSTEM_PROCESSOR arm) set(CMAKE_C_COMPILER arm-linux-gnueabihf-gcc)
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/cmake/CheckArm32Assembly.cmake
function(check_arm32_assembly) try_compile(HAVE_ARM32_ASM ${CMAKE_BINARY_DIR}/check_arm32_assembly SOURCES ${CMAKE_SOURCE_DIR}/cmake/source_arm32.s ) endfunction()
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/cmake/config.cmake.in
@PACKAGE_INIT@ include("${CMAKE_CURRENT_LIST_DIR}/@PROJECT_NAME@-targets.cmake") check_required_components(@PROJECT_NAME@)
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/cmake/CheckStringOptionValue.cmake
function(check_string_option_value option) get_property(expected_values CACHE ${option} PROPERTY STRINGS) if(expected_values) if(${option} IN_LIST expected_values) return() endif() message(FATAL_ERROR "${option} value is \"${${option}}\", but must be one of ${expected_values}.") endif() messag...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/cmake/TryAppendCFlags.cmake
include(CheckCCompilerFlag) function(secp256k1_check_c_flags_internal flags output) string(MAKE_C_IDENTIFIER "${flags}" result) string(TOUPPER "${result}" result) set(result "C_SUPPORTS_${result}") if(NOT MSVC) set(CMAKE_REQUIRED_FLAGS "-Werror") endif() # This avoids running a linker. set(CMAKE_TRY...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/ci/linux-debian.Dockerfile
FROM debian:stable-slim SHELL ["/bin/bash", "-c"] WORKDIR /root # A too high maximum number of file descriptors (with the default value # inherited from the docker host) can cause issues with some of our tools: # - sanitizers hanging: https://github.com/google/sanitizers/issues/1662 # - valgrind crashing: https:/...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/ci/ci.sh
#!/bin/sh set -eux export LC_ALL=C # Print commit and relevant CI environment to allow reproducing the job outside of CI. git show --no-patch print_environment() { # Turn off -x because it messes up the output set +x # There are many ways to print variable names and their content. This one # does not...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/include/secp256k1_ecdh.h
#ifndef SECP256K1_ECDH_H #define SECP256K1_ECDH_H #include "secp256k1.h" #ifdef __cplusplus extern "C" { #endif /** A pointer to a function that hashes an EC point to obtain an ECDH secret * * Returns: 1 if the point was successfully hashed. * 0 will cause secp256k1_ecdh to fail and return 0. * ...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/include/secp256k1_schnorrsig.h
#ifndef SECP256K1_SCHNORRSIG_H #define SECP256K1_SCHNORRSIG_H #include "secp256k1.h" #include "secp256k1_extrakeys.h" #ifdef __cplusplus extern "C" { #endif /** This module implements a variant of Schnorr signatures compliant with * Bitcoin Improvement Proposal 340 "Schnorr Signatures for secp256k1" * (https://g...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/include/secp256k1_recovery.h
#ifndef SECP256K1_RECOVERY_H #define SECP256K1_RECOVERY_H #include "secp256k1.h" #ifdef __cplusplus extern "C" { #endif /** Opaque data structured that holds a parsed ECDSA signature, * supporting pubkey recovery. * * The exact representation of data inside is implementation defined and not * guaranteed to be...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/include/secp256k1_extrakeys.h
#ifndef SECP256K1_EXTRAKEYS_H #define SECP256K1_EXTRAKEYS_H #include "secp256k1.h" #ifdef __cplusplus extern "C" { #endif /** Opaque data structure that holds a parsed and valid "x-only" public key. * An x-only pubkey encodes a point whose Y coordinate is even. It is * serialized using only its X coordinate (32 ...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/include/secp256k1_ellswift.h
#ifndef SECP256K1_ELLSWIFT_H #define SECP256K1_ELLSWIFT_H #include "secp256k1.h" #ifdef __cplusplus extern "C" { #endif /* This module provides an implementation of ElligatorSwift as well as a * version of x-only ECDH using it (including compatibility with BIP324). * * ElligatorSwift is described in https://eprin...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/include/secp256k1_preallocated.h
#ifndef SECP256K1_PREALLOCATED_H #define SECP256K1_PREALLOCATED_H #include "secp256k1.h" #ifdef __cplusplus extern "C" { #endif /* The module provided by this header file is intended for settings in which it * is not possible or desirable to rely on dynamic memory allocation. It provides * functions for creating, ...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/include/secp256k1.h
#ifndef SECP256K1_H #define SECP256K1_H #ifdef __cplusplus extern "C" { #endif #include <stddef.h> /** Unless explicitly stated all pointer arguments must not be NULL. * * The following rules specify the order of arguments in API calls: * * 1. Context pointers go first, followed by output arguments, combined * ...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/contrib/lax_der_parsing.h
/*********************************************************************** * Copyright (c) 2015 Pieter Wuille * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/contrib/lax_der_privatekey_parsing.c
/*********************************************************************** * Copyright (c) 2014, 2015 Pieter Wuille * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/contrib/lax_der_parsing.c
/*********************************************************************** * Copyright (c) 2015 Pieter Wuille * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/contrib/lax_der_privatekey_parsing.h
/*********************************************************************** * Copyright (c) 2014, 2015 Pieter Wuille * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/examples/CMakeLists.txt
function(add_example name) set(target_name ${name}_example) add_executable(${target_name} ${name}.c) target_include_directories(${target_name} PRIVATE ${PROJECT_SOURCE_DIR}/include ) target_link_libraries(${target_name} secp256k1 $<$<PLATFORM_ID:Windows>:bcrypt> ) set(test_name ${name}_example...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/examples/ecdh.c
/************************************************************************* * Written in 2020-2022 by Elichai Turkel * * To the extent possible under law, the author(s) have dedicated all * * copyright and related and neighboring rights to the software in this * * file to the publi...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/examples/examples_util.h
/************************************************************************* * Copyright (c) 2020-2021 Elichai Turkel * * Distributed under the CC0 software license, see the accompanying file * * EXAMPLES_COPYING or https://creativecommons.org/publicdomain/zero/1.0 * *******************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/examples/ecdsa.c
/************************************************************************* * Written in 2020-2022 by Elichai Turkel * * To the extent possible under law, the author(s) have dedicated all * * copyright and related and neighboring rights to the software in this * * file to the publi...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/examples/schnorr.c
/************************************************************************* * Written in 2020-2022 by Elichai Turkel * * To the extent possible under law, the author(s) have dedicated all * * copyright and related and neighboring rights to the software in this * * file to the publi...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/examples/EXAMPLES_COPYING
Creative Commons Legal Code CC0 1.0 Universal CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WAR...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/doc/safegcd_implementation.md
# The safegcd implementation in libsecp256k1 explained This document explains the modular inverse and Jacobi symbol implementations in the `src/modinv*.h` files. It is based on the paper ["Fast constant-time gcd computation and modular inversion"](https://gcd.cr.yp.to/papers.html#safegcd) by Daniel J. Bernstein and Bo...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/doc/release-process.md
# Release Process This document outlines the process for releasing versions of the form `$MAJOR.$MINOR.$PATCH`. We distinguish between two types of releases: *regular* and *maintenance* releases. Regular releases are releases of a new major or minor version as well as patches of the most recent release. Maintenance r...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/doc/ellswift.md
# ElligatorSwift for secp256k1 explained In this document we explain how the `ellswift` module implementation is related to the construction in the ["SwiftEC: Shallue–van de Woestijne Indifferentiable Function To Elliptic Curves"](https://eprint.iacr.org/2022/759) paper by Jorge Chávez-Saab, Francisco Rodríguez-Henríq...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/sage/secp256k1_params.sage
"""Prime order of finite field underlying secp256k1 (2^256 - 2^32 - 977)""" P = 0xFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F """Finite field underlying secp256k1""" F = FiniteField(P) """Elliptic curve secp256k1: y^2 = x^3 + 7""" C = EllipticCurve([F(0), F(7)]) """Base point of secp256k1""" G =...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/sage/prove_group_implementations.sage
# Test libsecp256k1' group operation implementations using prover.sage import sys load("group_prover.sage") load("weierstrass_prover.sage") def formula_secp256k1_gej_double_var(a): """libsecp256k1's secp256k1_gej_double_var, used by various addition functions""" rz = a.Z * a.Y s = a.Y^2 l = a.X^2 l = l * 3...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/sage/gen_split_lambda_constants.sage
""" Generates the constants used in secp256k1_scalar_split_lambda. See the comments for secp256k1_scalar_split_lambda in src/scalar_impl.h for detailed explanations. """ load("secp256k1_params.sage") def inf_norm(v): """Returns the infinity norm of a vector.""" return max(map(abs, v)) def gauss_reduction(i1...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/sage/weierstrass_prover.sage
# Prover implementation for Weierstrass curves of the form # y^2 = x^3 + A * x + B, specifically with a = 0 and b = 7, with group laws # operating on affine and Jacobian coordinates, including the point at infinity # represented by a 4th variable in coordinates. load("group_prover.sage") class affinepoint: def __i...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/sage/group_prover.sage
# This code supports verifying group implementations which have branches # or conditional statements (like cmovs), by allowing each execution path # to independently set assumptions on input or intermediary variables. # # The general approach is: # * A constraint is a tuple of two sets of symbolic expressions: # the ...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/sage/gen_exhaustive_groups.sage
load("secp256k1_params.sage") MAX_ORDER = 1000 # Set of (curve) orders we have encountered so far. orders_done = set() # Map from (subgroup) orders to [b, int(gen.x), int(gen.y), gen, lambda] for those subgroups. solutions = {} # Iterate over curves of the form y^2 = x^3 + B. for b in range(1, P): # There are o...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/precompute_ecmult_gen.c
/********************************************************************************* * Copyright (c) 2013, 2014, 2015, 2021 Thomas Daede, Cory Fields, Pieter Wuille * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php....
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/scalar_impl.h
/*********************************************************************** * Copyright (c) 2014 Pieter Wuille * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/field_10x26_impl.h
/*********************************************************************** * Copyright (c) 2013, 2014 Pieter Wuille * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/testrand_impl.h
/*********************************************************************** * Copyright (c) 2013-2015 Pieter Wuille * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/precomputed_ecmult_gen.c
/* This file was automatically generated by precompute_ecmult_gen. */ /* See ecmult_gen_impl.h for details about the contents of this file. */ #include "group.h" #include "ecmult_gen.h" #include "precomputed_ecmult_gen.h" #ifdef EXHAUSTIVE_TEST_ORDER # error Cannot compile precomputed_ecmult_gen.c in exhaustive test...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/ecmult_compute_table.h
/***************************************************************************************************** * Copyright (c) 2013, 2014, 2017, 2021 Pieter Wuille, Andrew Poelstra, Jonas Nick, Russell O'Connor * * Distributed under the MIT software license, see the accompanying * * file COP...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/modinv32_impl.h
/*********************************************************************** * Copyright (c) 2020 Peter Dettman * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/scratch.h
/*********************************************************************** * Copyright (c) 2017 Andrew Poelstra * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/ecmult_gen_impl.h
/*********************************************************************** * Copyright (c) 2013, 2014, 2015 Pieter Wuille, Gregory Maxwell * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/CMakeLists.txt
# Must be included before CMAKE_INSTALL_INCLUDEDIR is used. include(GNUInstallDirs) add_library(secp256k1_precomputed OBJECT EXCLUDE_FROM_ALL precomputed_ecmult.c precomputed_ecmult_gen.c ) # Add objects explicitly rather than linking to the object libs to keep them # from being exported. add_library(secp256k1 se...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/selftest.h
/*********************************************************************** * Copyright (c) 2020 Pieter Wuille * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/field_10x26.h
/*********************************************************************** * Copyright (c) 2013, 2014 Pieter Wuille * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/modinv32.h
/*********************************************************************** * Copyright (c) 2020 Peter Dettman * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/scalar_8x32_impl.h
/*********************************************************************** * Copyright (c) 2014 Pieter Wuille * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/field_5x52.h
/*********************************************************************** * Copyright (c) 2013, 2014 Pieter Wuille * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/field.h
/*********************************************************************** * Copyright (c) 2013, 2014 Pieter Wuille * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/bench.h
/*********************************************************************** * Copyright (c) 2014 Pieter Wuille * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/field_5x52_asm_impl.h
/*********************************************************************** * Copyright (c) 2013-2014 Diederik Huys, Pieter Wuille * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/field_impl.h
/*********************************************************************** * Copyright (c) 2013, 2014 Pieter Wuille * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/scalar_4x64.h
/*********************************************************************** * Copyright (c) 2014 Pieter Wuille * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/field_5x52_impl.h
/*********************************************************************** * Copyright (c) 2013, 2014 Pieter Wuille * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/ecmult_const_impl.h
/*********************************************************************** * Copyright (c) 2015 Pieter Wuille, Andrew Poelstra * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/secp256k1.c
/*********************************************************************** * Copyright (c) 2013-2015 Pieter Wuille * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/ecmult_gen_compute_table_impl.h
/*********************************************************************** * Copyright (c) 2013, 2014, 2015 Pieter Wuille, Gregory Maxwell * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/ecdsa.h
/*********************************************************************** * Copyright (c) 2013, 2014 Pieter Wuille * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/precomputed_ecmult.h
/***************************************************************************************************** * Copyright (c) 2013, 2014, 2017, 2021 Pieter Wuille, Andrew Poelstra, Jonas Nick, Russell O'Connor * * Distributed under the MIT software license, see the accompanying * * file COP...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/tests_exhaustive.c
/*********************************************************************** * Copyright (c) 2016 Andrew Poelstra * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/scalar.h
/*********************************************************************** * Copyright (c) 2014 Pieter Wuille * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/ecdsa_impl.h
/*********************************************************************** * Copyright (c) 2013-2015 Pieter Wuille * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/precompute_ecmult.c
/***************************************************************************************************** * Copyright (c) 2013, 2014, 2017, 2021 Pieter Wuille, Andrew Poelstra, Jonas Nick, Russell O'Connor * * Distributed under the MIT software license, see the accompanying * * file COP...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/modinv64.h
/*********************************************************************** * Copyright (c) 2020 Peter Dettman * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/ecmult_gen.h
/*********************************************************************** * Copyright (c) 2013, 2014 Pieter Wuille * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/precomputed_ecmult_gen.h
/********************************************************************************* * Copyright (c) 2013, 2014, 2015, 2021 Thomas Daede, Cory Fields, Pieter Wuille * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php....
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/int128_native_impl.h
#ifndef SECP256K1_INT128_NATIVE_IMPL_H #define SECP256K1_INT128_NATIVE_IMPL_H #include "int128.h" #include "util.h" static SECP256K1_INLINE void secp256k1_u128_load(secp256k1_uint128 *r, uint64_t hi, uint64_t lo) { *r = (((uint128_t)hi) << 64) + lo; } static SECP256K1_INLINE void secp256k1_u128_mul(secp256k1_uin...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/scalar_low_impl.h
/*********************************************************************** * Copyright (c) 2015 Andrew Poelstra * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/hash_impl.h
/*********************************************************************** * Copyright (c) 2014 Pieter Wuille * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/ecmult.h
/*********************************************************************** * Copyright (c) 2013, 2014, 2017 Pieter Wuille, Andrew Poelstra * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/scratch_impl.h
/*********************************************************************** * Copyright (c) 2017 Andrew Poelstra * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/ecmult_compute_table_impl.h
/***************************************************************************************************** * Copyright (c) 2013, 2014, 2017, 2021 Pieter Wuille, Andrew Poelstra, Jonas Nick, Russell O'Connor * * Distributed under the MIT software license, see the accompanying * * file COP...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/ecmult_impl.h
/****************************************************************************** * Copyright (c) 2013, 2014, 2017 Pieter Wuille, Andrew Poelstra, Jonas Nick * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php. * ...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/group.h
/*********************************************************************** * Copyright (c) 2013, 2014 Pieter Wuille * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/int128_struct.h
#ifndef SECP256K1_INT128_STRUCT_H #define SECP256K1_INT128_STRUCT_H #include <stdint.h> #include "util.h" typedef struct { uint64_t lo; uint64_t hi; } secp256k1_uint128; typedef secp256k1_uint128 secp256k1_int128; #endif
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/tests.c
/*********************************************************************** * Copyright (c) 2013, 2014, 2015 Pieter Wuille, Gregory Maxwell * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/checkmem.h
/*********************************************************************** * Copyright (c) 2022 Pieter Wuille * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/util.h
/*********************************************************************** * Copyright (c) 2013, 2014 Pieter Wuille * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/ctime_tests.c
/*********************************************************************** * Copyright (c) 2020 Gregory Maxwell * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/int128.h
#ifndef SECP256K1_INT128_H #define SECP256K1_INT128_H #include "util.h" #if defined(SECP256K1_WIDEMUL_INT128) # if defined(SECP256K1_INT128_NATIVE) # include "int128_native.h" # elif defined(SECP256K1_INT128_STRUCT) # include "int128_struct.h" # else # error "Please select int128 implementation" # endif ...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/assumptions.h
/*********************************************************************** * Copyright (c) 2020 Pieter Wuille * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/field_5x52_int128_impl.h
/*********************************************************************** * Copyright (c) 2013, 2014 Pieter Wuille * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/modinv64_impl.h
/*********************************************************************** * Copyright (c) 2020 Peter Dettman * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/scalar_4x64_impl.h
/*********************************************************************** * Copyright (c) 2013, 2014 Pieter Wuille * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/int128_impl.h
#ifndef SECP256K1_INT128_IMPL_H #define SECP256K1_INT128_IMPL_H #include "util.h" #include "int128.h" #if defined(SECP256K1_WIDEMUL_INT128) # if defined(SECP256K1_INT128_NATIVE) # include "int128_native_impl.h" # elif defined(SECP256K1_INT128_STRUCT) # include "int128_struct_impl.h" # else # error "Pleas...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/ecmult_gen_compute_table.h
/*********************************************************************** * Copyright (c) 2013, 2014, 2015 Pieter Wuille, Gregory Maxwell * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/group_impl.h
/*********************************************************************** * Copyright (c) 2013, 2014 Pieter Wuille * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/int128_native.h
#ifndef SECP256K1_INT128_NATIVE_H #define SECP256K1_INT128_NATIVE_H #include <stdint.h> #include "util.h" #if !defined(UINT128_MAX) && defined(__SIZEOF_INT128__) SECP256K1_GNUC_EXT typedef unsigned __int128 uint128_t; SECP256K1_GNUC_EXT typedef __int128 int128_t; # define UINT128_MAX ((uint128_t)(-1)) # define INT128...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/bench.c
/*********************************************************************** * Copyright (c) 2014 Pieter Wuille * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/ecmult_const.h
/*********************************************************************** * Copyright (c) 2015 Andrew Poelstra * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/bench_internal.c
/*********************************************************************** * Copyright (c) 2014-2015 Pieter Wuille * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/int128_struct_impl.h
#ifndef SECP256K1_INT128_STRUCT_IMPL_H #define SECP256K1_INT128_STRUCT_IMPL_H #include "int128.h" #include "util.h" #if defined(_MSC_VER) && (defined(_M_X64) || defined(_M_ARM64)) /* MSVC */ # include <intrin.h> # if defined(_M_ARM64) || defined(SECP256K1_MSVC_MULH_TEST_OVERRIDE) /* On ARM64 MSVC, use __(u)mulh...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/precomputed_ecmult.c
/* This file was automatically generated by precompute_ecmult. */ /* This file contains an array secp256k1_pre_g with odd multiples of the base point G and * an array secp256k1_pre_g_128 with odd multiples of 2^128*G for accelerating the computation of a*P + b*G. */ #include "group.h" #include "ecmult.h" #include "pr...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/hash.h
/*********************************************************************** * Copyright (c) 2014 Pieter Wuille * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/eckey_impl.h
/*********************************************************************** * Copyright (c) 2013, 2014 Pieter Wuille * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/bench_ecmult.c
/*********************************************************************** * Copyright (c) 2017 Pieter Wuille * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/testrand.h
/*********************************************************************** * Copyright (c) 2013, 2014 Pieter Wuille * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/scalar_8x32.h
/*********************************************************************** * Copyright (c) 2014 Pieter Wuille * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/scalar_low.h
/*********************************************************************** * Copyright (c) 2015 Andrew Poelstra * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0
bitcoin/src/secp256k1
bitcoin/src/secp256k1/src/eckey.h
/*********************************************************************** * Copyright (c) 2013, 2014 Pieter Wuille * * Distributed under the MIT software license, see the accompanying * * file COPYING or https://www.opensource.org/licenses/mit-license.php.* ***************************...
0