#include <openssl/bn.h>
Go to the source code of this file.
Macros | |
#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) |
#define | BN_MAX_WINDOW_BITS_FOR_CTIME_EXPONENT_SIZE (6) |
#define | BN_MULL_SIZE_NORMAL (16) /* 32 */ |
#define | BN_MUL_RECURSIVE_SIZE_NORMAL (16) /* 32 less than */ |
#define | BN_SQR_RECURSIVE_SIZE_NORMAL (16) /* 32 */ |
#define | BN_MUL_LOW_RECURSIVE_SIZE_NORMAL (32) /* 32 */ |
#define | BN_MONT_CTX_SET_SIZE_WORD (64) /* 32 */ |
#define | Lw(t) (((BN_ULONG)(t))&BN_MASK2) |
#define | Hw(t) (((BN_ULONG)((t)>>BN_BITS2))&BN_MASK2) |
#define | bn_clear_top2max(a) |
#define | LBITS(a) ((a)&BN_MASK2l) |
#define | HBITS(a) (((a)>>BN_BITS4)&BN_MASK2l) |
#define | L2HBITS(a) (((a)<<BN_BITS4)&BN_MASK2) |
#define | LLBITS(a) ((a)&BN_MASKl) |
#define | LHBITS(a) (((a)>>BN_BITS2)&BN_MASKl) |
#define | LL2HBITS(a) ((BN_ULLONG)((a)&BN_MASKl)<<BN_BITS2) |
#define | mul64(l, h, bl, bh) |
#define | sqr64(lo, ho, in) |
#define | mul_add(r, a, bl, bh, c) |
#define | mul(r, a, bl, bh, c) |
Functions | |
void | bn_mul_normal (BN_ULONG *r, BN_ULONG *a, int na, BN_ULONG *b, int nb) |
void | bn_mul_comba8 (BN_ULONG *r, BN_ULONG *a, BN_ULONG *b) |
void | bn_mul_comba4 (BN_ULONG *r, BN_ULONG *a, BN_ULONG *b) |
void | bn_sqr_normal (BN_ULONG *r, const BN_ULONG *a, int n, BN_ULONG *tmp) |
void | bn_sqr_comba8 (BN_ULONG *r, const BN_ULONG *a) |
void | bn_sqr_comba4 (BN_ULONG *r, const BN_ULONG *a) |
int | bn_cmp_words (const BN_ULONG *a, const BN_ULONG *b, int n) |
int | bn_cmp_part_words (const BN_ULONG *a, const BN_ULONG *b, int cl, int dl) |
void | bn_mul_recursive (BN_ULONG *r, BN_ULONG *a, BN_ULONG *b, int n2, int dna, int dnb, BN_ULONG *t) |
void | bn_mul_part_recursive (BN_ULONG *r, BN_ULONG *a, BN_ULONG *b, int n, int tna, int tnb, BN_ULONG *t) |
void | bn_sqr_recursive (BN_ULONG *r, const BN_ULONG *a, int n2, BN_ULONG *t) |
void | bn_mul_low_normal (BN_ULONG *r, BN_ULONG *a, BN_ULONG *b, int n) |
void | bn_mul_low_recursive (BN_ULONG *r, BN_ULONG *a, BN_ULONG *b, int n2, BN_ULONG *t) |
void | bn_mul_high (BN_ULONG *r, BN_ULONG *a, BN_ULONG *b, BN_ULONG *l, int n2, BN_ULONG *t) |
BN_ULONG | bn_add_part_words (BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b, int cl, int dl) |
BN_ULONG | bn_sub_part_words (BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b, int cl, int dl) |
int | bn_mul_mont (BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp, const BN_ULONG *np, const BN_ULONG *n0, int num) |
#define BN_MUL_RECURSIVE_SIZE_NORMAL (16) /* 32 less than */ |
#define BN_window_bits_for_ctime_exponent_size | ( | b | ) |
#define BN_window_bits_for_exponent_size | ( | b | ) |
#define MOD_EXP_CTIME_MIN_CACHE_LINE_MASK (MOD_EXP_CTIME_MIN_CACHE_LINE_WIDTH - 1) |
#define mul64 | ( | l, | |
h, | |||
bl, | |||
bh | |||
) |
#define sqr64 | ( | lo, | |
ho, | |||
in | |||
) |
BN_ULONG bn_add_part_words | ( | BN_ULONG * | r, |
const BN_ULONG * | a, | ||
const BN_ULONG * | b, | ||
int | cl, | ||
int | dl | ||
) |
int bn_cmp_part_words | ( | const BN_ULONG * | a, |
const BN_ULONG * | b, | ||
int | cl, | ||
int | dl | ||
) |
int bn_cmp_words | ( | const BN_ULONG * | a, |
const BN_ULONG * | b, | ||
int | n | ||
) |
void bn_mul_comba4 | ( | BN_ULONG * | r, |
BN_ULONG * | a, | ||
BN_ULONG * | b | ||
) |
void bn_mul_comba8 | ( | BN_ULONG * | r, |
BN_ULONG * | a, | ||
BN_ULONG * | b | ||
) |
void bn_mul_high | ( | BN_ULONG * | r, |
BN_ULONG * | a, | ||
BN_ULONG * | b, | ||
BN_ULONG * | l, | ||
int | n2, | ||
BN_ULONG * | t | ||
) |
void bn_mul_low_normal | ( | BN_ULONG * | r, |
BN_ULONG * | a, | ||
BN_ULONG * | b, | ||
int | n | ||
) |
void bn_mul_low_recursive | ( | BN_ULONG * | r, |
BN_ULONG * | a, | ||
BN_ULONG * | b, | ||
int | n2, | ||
BN_ULONG * | t | ||
) |
int bn_mul_mont | ( | BN_ULONG * | rp, |
const BN_ULONG * | ap, | ||
const BN_ULONG * | bp, | ||
const BN_ULONG * | np, | ||
const BN_ULONG * | n0, | ||
int | num | ||
) |
Definition at line 17 of file sparcv9cap.c.
void bn_mul_normal | ( | BN_ULONG * | r, |
BN_ULONG * | a, | ||
int | na, | ||
BN_ULONG * | b, | ||
int | nb | ||
) |
void bn_mul_part_recursive | ( | BN_ULONG * | r, |
BN_ULONG * | a, | ||
BN_ULONG * | b, | ||
int | n, | ||
int | tna, | ||
int | tnb, | ||
BN_ULONG * | t | ||
) |
void bn_mul_recursive | ( | BN_ULONG * | r, |
BN_ULONG * | a, | ||
BN_ULONG * | b, | ||
int | n2, | ||
int | dna, | ||
int | dnb, | ||
BN_ULONG * | t | ||
) |
void bn_sqr_normal | ( | BN_ULONG * | r, |
const BN_ULONG * | a, | ||
int | n, | ||
BN_ULONG * | tmp | ||
) |
void bn_sqr_recursive | ( | BN_ULONG * | r, |
const BN_ULONG * | a, | ||
int | n2, | ||
BN_ULONG * | t | ||
) |