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

Go to the source code of this file.

Macros

#define LG_LITTLE_R   (BN_MONT_CTX_N0_LIMBS * BN_BITS2)
 

Functions

int bn_mod_exp_base_2_consttime (BIGNUM *r, unsigned p, const BIGNUM *n, BN_CTX *ctx)
 
uint64_t bn_mont_n0 (const BIGNUM *n)
 
static uint64_t bn_neg_inv_mod_r_u64 (uint64_t n)
 
 OPENSSL_STATIC_ASSERT (BN_MONT_CTX_N0_LIMBS==1||BN_MONT_CTX_N0_LIMBS==2, "BN_MONT_CTX_N0_LIMBS value is invalid")
 
 OPENSSL_STATIC_ASSERT (sizeof(BN_ULONG) *BN_MONT_CTX_N0_LIMBS==sizeof(uint64_t), "uint64_t is insufficient precision for n0")
 

Macro Definition Documentation

◆ LG_LITTLE_R

#define LG_LITTLE_R   (BN_MONT_CTX_N0_LIMBS * BN_BITS2)

Definition at line 32 of file montgomery_inv.c.

Function Documentation

◆ bn_mod_exp_base_2_consttime()

int bn_mod_exp_base_2_consttime ( BIGNUM r,
unsigned  p,
const BIGNUM n,
BN_CTX ctx 
)

Definition at line 163 of file montgomery_inv.c.

◆ bn_mont_n0()

uint64_t bn_mont_n0 ( const BIGNUM n)

Definition at line 34 of file montgomery_inv.c.

◆ bn_neg_inv_mod_r_u64()

static uint64_t bn_neg_inv_mod_r_u64 ( uint64_t  n)
static

Definition at line 105 of file montgomery_inv.c.

◆ OPENSSL_STATIC_ASSERT() [1/2]

OPENSSL_STATIC_ASSERT ( BN_MONT_CTX_N0_LIMBS  = =1||BN_MONT_CTX_N0_LIMBS==2,
"BN_MONT_CTX_N0_LIMBS value is invalid  
)

◆ OPENSSL_STATIC_ASSERT() [2/2]

OPENSSL_STATIC_ASSERT ( sizeof(BN_ULONG) *  BN_MONT_CTX_N0_LIMBS = =sizeof(uint64_t),
"uint64_t is insufficient precision for n0"   
)


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