webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Macros | Functions
wnaf.c File Reference
#include <openssl/ec.h>
#include <string.h>
#include <openssl/bn.h>
#include <openssl/err.h>
#include <openssl/mem.h>
#include <openssl/thread.h>
#include "internal.h"
#include "../internal.h"

Macros

#define EC_window_bits_for_scalar_size(b)
 

Functions

int ec_wNAF_mul (const EC_GROUP *group, EC_POINT *r, const BIGNUM *g_scalar, const EC_POINT *p, const BIGNUM *p_scalar, BN_CTX *ctx)
 

Macro Definition Documentation

◆ EC_window_bits_for_scalar_size

#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))
std::integral_constant< std::size_t, V > size_t
Definition: Brigand.h:447
GLboolean GLboolean GLboolean b
Definition: gl2ext.h:306

Function Documentation

◆ ec_wNAF_mul()

int ec_wNAF_mul ( const EC_GROUP group,
EC_POINT r,
const BIGNUM g_scalar,
const EC_POINT p,
const BIGNUM p_scalar,
BN_CTX ctx 
)