OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions
bn_prime.c File Reference
#include <stdio.h>
#include <time.h>
#include "cryptlib.h"
#include "bn_lcl.h"
#include <openssl/rand.h>
#include "bn_prime.h"

Go to the source code of this file.

Functions

int BN_GENCB_call (BN_GENCB *cb, int a, int b)
 
int BN_generate_prime_ex (BIGNUM *ret, int bits, int safe, const BIGNUM *add, const BIGNUM *rem, BN_GENCB *cb)
 
int BN_is_prime_ex (const BIGNUM *a, int checks, BN_CTX *ctx_passed, BN_GENCB *cb)
 
int BN_is_prime_fasttest_ex (const BIGNUM *a, int checks, BN_CTX *ctx_passed, int do_trial_division, BN_GENCB *cb)
 

Function Documentation

int BN_GENCB_call ( BN_GENCB cb,
int  a,
int  b 
)

Definition at line 137 of file bn_prime.c.

int BN_generate_prime_ex ( BIGNUM ret,
int  bits,
int  safe,
const BIGNUM add,
const BIGNUM rem,
BN_GENCB cb 
)

Definition at line 159 of file bn_prime.c.

int BN_is_prime_ex ( const BIGNUM a,
int  checks,
BN_CTX ctx_passed,
BN_GENCB cb 
)

Definition at line 238 of file bn_prime.c.

int BN_is_prime_fasttest_ex ( const BIGNUM a,
int  checks,
BN_CTX ctx_passed,
int  do_trial_division,
BN_GENCB cb 
)

Definition at line 243 of file bn_prime.c.