Functions
div.c File Reference
#include <openssl/bn.h>
#include <assert.h>
#include <limits.h>
#include <openssl/err.h>
#include "internal.h"
Include dependency graph for div.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int BN_div (BIGNUM *quotient, BIGNUM *rem, const BIGNUM *numerator, const BIGNUM *divisor, BN_CTX *ctx)
 
int bn_div_consttime (BIGNUM *quotient, BIGNUM *remainder, const BIGNUM *numerator, const BIGNUM *divisor, unsigned divisor_min_bits, BN_CTX *ctx)
 
static void bn_div_rem_words (BN_ULONG *quotient_out, BN_ULONG *rem_out, BN_ULONG n0, BN_ULONG n1, BN_ULONG d0)
 
BN_ULONG BN_div_word (BIGNUM *a, BN_ULONG w)
 
static OPENSSL_UNUSED BN_ULONG bn_div_words (BN_ULONG h, BN_ULONG l, BN_ULONG d)
 
int BN_mod_add (BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m, BN_CTX *ctx)
 
int bn_mod_add_consttime (BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m, BN_CTX *ctx)
 
int BN_mod_add_quick (BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m)
 
void bn_mod_add_words (BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b, const BN_ULONG *m, BN_ULONG *tmp, size_t num)
 
int BN_mod_lshift (BIGNUM *r, const BIGNUM *a, int n, const BIGNUM *m, BN_CTX *ctx)
 
int BN_mod_lshift1 (BIGNUM *r, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx)
 
int bn_mod_lshift1_consttime (BIGNUM *r, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx)
 
int BN_mod_lshift1_quick (BIGNUM *r, const BIGNUM *a, const BIGNUM *m)
 
int bn_mod_lshift_consttime (BIGNUM *r, const BIGNUM *a, int n, const BIGNUM *m, BN_CTX *ctx)
 
int BN_mod_lshift_quick (BIGNUM *r, const BIGNUM *a, int n, const BIGNUM *m)
 
int BN_mod_mul (BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m, BN_CTX *ctx)
 
int BN_mod_pow2 (BIGNUM *r, const BIGNUM *a, size_t e)
 
int BN_mod_sqr (BIGNUM *r, const BIGNUM *a, const BIGNUM *m, BN_CTX *ctx)
 
int BN_mod_sub (BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m, BN_CTX *ctx)
 
int bn_mod_sub_consttime (BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m, BN_CTX *ctx)
 
int BN_mod_sub_quick (BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *m)
 
void bn_mod_sub_words (BN_ULONG *r, const BN_ULONG *a, const BN_ULONG *b, const BN_ULONG *m, BN_ULONG *tmp, size_t num)
 
BN_ULONG BN_mod_word (const BIGNUM *a, BN_ULONG w)
 
int BN_nnmod (BIGNUM *r, const BIGNUM *m, const BIGNUM *d, BN_CTX *ctx)
 
int BN_nnmod_pow2 (BIGNUM *r, const BIGNUM *a, size_t e)
 
BN_ULONG bn_reduce_once (BN_ULONG *r, const BN_ULONG *a, BN_ULONG carry, const BN_ULONG *m, size_t num)
 
BN_ULONG bn_reduce_once_in_place (BN_ULONG *r, BN_ULONG carry, const BN_ULONG *m, BN_ULONG *tmp, size_t num)
 
static const BIGNUMbn_resized_from_ctx (const BIGNUM *bn, size_t width, BN_CTX *ctx)
 
static BIGNUMbn_scratch_space_from_ctx (size_t width, BN_CTX *ctx)
 

Function Documentation

◆ BN_div()

int BN_div ( BIGNUM quotient,
BIGNUM rem,
const BIGNUM numerator,
const BIGNUM divisor,
BN_CTX ctx 
)

Definition at line 194 of file div.c.

◆ bn_div_consttime()

int bn_div_consttime ( BIGNUM quotient,
BIGNUM remainder,
const BIGNUM numerator,
const BIGNUM divisor,
unsigned  divisor_min_bits,
BN_CTX ctx 
)

Definition at line 457 of file div.c.

◆ bn_div_rem_words()

static void bn_div_rem_words ( BN_ULONG *  quotient_out,
BN_ULONG *  rem_out,
BN_ULONG  n0,
BN_ULONG  n1,
BN_ULONG  d0 
)
inlinestatic

Definition at line 139 of file div.c.

◆ BN_div_word()

BN_ULONG BN_div_word ( BIGNUM a,
BN_ULONG  w 
)

Definition at line 754 of file div.c.

◆ bn_div_words()

static OPENSSL_UNUSED BN_ULONG bn_div_words ( BN_ULONG  h,
BN_ULONG  l,
BN_ULONG  d 
)
static

Definition at line 69 of file div.c.

◆ BN_mod_add()

int BN_mod_add ( BIGNUM r,
const BIGNUM a,
const BIGNUM b,
const BIGNUM m,
BN_CTX ctx 
)

Definition at line 580 of file div.c.

◆ bn_mod_add_consttime()

