Typedefs | Functions | Variables
boringssl-with-bazel/src/crypto/bn_extra/convert.c File Reference
#include <openssl/bn.h>
#include <assert.h>
#include <ctype.h>
#include <limits.h>
#include <stdio.h>
#include <openssl/bio.h>
#include <openssl/bytestring.h>
#include <openssl/err.h>
#include <openssl/mem.h>
#include "../fipsmodule/bn/internal.h"
Include dependency graph for boringssl-with-bazel/src/crypto/bn_extra/convert.c:

Go to the source code of this file.

Typedefs

typedef int(* char_test_func) (int c)
 
typedef int(* decode_func) (BIGNUM *bn, const char *in, int in_len)
 

Functions

int BN_asc2bn (BIGNUM **outp, const char *in)
 
int BN_bn2binpad (const BIGNUM *in, uint8_t *out, int len)
 
int BN_bn2cbb_padded (CBB *out, size_t len, const BIGNUM *in)
 
char * BN_bn2dec (const BIGNUM *a)
 
char * BN_bn2hex (const BIGNUM *bn)
 
size_t BN_bn2mpi (const BIGNUM *in, uint8_t *out)
 
int BN_dec2bn (BIGNUM **outp, const char *in)
 
int BN_hex2bn (BIGNUM **outp, const char *in)
 
BIGNUMBN_mpi2bn (const uint8_t *in, size_t len, BIGNUM *out)
 
int BN_print (BIO *bp, const BIGNUM *a)
 
int BN_print_fp (FILE *fp, const BIGNUM *a)
 
static int bn_x2bn (BIGNUM **outp, const char *in, decode_func decode, char_test_func want_char)
 
static int decode_dec (BIGNUM *bn, const char *in, int in_len)
 
static int decode_hex (BIGNUM *bn, const char *in, int in_len)
 

Variables

static const char hextable [] = "0123456789abcdef"
 

Typedef Documentation

◆ char_test_func

typedef int(* char_test_func) (int c)

◆ decode_func

typedef int(* decode_func) (BIGNUM *bn, const char *in, int in_len)

Function Documentation

◆ BN_asc2bn()

int BN_asc2bn ( BIGNUM **  outp,
const char *  in 
)

◆ BN_bn2binpad()

int BN_bn2binpad ( const BIGNUM in,
uint8_t out,
int  len 
)

◆ BN_bn2cbb_padded()

int BN_bn2cbb_padded ( CBB out,
size_t  len,
const BIGNUM in 
)

◆ BN_bn2dec()

char* BN_bn2dec ( const BIGNUM a)

◆ BN_bn2hex()

char* BN_bn2hex ( const BIGNUM bn)

◆ BN_bn2mpi()

size_t BN_bn2mpi ( const BIGNUM in,
uint8_t out 
)

◆ BN_dec2bn()

int BN_dec2bn ( BIGNUM **  outp,
const char *  in 
)

◆ BN_hex2bn()

int BN_hex2bn ( BIGNUM **  outp,
const char *  in 
)

◆ BN_mpi2bn()

BIGNUM* BN_mpi2bn ( const uint8_t in,
size_t  len,
BIGNUM out 
)

◆ BN_print()

int BN_print ( BIO bp,
const BIGNUM a 
)

◆ BN_print_fp()

int BN_print_fp ( FILE *  fp,
const BIGNUM a 
)

◆ bn_x2bn()

static int bn_x2bn ( BIGNUM **  outp,
const char *  in,
decode_func  decode,
char_test_func  want_char 
)
static

◆ decode_dec()

static int decode_dec ( BIGNUM bn,
const char *  in,
int  in_len 
)
static

◆ decode_hex()

static int decode_hex ( BIGNUM bn,
const char *  in,
int  in_len 
)
static

Variable Documentation

◆ hextable

const char hextable[] = "0123456789abcdef"
static


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