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

Go to the source code of this file.

Macros

#define MAX_ITERATIONS   50
 

Functions

int BN_GF2m_add (BIGNUM *r, const BIGNUM *a, const BIGNUM *b)
 
int BN_GF2m_mod_arr (BIGNUM *r, const BIGNUM *a, const int p[])
 
int BN_GF2m_mod (BIGNUM *r, const BIGNUM *a, const BIGNUM *p)
 
int BN_GF2m_mod_mul_arr (BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const int p[], BN_CTX *ctx)
 
int BN_GF2m_mod_mul (BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *p, BN_CTX *ctx)
 
int BN_GF2m_mod_sqr_arr (BIGNUM *r, const BIGNUM *a, const int p[], BN_CTX *ctx)
 
int BN_GF2m_mod_sqr (BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx)
 
int BN_GF2m_mod_inv (BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx)
 
int BN_GF2m_mod_inv_arr (BIGNUM *r, const BIGNUM *xx, const int p[], BN_CTX *ctx)
 
int BN_GF2m_mod_div (BIGNUM *r, const BIGNUM *y, const BIGNUM *x, const BIGNUM *p, BN_CTX *ctx)
 
int BN_GF2m_mod_div_arr (BIGNUM *r, const BIGNUM *yy, const BIGNUM *xx, const int p[], BN_CTX *ctx)
 
int BN_GF2m_mod_exp_arr (BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const int p[], BN_CTX *ctx)
 
int BN_GF2m_mod_exp (BIGNUM *r, const BIGNUM *a, const BIGNUM *b, const BIGNUM *p, BN_CTX *ctx)
 
int BN_GF2m_mod_sqrt_arr (BIGNUM *r, const BIGNUM *a, const int p[], BN_CTX *ctx)
 
int BN_GF2m_mod_sqrt (BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx)
 
int BN_GF2m_mod_solve_quad_arr (BIGNUM *r, const BIGNUM *a_, const int p[], BN_CTX *ctx)
 
int BN_GF2m_mod_solve_quad (BIGNUM *r, const BIGNUM *a, const BIGNUM *p, BN_CTX *ctx)
 
int BN_GF2m_poly2arr (const BIGNUM *a, int p[], int max)
 
int BN_GF2m_arr2poly (const int p[], BIGNUM *a)
 

Macro Definition Documentation

#define MAX_ITERATIONS   50

Definition at line 100 of file bn_gf2m.c.

Function Documentation

int BN_GF2m_add ( BIGNUM r,
const BIGNUM a,
const BIGNUM b 
)

Definition at line 229 of file bn_gf2m.c.

int BN_GF2m_arr2poly ( const int  p[],
BIGNUM a 
)

Definition at line 1097 of file bn_gf2m.c.

int BN_GF2m_mod ( BIGNUM r,
const BIGNUM a,
const BIGNUM p 
)

Definition at line 365 of file bn_gf2m.c.

int BN_GF2m_mod_arr ( BIGNUM r,
const BIGNUM a,
const int  p[] 
)

Definition at line 267 of file bn_gf2m.c.

int BN_GF2m_mod_div ( BIGNUM r,
const BIGNUM y,
const BIGNUM x,
const BIGNUM p,
BN_CTX ctx 
)

Definition at line 685 of file bn_gf2m.c.

int BN_GF2m_mod_div_arr ( BIGNUM r,
const BIGNUM yy,
const BIGNUM xx,
const int  p[],
BN_CTX ctx 
)

Definition at line 788 of file bn_gf2m.c.

int BN_GF2m_mod_exp ( BIGNUM r,
const BIGNUM a,
const BIGNUM b,
const BIGNUM p,
BN_CTX ctx 
)

Definition at line 856 of file bn_gf2m.c.

int BN_GF2m_mod_exp_arr ( BIGNUM r,
const BIGNUM a,
const BIGNUM b,
const int  p[],
BN_CTX ctx 
)

Definition at line 813 of file bn_gf2m.c.

int BN_GF2m_mod_inv ( BIGNUM r,
const BIGNUM a,
const BIGNUM p,
BN_CTX ctx 
)

Definition at line 523 of file bn_gf2m.c.

int BN_GF2m_mod_inv_arr ( BIGNUM r,
const BIGNUM xx,
const int  p[],
BN_CTX ctx 
)

Definition at line 662 of file bn_gf2m.c.

int BN_GF2m_mod_mul ( BIGNUM r,
const BIGNUM a,
const BIGNUM b,
const BIGNUM p,
BN_CTX ctx 
)

Definition at line 439 of file bn_gf2m.c.

int BN_GF2m_mod_mul_arr ( BIGNUM r,
const BIGNUM a,
const BIGNUM b,
const int  p[],
BN_CTX ctx 
)

Definition at line 386 of file bn_gf2m.c.

int BN_GF2m_mod_solve_quad ( BIGNUM r,
const BIGNUM a,
const BIGNUM p,
BN_CTX ctx 
)

Definition at line 1033 of file bn_gf2m.c.

int BN_GF2m_mod_solve_quad_arr ( BIGNUM r,
const BIGNUM a_,
const int  p[],
BN_CTX ctx 
)

Definition at line 939 of file bn_gf2m.c.

int BN_GF2m_mod_sqr ( BIGNUM r,
const BIGNUM a,
const BIGNUM p,
BN_CTX ctx 
)

Definition at line 495 of file bn_gf2m.c.

int BN_GF2m_mod_sqr_arr ( BIGNUM r,
const BIGNUM a,
const int  p[],
BN_CTX ctx 
)

Definition at line 463 of file bn_gf2m.c.

int BN_GF2m_mod_sqrt ( BIGNUM r,
const BIGNUM a,
const BIGNUM p,
BN_CTX ctx 
)

Definition at line 915 of file bn_gf2m.c.

int BN_GF2m_mod_sqrt_arr ( BIGNUM r,
const BIGNUM a,
const int  p[],
BN_CTX ctx 
)

Definition at line 882 of file bn_gf2m.c.

int BN_GF2m_poly2arr ( const BIGNUM a,
int  p[],
int  max 
)

Definition at line 1061 of file bn_gf2m.c.