Botan 2.13.0 Crypto and TLS for C++11

- Main Page
- Namespaces
- Classes
- Files

- File List
- File Members

curve_nistp.h
Go to the documentation of this file.
1 /*
2 * Arithmetic operations specialized for NIST ECC primes
3 * (C) 2014,2015 Jack Lloyd
4 *
5 * Botan is released under the Simplified BSD License (see license.txt)
6 */
7
8 #ifndef BOTAN_NIST_PRIMES_H_
9 #define BOTAN_NIST_PRIMES_H_
10
11 #include <botan/bigint.h>
12
13 BOTAN_FUTURE_INTERNAL_HEADER(curve_nistp.h)
14
15 namespace Botan {
16
17 /**
18 * NIST Prime reduction functions.
19 *
20 * Reduces the value in place
21 *
22 * ws is a workspace function which is used as a temporary,
23 * and will be resized as needed.
24 */
25 BOTAN_PUBLIC_API(2,0) const BigInt& prime_p521();
26 BOTAN_PUBLIC_API(2,0) void redc_p521(BigInt& x, secure_vector<word>& ws);
27
28 /*
29 Previously this macro indicated if the P-{192,224,256,384} reducers
30 were available. Now they are always enabled and this macro has no meaning.
31 The define will be removed in a future major release.
32 */
33 #define BOTAN_HAS_NIST_PRIME_REDUCERS_W32
34
35 BOTAN_PUBLIC_API(2,0) const BigInt& prime_p384();
36 BOTAN_PUBLIC_API(2,0) void redc_p384(BigInt& x, secure_vector<word>& ws);
37
38 BOTAN_PUBLIC_API(2,0) const BigInt& prime_p256();
39 BOTAN_PUBLIC_API(2,0) void redc_p256(BigInt& x, secure_vector<word>& ws);
40
41 BOTAN_PUBLIC_API(2,0) const BigInt& prime_p224();
42 BOTAN_PUBLIC_API(2,0) void redc_p224(BigInt& x, secure_vector<word>& ws);
43
44 BOTAN_PUBLIC_API(2,0) const BigInt& prime_p192();
45 BOTAN_PUBLIC_API(2,0) void redc_p192(BigInt& x, secure_vector<word>& ws);
46
47 }
48
49 #endif
Botan::redc_p256
void redc_p256(BigInt &x, secure_vector< word > &ws)
Definition: nistp_redc.cpp:310
Botan::prime_p256
const BigInt & prime_p256()
Definition: nistp_redc.cpp:304
BOTAN_PUBLIC_API
#define BOTAN_PUBLIC_API(maj, min)
Definition: compiler.h:31
Botan::redc_p384
void redc_p384(BigInt &x, secure_vector< word > &ws)
Definition: nistp_redc.cpp:439
Botan::prime_p224
const BigInt & prime_p224()
Definition: nistp_redc.cpp:201
Botan::prime_p192
const BigInt & prime_p192()
Definition: nistp_redc.cpp:105
Botan::secure_vector
std::vector< T, secure_allocator< T >> secure_vector
Definition: secmem.h:65
Botan
Definition: alg_id.cpp:13
Botan::redc_p521
void redc_p521(BigInt &x, secure_vector< word > &ws)
Definition: nistp_redc.cpp:23
Botan::redc_p224
void redc_p224(BigInt &x, secure_vector< word > &ws)
Definition: nistp_redc.cpp:207
Botan::prime_p521
const BigInt & prime_p521()
Definition: nistp_redc.cpp:15
Botan::prime_p384
const BigInt & prime_p384()
Definition: nistp_redc.cpp:433
Botan::redc_p192
void redc_p192(BigInt &x, secure_vector< word > &ws)
Definition: nistp_redc.cpp:111
BOTAN_FUTURE_INTERNAL_HEADER
#define BOTAN_FUTURE_INTERNAL_HEADER(hdr)
Definition: compiler.h:139