OpenSSL  1.0.1c
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros
Classes | Macros | Typedefs | Functions
ec_mult.c File Reference
#include <string.h>
#include <openssl/err.h>
#include "ec_lcl.h"

Go to the source code of this file.

Classes

struct  ec_pre_comp_st
 

Macros

#define EC_window_bits_for_scalar_size(b)
 

Typedefs

typedef struct ec_pre_comp_st EC_PRE_COMP
 

Functions

int ec_wNAF_mul (const EC_GROUP *group, EC_POINT *r, const BIGNUM *scalar, size_t num, const EC_POINT *points[], const BIGNUM *scalars[], BN_CTX *ctx)
 
int ec_wNAF_precompute_mult (EC_GROUP *group, BN_CTX *ctx)
 
int ec_wNAF_have_precompute_mult (const EC_GROUP *group)
 

Macro Definition Documentation

#define EC_window_bits_for_scalar_size (   b)
Value:
((size_t) \
((b) >= 2000 ? 6 : \
(b) >= 800 ? 5 : \
(b) >= 300 ? 4 : \
(b) >= 70 ? 3 : \
(b) >= 20 ? 2 : \
1))

Definition at line 331 of file ec_mult.c.

Typedef Documentation

typedef struct ec_pre_comp_st EC_PRE_COMP

Function Documentation

int ec_wNAF_have_precompute_mult ( const EC_GROUP group)

Definition at line 934 of file ec_mult.c.

int ec_wNAF_mul ( const EC_GROUP group,
EC_POINT r,
const BIGNUM scalar,
size_t  num,
const EC_POINT points[],
const BIGNUM scalars[],
BN_CTX ctx 
)

Definition at line 346 of file ec_mult.c.

int ec_wNAF_precompute_mult ( EC_GROUP group,
BN_CTX ctx 
)

Definition at line 765 of file ec_mult.c.