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

Go to the source code of this file.

Macros

#define EC_WNAF_STACK   3
 
#define EC_WNAF_TABLE_SIZE   (1 << (EC_WNAF_WINDOW_BITS - 1))
 
#define EC_WNAF_WINDOW_BITS   4
 

Functions

static void compute_precomp (const EC_GROUP *group, EC_RAW_POINT *out, const EC_RAW_POINT *p, size_t len)
 
void ec_compute_wNAF (const EC_GROUP *group, int8_t *out, const EC_SCALAR *scalar, size_t bits, int w)
 
int ec_GFp_mont_mul_public_batch (const EC_GROUP *group, EC_RAW_POINT *r, const EC_SCALAR *g_scalar, const EC_RAW_POINT *points, const EC_SCALAR *scalars, size_t num)
 
static void lookup_precomp (const EC_GROUP *group, EC_RAW_POINT *out, const EC_RAW_POINT *precomp, int digit)
 

Macro Definition Documentation

◆ EC_WNAF_STACK

#define EC_WNAF_STACK   3

Definition at line 180 of file wnaf.c.

◆ EC_WNAF_TABLE_SIZE

#define EC_WNAF_TABLE_SIZE   (1 << (EC_WNAF_WINDOW_BITS - 1))

Definition at line 176 of file wnaf.c.

◆ EC_WNAF_WINDOW_BITS

#define EC_WNAF_WINDOW_BITS   4

Definition at line 173 of file wnaf.c.

Function Documentation

◆ compute_precomp()

static void compute_precomp ( const EC_GROUP group,
EC_RAW_POINT out,
const EC_RAW_POINT p,
size_t  len 
)
static

Definition at line 151 of file wnaf.c.

◆ ec_compute_wNAF()

void ec_compute_wNAF ( const EC_GROUP group,
int8_t out,
const EC_SCALAR scalar,
size_t  bits,
int  w 
)

Definition at line 88 of file wnaf.c.

◆ ec_GFp_mont_mul_public_batch()

int ec_GFp_mont_mul_public_batch ( const EC_GROUP group,
EC_RAW_POINT r,
const EC_SCALAR g_scalar,
const EC_RAW_POINT points,
const EC_SCALAR scalars,
size_t  num 
)

Definition at line 182 of file wnaf.c.

◆ lookup_precomp()

static void lookup_precomp ( const EC_GROUP group,
EC_RAW_POINT out,
const EC_RAW_POINT precomp,
int  digit 
)
static

Definition at line 161 of file wnaf.c.



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