Functions
bytes.c File Reference
#include <openssl/bn.h>
#include <assert.h>
#include <limits.h>
#include "internal.h"
Include dependency graph for bytes.c:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

BIGNUMBN_bin2bn (const uint8_t *in, size_t len, BIGNUM *ret)
 
size_t BN_bn2bin (const BIGNUM *in, uint8_t *out)
 
int BN_bn2bin_padded (uint8_t *out, size_t len, const BIGNUM *in)
 
int BN_bn2le_padded (uint8_t *out, size_t len, const BIGNUM *in)
 
int BN_get_u64 (const BIGNUM *bn, uint64_t *out)
 
BN_ULONG BN_get_word (const BIGNUM *bn)
 
BIGNUMBN_le2bn (const uint8_t *in, size_t len, BIGNUM *ret)
 
static int fits_in_bytes (const uint8_t *bytes, size_t num_bytes, size_t len)
 

Function Documentation

◆ BN_bin2bn()

BIGNUM* BN_bin2bn ( const uint8_t in,
size_t  len,
BIGNUM ret 
)

Definition at line 65 of file bytes.c.

◆ BN_bn2bin()

size_t BN_bn2bin ( const BIGNUM in,
uint8_t out 
)

Definition at line 145 of file bytes.c.

◆ BN_bn2bin_padded()

int BN_bn2bin_padded ( uint8_t out,
size_t  len,
const BIGNUM in 
)

Definition at line 183 of file bytes.c.

◆ BN_bn2le_padded()

int BN_bn2le_padded ( uint8_t out,
size_t  len,
const BIGNUM in 
)

Definition at line 165 of file bytes.c.

◆ BN_get_u64()

int BN_get_u64 ( const BIGNUM bn,
uint64_t out 
)

Definition at line 214 of file bytes.c.

◆ BN_get_word()

BN_ULONG BN_get_word ( const BIGNUM bn)

Definition at line 203 of file bytes.c.

◆ BN_le2bn()

BIGNUM* BN_le2bn ( const uint8_t in,
size_t  len,
BIGNUM ret 
)

Definition at line 111 of file bytes.c.

◆ fits_in_bytes()

static int fits_in_bytes ( const uint8_t bytes,
size_t  num_bytes,
size_t  len 
)
static

Definition at line 157 of file bytes.c.



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