OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Classes | Macros | Functions
bn_blind.c File Reference
#include <stdio.h>
#include "cryptlib.h"
#include "bn_lcl.h"

Go to the source code of this file.

Classes

struct  bn_blinding_st
 

Macros

#define BN_BLINDING_COUNTER   32
 

Functions

BN_BLINDINGBN_BLINDING_new (const BIGNUM *A, const BIGNUM *Ai, BIGNUM *mod)
 
void BN_BLINDING_free (BN_BLINDING *r)
 
int BN_BLINDING_update (BN_BLINDING *b, BN_CTX *ctx)
 
int BN_BLINDING_convert (BIGNUM *n, BN_BLINDING *b, BN_CTX *ctx)
 
int BN_BLINDING_convert_ex (BIGNUM *n, BIGNUM *r, BN_BLINDING *b, BN_CTX *ctx)
 
int BN_BLINDING_invert (BIGNUM *n, BN_BLINDING *b, BN_CTX *ctx)
 
int BN_BLINDING_invert_ex (BIGNUM *n, const BIGNUM *r, BN_BLINDING *b, BN_CTX *ctx)
 
unsigned long BN_BLINDING_get_thread_id (const BN_BLINDING *b)
 
void BN_BLINDING_set_thread_id (BN_BLINDING *b, unsigned long n)
 
CRYPTO_THREADIDBN_BLINDING_thread_id (BN_BLINDING *b)
 
unsigned long BN_BLINDING_get_flags (const BN_BLINDING *b)
 
void BN_BLINDING_set_flags (BN_BLINDING *b, unsigned long flags)
 
BN_BLINDINGBN_BLINDING_create_param (BN_BLINDING *b, const BIGNUM *e, BIGNUM *m, BN_CTX *ctx, int(*bn_mod_exp)(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx), BN_MONT_CTX *m_ctx)
 

Macro Definition Documentation

#define BN_BLINDING_COUNTER   32

Definition at line 116 of file bn_blind.c.

Function Documentation

int BN_BLINDING_convert ( BIGNUM n,
BN_BLINDING b,
BN_CTX ctx 
)

Definition at line 219 of file bn_blind.c.

int BN_BLINDING_convert_ex ( BIGNUM n,
BIGNUM r,
BN_BLINDING b,
BN_CTX ctx 
)

Definition at line 224 of file bn_blind.c.

BN_BLINDING* BN_BLINDING_create_param ( BN_BLINDING b,
const BIGNUM e,
BIGNUM m,
BN_CTX ctx,
int(*)(BIGNUM *r, const BIGNUM *a, const BIGNUM *p, const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx)  bn_mod_exp,
BN_MONT_CTX m_ctx 
)

Definition at line 306 of file bn_blind.c.

void BN_BLINDING_free ( BN_BLINDING r)

Definition at line 174 of file bn_blind.c.

unsigned long BN_BLINDING_get_flags ( const BN_BLINDING b)

Definition at line 296 of file bn_blind.c.

unsigned long BN_BLINDING_get_thread_id ( const BN_BLINDING b)

Definition at line 280 of file bn_blind.c.

int BN_BLINDING_invert ( BIGNUM n,
BN_BLINDING b,
BN_CTX ctx 
)

Definition at line 252 of file bn_blind.c.

int BN_BLINDING_invert_ex ( BIGNUM n,
const BIGNUM r,
BN_BLINDING b,
BN_CTX ctx 
)

Definition at line 257 of file bn_blind.c.

BN_BLINDING* BN_BLINDING_new ( const BIGNUM A,
const BIGNUM Ai,
BIGNUM mod 
)

Definition at line 137 of file bn_blind.c.

void BN_BLINDING_set_flags ( BN_BLINDING b,
unsigned long  flags 
)

Definition at line 301 of file bn_blind.c.

void BN_BLINDING_set_thread_id ( BN_BLINDING b,
unsigned long  n 
)

Definition at line 285 of file bn_blind.c.

CRYPTO_THREADID* BN_BLINDING_thread_id ( BN_BLINDING b)

Definition at line 291 of file bn_blind.c.

int BN_BLINDING_update ( BN_BLINDING b,
BN_CTX ctx 
)

Definition at line 186 of file bn_blind.c.