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

Go to the source code of this file.

Functions

int ec_bignum_to_felem (const EC_GROUP *group, EC_FELEM *out, const BIGNUM *in)
 
void ec_felem_add (const EC_GROUP *group, EC_FELEM *out, const EC_FELEM *a, const EC_FELEM *b)
 
int ec_felem_equal (const EC_GROUP *group, const EC_FELEM *a, const EC_FELEM *b)
 
int ec_felem_from_bytes (const EC_GROUP *group, EC_FELEM *out, const uint8_t *in, size_t len)
 
void ec_felem_neg (const EC_GROUP *group, EC_FELEM *out, const EC_FELEM *a)
 
BN_ULONG ec_felem_non_zero_mask (const EC_GROUP *group, const EC_FELEM *a)
 
void ec_felem_select (const EC_GROUP *group, EC_FELEM *out, BN_ULONG mask, const EC_FELEM *a, const EC_FELEM *b)
 
void ec_felem_sub (const EC_GROUP *group, EC_FELEM *out, const EC_FELEM *a, const EC_FELEM *b)
 
int ec_felem_to_bignum (const EC_GROUP *group, BIGNUM *out, const EC_FELEM *in)
 
void ec_felem_to_bytes (const EC_GROUP *group, uint8_t *out, size_t *out_len, const EC_FELEM *in)
 

Function Documentation

◆ ec_bignum_to_felem()

int ec_bignum_to_felem ( const EC_GROUP group,
EC_FELEM out,
const BIGNUM in 
)

Definition at line 26 of file felem.c.

◆ ec_felem_add()

void ec_felem_add ( const EC_GROUP group,
EC_FELEM out,
const EC_FELEM a,
const EC_FELEM b 
)

Definition at line 69 of file felem.c.

◆ ec_felem_equal()

int ec_felem_equal ( const EC_GROUP group,
const EC_FELEM a,
const EC_FELEM b 
)

Definition at line 96 of file felem.c.

◆ ec_felem_from_bytes()

int ec_felem_from_bytes ( const EC_GROUP group,
EC_FELEM out,
const uint8_t in,
size_t  len 
)

Definition at line 52 of file felem.c.

◆ ec_felem_neg()

void ec_felem_neg ( const EC_GROUP group,
EC_FELEM out,
const EC_FELEM a 
)

Definition at line 57 of file felem.c.

◆ ec_felem_non_zero_mask()

BN_ULONG ec_felem_non_zero_mask ( const EC_GROUP group,
const EC_FELEM a 
)

Definition at line 83 of file felem.c.

◆ ec_felem_select()

void ec_felem_select ( const EC_GROUP group,
EC_FELEM out,
BN_ULONG  mask,
const EC_FELEM a,
const EC_FELEM b 
)

Definition at line 91 of file felem.c.

◆ ec_felem_sub()

void ec_felem_sub ( const EC_GROUP group,
EC_FELEM out,
const EC_FELEM a,
const EC_FELEM b 
)

Definition at line 76 of file felem.c.

◆ ec_felem_to_bignum()

int ec_felem_to_bignum ( const EC_GROUP group,
BIGNUM out,
const EC_FELEM in 
)

Definition at line 40 of file felem.c.

◆ ec_felem_to_bytes()

void ec_felem_to_bytes ( const EC_GROUP group,
uint8_t out,
size_t *  out_len,
const EC_FELEM in 
)

Definition at line 47 of file felem.c.



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