#include <openssl/bn.h>
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <openssl/cpu.h>
#include <openssl/err.h>
#include <openssl/mem.h>
#include "internal.h"
#include "rsaz_exp.h"
Go to the source code of this file.
Classes | |
struct | bn_recp_ctx_st |
Macros | |
#define | BN_MAX_WINDOW_BITS_FOR_CTIME_EXPONENT_SIZE (6) |
#define | BN_window_bits_for_ctime_exponent_size(b) ((b) > 937 ? 6 : (b) > 306 ? 5 : (b) > 89 ? 4 : (b) > 22 ? 3 : 1) |
#define | MOD_EXP_CTIME_ALIGN(x_) |
#define | MOD_EXP_CTIME_MIN_CACHE_LINE_MASK (MOD_EXP_CTIME_MIN_CACHE_LINE_WIDTH - 1) |
#define | TABLE_BITS_SMALL 5 |
#define | TABLE_SIZE 32 |
#define | TABLE_SIZE 32 |
#define | TABLE_SIZE_SMALL (1 << (TABLE_BITS_SMALL - 1)) |
Typedefs | |
typedef struct bn_recp_ctx_st | BN_RECP_CTX |
#define BN_MAX_WINDOW_BITS_FOR_CTIME_EXPONENT_SIZE (6) |
Definition at line 880 of file exponentiation.c.
#define BN_window_bits_for_ctime_exponent_size | ( | b | ) | ((b) > 937 ? 6 : (b) > 306 ? 5 : (b) > 89 ? 4 : (b) > 22 ? 3 : 1) |
Definition at line 878 of file exponentiation.c.
#define MOD_EXP_CTIME_ALIGN | ( | x_ | ) |
Definition at line 892 of file exponentiation.c.
#define MOD_EXP_CTIME_MIN_CACHE_LINE_MASK (MOD_EXP_CTIME_MIN_CACHE_LINE_WIDTH - 1) |
Definition at line 862 of file exponentiation.c.
#define TABLE_BITS_SMALL 5 |
Definition at line 424 of file exponentiation.c.
#define TABLE_SIZE 32 |
Definition at line 1251 of file exponentiation.c.
#define TABLE_SIZE 32 |
Definition at line 1251 of file exponentiation.c.
#define TABLE_SIZE_SMALL (1 << (TABLE_BITS_SMALL - 1)) |
Definition at line 428 of file exponentiation.c.
typedef struct bn_recp_ctx_st BN_RECP_CTX |
|
static |
Definition at line 240 of file exponentiation.c.
Definition at line 123 of file exponentiation.c.
Definition at line 567 of file exponentiation.c.
int BN_mod_exp2_mont | ( | BIGNUM * | rr, |
const BIGNUM * | a1, | ||
const BIGNUM * | p1, | ||
const BIGNUM * | a2, | ||
const BIGNUM * | p2, | ||
const BIGNUM * | m, | ||
BN_CTX * | ctx, | ||
const BN_MONT_CTX * | mont | ||
) |
Definition at line 1253 of file exponentiation.c.
int BN_mod_exp_mont | ( | BIGNUM * | rr, |
const BIGNUM * | a, | ||
const BIGNUM * | p, | ||
const BIGNUM * | m, | ||
BN_CTX * | ctx, | ||
const BN_MONT_CTX * | mont | ||
) |
Definition at line 587 of file exponentiation.c.
int BN_mod_exp_mont_consttime | ( | BIGNUM * | rr, |
const BIGNUM * | a, | ||
const BIGNUM * | p, | ||
const BIGNUM * | m, | ||
BN_CTX * | ctx, | ||
const BN_MONT_CTX * | mont | ||
) |
Definition at line 901 of file exponentiation.c.
void bn_mod_exp_mont_small | ( | BN_ULONG * | r, |
const BN_ULONG * | a, | ||
size_t | num, | ||
const BN_ULONG * | p, | ||
size_t | num_p, | ||
const BN_MONT_CTX * | mont | ||
) |
Definition at line 722 of file exponentiation.c.
int BN_mod_exp_mont_word | ( | BIGNUM * | rr, |
BN_ULONG | a, | ||
const BIGNUM * | p, | ||
const BIGNUM * | m, | ||
BN_CTX * | ctx, | ||
const BN_MONT_CTX * | mont | ||
) |
Definition at line 1225 of file exponentiation.c.
void bn_mod_inverse0_prime_mont_small | ( | BN_ULONG * | r, |
const BN_ULONG * | a, | ||
size_t | num, | ||
const BN_MONT_CTX * | mont | ||
) |
Definition at line 812 of file exponentiation.c.
|
static |
Definition at line 343 of file exponentiation.c.
Definition at line 215 of file exponentiation.c.
|
static |
Definition at line 191 of file exponentiation.c.
|
static |
Definition at line 183 of file exponentiation.c.
|
static |
Definition at line 200 of file exponentiation.c.
Definition at line 400 of file exponentiation.c.
|
static |
Definition at line 843 of file exponentiation.c.
|
static |
Definition at line 836 of file exponentiation.c.