Changeset View
Changeset View
Standalone View
Standalone View
src/secp256k1/src/group_impl.h
/*********************************************************************** | /*********************************************************************** | ||||
* Copyright (c) 2013, 2014 Pieter Wuille * | * Copyright (c) 2013, 2014 Pieter Wuille * | ||||
* 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_GROUP_IMPL_H | #ifndef SECP256K1_GROUP_IMPL_H | ||||
#define SECP256K1_GROUP_IMPL_H | #define SECP256K1_GROUP_IMPL_H | ||||
#include "num.h" | |||||
#include "field.h" | #include "field.h" | ||||
#include "group.h" | #include "group.h" | ||||
/* These exhaustive group test orders and generators are chosen such that: | /* These exhaustive group test orders and generators are chosen such that: | ||||
* - The field size is equal to that of secp256k1, so field code is the same. | * - The field size is equal to that of secp256k1, so field code is the same. | ||||
* - The curve equation is of the form y^2=x^3+B for some constant B. | * - The curve equation is of the form y^2=x^3+B for some constant B. | ||||
* - The subgroup has a generator 2*P, where P.x=1. | * - The subgroup has a generator 2*P, where P.x=1. | ||||
* - The subgroup has size less than 1000 to permit exhaustive testing. | * - The subgroup has size less than 1000 to permit exhaustive testing. | ||||
▲ Show 20 Lines • Show All 675 Lines • Show Last 20 Lines |