int bn_mod_add_consttime ( BIGNUM r,
const BIGNUM a,
const BIGNUM b,
const BIGNUM m,
BN_CTX ctx 
)

Definition at line 597 of file div.c.

◆ BN_mod_add_quick()

int BN_mod_add_quick ( BIGNUM r,
const BIGNUM a,
const BIGNUM b,
const BIGNUM m 
)

Definition at line 588 of file div.c.

◆ bn_mod_add_words()

void bn_mod_add_words ( BN_ULONG *  r,
const BN_ULONG *  a,
const BN_ULONG *  b,
const BN_ULONG *  m,
BN_ULONG *  tmp,
size_t  num 
)

Definition at line 451 of file div.c.

◆ BN_mod_lshift()

int BN_mod_lshift ( BIGNUM r,
const BIGNUM a,
int  n,
const BIGNUM m,
BN_CTX ctx 
)

Definition at line 689 of file div.c.

◆ BN_mod_lshift1()

int BN_mod_lshift1 ( BIGNUM r,
const BIGNUM a,
const BIGNUM m,
BN_CTX ctx 
)

Definition at line 733 of file div.c.

◆ bn_mod_lshift1_consttime()

int bn_mod_lshift1_consttime ( BIGNUM r,
const BIGNUM a,
const BIGNUM m,
BN_CTX ctx 
)

Definition at line 741 of file div.c.

◆ BN_mod_lshift1_quick()

int BN_mod_lshift1_quick ( BIGNUM r,
const BIGNUM a,
const BIGNUM m 
)

Definition at line 746 of file div.c.

◆ bn_mod_lshift_consttime()

int bn_mod_lshift_consttime ( BIGNUM r,
const BIGNUM a,
int  n,
const BIGNUM m,
BN_CTX ctx 
)

Definition at line 712 of file div.c.

◆ BN_mod_lshift_quick()

int BN_mod_lshift_quick ( BIGNUM r,
const BIGNUM a,
int  n,
const BIGNUM m 
)

Definition at line 725 of file div.c.

◆ BN_mod_mul()

int BN_mod_mul ( BIGNUM r,
const BIGNUM a,
const BIGNUM b,
const BIGNUM m,
BN_CTX ctx 
)

Definition at line 648 of file div.c.

◆ BN_mod_pow2()

int BN_mod_pow2 ( BIGNUM r,
const BIGNUM a,
size_t  e 
)

Definition at line 825 of file div.c.

◆ BN_mod_sqr()

int BN_mod_sqr ( BIGNUM r,
const BIGNUM a,
const BIGNUM m,
BN_CTX ctx 
)

Definition at line 680 of file div.c.

◆ BN_mod_sub()

int BN_mod_sub ( BIGNUM r,
const BIGNUM a,
const BIGNUM b,
const BIGNUM m,
BN_CTX ctx 
)

Definition at line 614 of file div.c.

◆ bn_mod_sub_consttime()

int bn_mod_sub_consttime ( BIGNUM r,
const BIGNUM a,
const BIGNUM b,
const BIGNUM m,
BN_CTX ctx 
)

Definition at line 622 of file div.c.

◆ BN_mod_sub_quick()

int BN_mod_sub_quick ( BIGNUM r,
const BIGNUM a,
const BIGNUM b,
const BIGNUM m 
)

Definition at line 639 of file div.c.

◆ bn_mod_sub_words()

void bn_mod_sub_words ( BN_ULONG *  r,
const BN_ULONG *  a,
const BN_ULONG *  b,
const BN_ULONG *  m,
BN_ULONG *  tmp,
size_t  num 
)

Definition at line 442 of file div.c.

◆ BN_mod_word()

BN_ULONG BN_mod_word ( const BIGNUM a,
BN_ULONG  w 
)

Definition at line 788 of file div.c.

◆ BN_nnmod()

int BN_nnmod ( BIGNUM r,
const BIGNUM m,
const BIGNUM d,
BN_CTX ctx 
)

Definition at line 401 of file div.c.

◆ BN_nnmod_pow2()

int BN_nnmod_pow2 ( BIGNUM r,
const BIGNUM a,
size_t  e 
)

Definition at line 860 of file div.c.

◆ bn_reduce_once()

BN_ULONG bn_reduce_once ( BN_ULONG *  r,
const BN_ULONG *  a,
BN_ULONG  carry,
const BN_ULONG *  m,
size_t  num 
)

Definition at line 413 of file div.c.

◆ bn_reduce_once_in_place()

BN_ULONG bn_reduce_once_in_place ( BN_ULONG *  r,
BN_ULONG  carry,
const BN_ULONG *  m,
BN_ULONG *  tmp,
size_t  num 
)

Definition at line 433 of file div.c.

◆ bn_resized_from_ctx()

static const BIGNUM* bn_resized_from_ctx ( const BIGNUM bn,
size_t  width,
BN_CTX ctx 
)
static

Definition at line 564 of file div.c.

◆ bn_scratch_space_from_ctx()

static BIGNUM* bn_scratch_space_from_ctx ( size_t  width,
BN_CTX ctx 
)
static

Definition at line 548 of file div.c.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:11