webkit
2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
|
#include <openssl/bn.h>
#include <assert.h>
#include <string.h>
#include <openssl/cpu.h>
#include <openssl/err.h>
#include <openssl/mem.h>
#include "internal.h"
Classes | |
struct | bn_recp_ctx_st |
Macros | |
#define | TABLE_SIZE 32 |
#define | BN_window_bits_for_exponent_size(b) |
#define | MOD_EXP_CTIME_MIN_CACHE_LINE_WIDTH (64) |
#define | MOD_EXP_CTIME_MIN_CACHE_LINE_MASK (MOD_EXP_CTIME_MIN_CACHE_LINE_WIDTH - 1) |
#define | BN_window_bits_for_ctime_exponent_size(b) ((b) > 937 ? 6 : (b) > 306 ? 5 : (b) > 89 ? 4 : (b) > 22 ? 3 : 1) |
#define | BN_MAX_WINDOW_BITS_FOR_CTIME_EXPONENT_SIZE (6) |
#define | MOD_EXP_CTIME_ALIGN(x_) |
#define | TABLE_SIZE 32 |
Typedefs | |
typedef struct bn_recp_ctx_st | BN_RECP_CTX |
Functions | |
int | BN_exp (BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx) |
int | BN_mod_exp (BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx) |
int | BN_mod_exp_mont (BIGNUM *rr, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx, const BN_MONT_CTX *mont) |
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) |
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) |
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) |
#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 BN_window_bits_for_exponent_size | ( | b | ) |
#define MOD_EXP_CTIME_ALIGN | ( | x_ | ) |
#define MOD_EXP_CTIME_MIN_CACHE_LINE_MASK (MOD_EXP_CTIME_MIN_CACHE_LINE_WIDTH - 1) |
#define MOD_EXP_CTIME_MIN_CACHE_LINE_WIDTH (64) |
#define TABLE_SIZE 32 |
#define TABLE_SIZE 32 |
typedef struct bn_recp_ctx_st BN_RECP_CTX |
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 | ||
) |
int BN_mod_exp_mont | ( | BIGNUM * | rr, |
const BIGNUM * | a, | ||
const BIGNUM * | p, | ||
const BIGNUM * | m, | ||
BN_CTX * | ctx, | ||
const BN_MONT_CTX * | mont | ||
) |
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 | ||
) |
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 | ||
) |