OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Functions | Variables
bntest.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "e_os.h"
#include <openssl/bio.h>
#include <openssl/bn.h>
#include <openssl/rand.h>
#include <openssl/x509.h>
#include <openssl/err.h>

Go to the source code of this file.

Functions

int test_add (BIO *bp)
 
int test_sub (BIO *bp)
 
int test_lshift1 (BIO *bp)
 
int test_lshift (BIO *bp, BN_CTX *ctx, BIGNUM *a_)
 
int test_rshift1 (BIO *bp)
 
int test_rshift (BIO *bp, BN_CTX *ctx)
 
int test_div (BIO *bp, BN_CTX *ctx)
 
int test_div_word (BIO *bp)
 
int test_div_recp (BIO *bp, BN_CTX *ctx)
 
int test_mul (BIO *bp)
 
int test_sqr (BIO *bp, BN_CTX *ctx)
 
int test_mont (BIO *bp, BN_CTX *ctx)
 
int test_mod (BIO *bp, BN_CTX *ctx)
 
int test_mod_mul (BIO *bp, BN_CTX *ctx)
 
int test_mod_exp (BIO *bp, BN_CTX *ctx)
 
int test_mod_exp_mont_consttime (BIO *bp, BN_CTX *ctx)
 
int test_exp (BIO *bp, BN_CTX *ctx)
 
int test_gf2m_add (BIO *bp)
 
int test_gf2m_mod (BIO *bp)
 
int test_gf2m_mod_mul (BIO *bp, BN_CTX *ctx)
 
int test_gf2m_mod_sqr (BIO *bp, BN_CTX *ctx)
 
int test_gf2m_mod_inv (BIO *bp, BN_CTX *ctx)
 
int test_gf2m_mod_div (BIO *bp, BN_CTX *ctx)
 
int test_gf2m_mod_exp (BIO *bp, BN_CTX *ctx)
 
int test_gf2m_mod_sqrt (BIO *bp, BN_CTX *ctx)
 
int test_gf2m_mod_solve_quad (BIO *bp, BN_CTX *ctx)
 
int test_kron (BIO *bp, BN_CTX *ctx)
 
int test_sqrt (BIO *bp, BN_CTX *ctx)
 
int rand_neg (void)
 
int main (int argc, char *argv[])
 

Variables

const int num0 = 100
 
const int num1 = 50
 
const int num2 = 5
 

Function Documentation

int main ( int  argc,
char *  argv[] 
)

Definition at line 138 of file bntest.c.

int rand_neg ( void  )

Definition at line 2007 of file bntest.c.

int test_add ( BIO bp)

Definition at line 317 of file bntest.c.

int test_div ( BIO bp,
BN_CTX ctx 
)

Definition at line 412 of file bntest.c.

int test_div_recp ( BIO bp,
BN_CTX ctx 
)

Definition at line 548 of file bntest.c.

int test_div_word ( BIO bp)

Definition at line 492 of file bntest.c.

int test_exp ( BIO bp,
BN_CTX ctx 
)

Definition at line 1015 of file bntest.c.

int test_gf2m_add ( BIO bp)

Definition at line 1065 of file bntest.c.

int test_gf2m_mod ( BIO bp)

Definition at line 1117 of file bntest.c.

int test_gf2m_mod_div ( BIO bp,
BN_CTX ctx 
)

Definition at line 1360 of file bntest.c.

int test_gf2m_mod_exp ( BIO bp,
BN_CTX ctx 
)

Definition at line 1423 of file bntest.c.

int test_gf2m_mod_inv ( BIO bp,
BN_CTX ctx 
)

Definition at line 1305 of file bntest.c.

int test_gf2m_mod_mul ( BIO bp,
BN_CTX ctx 
)

Definition at line 1175 of file bntest.c.

int test_gf2m_mod_solve_quad ( BIO bp,
BN_CTX ctx 
)

Definition at line 1553 of file bntest.c.

int test_gf2m_mod_sqr ( BIO bp,
BN_CTX ctx 
)

Definition at line 1246 of file bntest.c.

int test_gf2m_mod_sqrt ( BIO bp,
BN_CTX ctx 
)

Definition at line 1494 of file bntest.c.

int test_kron ( BIO bp,
BN_CTX ctx 
)

Definition at line 1653 of file bntest.c.

int test_lshift ( BIO bp,
BN_CTX ctx,
BIGNUM a_ 
)

Definition at line 1822 of file bntest.c.

int test_lshift1 ( BIO bp)

Definition at line 1880 of file bntest.c.

int test_mod ( BIO bp,
BN_CTX ctx 
)

Definition at line 796 of file bntest.c.

int test_mod_exp ( BIO bp,
BN_CTX ctx 
)

Definition at line 913 of file bntest.c.

int test_mod_exp_mont_consttime ( BIO bp,
BN_CTX ctx 
)

Definition at line 964 of file bntest.c.

int test_mod_mul ( BIO bp,
BN_CTX ctx 
)

Definition at line 842 of file bntest.c.

int test_mont ( BIO bp,
BN_CTX ctx 
)

Definition at line 719 of file bntest.c.

int test_mul ( BIO bp)

Definition at line 621 of file bntest.c.

int test_rshift ( BIO bp,
BN_CTX ctx 
)

Definition at line 1921 of file bntest.c.

int test_rshift1 ( BIO bp)

Definition at line 1967 of file bntest.c.

int test_sqr ( BIO bp,
BN_CTX ctx 
)

Definition at line 677 of file bntest.c.

int test_sqrt ( BIO bp,
BN_CTX ctx 
)

Definition at line 1744 of file bntest.c.

int test_sub ( BIO bp)

Definition at line 361 of file bntest.c.

Variable Documentation

const int num0 = 100

Definition at line 90 of file bntest.c.

const int num1 = 50

Definition at line 91 of file bntest.c.

const int num2 = 5

Definition at line 92 of file bntest.c.