Botan 3.5.0
Crypto and TLS for C&
pcurves_secp256k1.cpp
Go to the documentation of this file.
1/*
2* (C) 2024 Jack Lloyd
3*
4* Botan is released under the Simplified BSD License (see license.txt)
5*/
6
7#include <botan/internal/pcurves_instance.h>
8
9#include <botan/internal/pcurves_wrap.h>
10
11namespace Botan::PCurve {
12
13namespace {
14
15// clang-format off
16namespace secp256k1 {
17
18class Params final : public EllipticCurveParameters<
19 "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F",
20 "0",
21 "7",
22 "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEBAAEDCE6AF48A03BBFD25E8CD0364141",
23 "79BE667EF9DCBBAC55A06295CE870B07029BFCDB2DCE28D959F2815B16F81798",
24 "483ADA7726A3C4655DA4FBFC0E1108A8FD17B448A68554199C47D08FFB10D4B8"> {
25};
26
27class Curve final : public EllipticCurve<Params> {};
28
29}
30
31// clang-format on
32
33} // namespace
34
35std::shared_ptr<const PrimeOrderCurve> PCurveInstance::secp256k1() {
37}
38
39} // namespace Botan::PCurve
static std::shared_ptr< const PrimeOrderCurve > secp256k1()
Definition pcurves.cpp:40
static std::shared_ptr< const PrimeOrderCurve > instance()
int(* final)(unsigned char *, CTX *)