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

Go to the source code of this file.

Macros

#define tmp_felem(I)   (&((char *)tmp_felems)[(I) * felem_size])
 
#define X(I)   (&((char *)point_array)[3*(I) * felem_size])
 
#define Y(I)   (&((char *)point_array)[(3*(I) + 1) * felem_size])
 
#define Z(I)   (&((char *)point_array)[(3*(I) + 2) * felem_size])
 

Functions

void ec_GFp_nistp_points_make_affine_internal (size_t num, void *point_array, size_t felem_size, void *tmp_felems, void(*felem_one)(void *out), int(*felem_is_zero)(const void *in), void(*felem_assign)(void *out, const void *in), void(*felem_square)(void *out, const void *in), void(*felem_mul)(void *out, const void *in1, const void *in2), void(*felem_inv)(void *out, const void *in), void(*felem_contract)(void *out, const void *in))
 
void ec_GFp_nistp_recode_scalar_bits (unsigned char *sign, unsigned char *digit, unsigned char in)
 

Macro Definition Documentation

#define tmp_felem (   I)    (&((char *)tmp_felems)[(I) * felem_size])
#define X (   I)    (&((char *)point_array)[3*(I) * felem_size])
#define Y (   I)    (&((char *)point_array)[(3*(I) + 1) * felem_size])
#define Z (   I)    (&((char *)point_array)[(3*(I) + 2) * felem_size])

Function Documentation

void ec_GFp_nistp_points_make_affine_internal ( size_t  num,
void point_array,
size_t  felem_size,
void tmp_felems,
void(*)(void *out felem_one,
int(*)(const void *in felem_is_zero,
void(*)(void *out, const void *in felem_assign,
void(*)(void *out, const void *in felem_square,
void(*)(void *out, const void *in1, const void *in2)  felem_mul,
void(*)(void *out, const void *in felem_inv,
void(*)(void *out, const void *in felem_contract 
)

Definition at line 44 of file ecp_nistputil.c.

void ec_GFp_nistp_recode_scalar_bits ( unsigned char *  sign,
unsigned char *  digit,
unsigned char  in 
)

Definition at line 183 of file ecp_nistputil.c.