Go to the source code of this file.
Macros | |
| #define | BN_NIST_192_TOP (192+BN_BITS2-1)/BN_BITS2 |
| #define | BN_NIST_224_TOP (224+BN_BITS2-1)/BN_BITS2 |
| #define | BN_NIST_256_TOP (256+BN_BITS2-1)/BN_BITS2 |
| #define | BN_NIST_384_TOP (384+BN_BITS2-1)/BN_BITS2 |
| #define | BN_NIST_521_TOP (521+BN_BITS2-1)/BN_BITS2 |
| #define | bn_cp_64(to, n, from, m) |
| #define | bn_64_set_0(to, n) |
| #define | bn_cp_32(to, n, from, m) (to)[n] = (m>=0)?((from)[m]):0; |
| #define | bn_32_set_0(to, n) (to)[n] = (BN_ULONG)0; |
| #define | nist_set_192(to, from, a1, a2, a3) |
| #define | nist_set_224(to, from, a1, a2, a3, a4, a5, a6, a7) |
| #define | nist_set_256(to, from, a1, a2, a3, a4, a5, a6, a7, a8) |
| #define | nist_set_384(to, from, a1, a2, a3, a4, a5, a6, a7, a8, a9, a10, a11, a12) |
| #define | BN_NIST_521_RSHIFT (521%BN_BITS2) |
| #define | BN_NIST_521_LSHIFT (BN_BITS2-BN_NIST_521_RSHIFT) |
| #define | BN_NIST_521_TOP_MASK ((BN_ULONG)BN_MASK2>>BN_NIST_521_LSHIFT) |
Typedefs | |
| typedef BN_ULONG(* | bn_addsub_f )(BN_ULONG *, const BN_ULONG *, const BN_ULONG *, int) |
Functions | |
| const BIGNUM * | BN_get0_nist_prime_192 (void) |
| const BIGNUM * | BN_get0_nist_prime_224 (void) |
| const BIGNUM * | BN_get0_nist_prime_256 (void) |
| const BIGNUM * | BN_get0_nist_prime_384 (void) |
| const BIGNUM * | BN_get0_nist_prime_521 (void) |
| int | BN_nist_mod_192 (BIGNUM *r, const BIGNUM *a, const BIGNUM *field, BN_CTX *ctx) |
| int | BN_nist_mod_224 (BIGNUM *r, const BIGNUM *a, const BIGNUM *field, BN_CTX *ctx) |
| int | BN_nist_mod_256 (BIGNUM *r, const BIGNUM *a, const BIGNUM *field, BN_CTX *ctx) |
| int | BN_nist_mod_384 (BIGNUM *r, const BIGNUM *a, const BIGNUM *field, BN_CTX *ctx) |
| int | BN_nist_mod_521 (BIGNUM *r, const BIGNUM *a, const BIGNUM *field, BN_CTX *ctx) |
| #define bn_64_set_0 | ( | to, | |
| n | |||
| ) |
| #define bn_cp_32 | ( | to, | |
| n, | |||
| from, | |||
| m | |||
| ) | (to)[n] = (m>=0)?((from)[m]):0; |
| #define bn_cp_64 | ( | to, | |
| n, | |||
| from, | |||
| m | |||
| ) |
| #define BN_NIST_521_LSHIFT (BN_BITS2-BN_NIST_521_RSHIFT) |
| #define BN_NIST_521_TOP_MASK ((BN_ULONG)BN_MASK2>>BN_NIST_521_LSHIFT) |
| #define nist_set_192 | ( | to, | |
| from, | |||
| a1, | |||
| a2, | |||
| a3 | |||
| ) |
| #define nist_set_224 | ( | to, | |
| from, | |||
| a1, | |||
| a2, | |||
| a3, | |||
| a4, | |||
| a5, | |||
| a6, | |||
| a7 | |||
| ) |
| #define nist_set_256 | ( | to, | |
| from, | |||
| a1, | |||
| a2, | |||
| a3, | |||
| a4, | |||
| a5, | |||
| a6, | |||
| a7, | |||
| a8 | |||
| ) |
| #define nist_set_384 | ( | to, | |
| from, | |||
| a1, | |||
| a2, | |||
| a3, | |||
| a4, | |||
| a5, | |||
| a6, | |||
| a7, | |||
| a8, | |||
| a9, | |||
| a10, | |||
| a11, | |||
| a12 | |||
| ) |
| typedef BN_ULONG(* bn_addsub_f)(BN_ULONG *, const BN_ULONG *, const BN_ULONG *, int) |
1.8.2