Go to the documentation of this file.
27 #ifndef POLARSSL_ECP_H
28 #define POLARSSL_ECP_H
35 #define POLARSSL_ERR_ECP_BAD_INPUT_DATA -0x4F80
36 #define POLARSSL_ERR_ECP_BUFFER_TOO_SMALL -0x4F00
37 #define POLARSSL_ERR_ECP_FEATURE_UNAVAILABLE -0x4E80
38 #define POLARSSL_ERR_ECP_VERIFY_FAILED -0x4E00
39 #define POLARSSL_ERR_ECP_MALLOC_FAILED -0x4D80
40 #define POLARSSL_ERR_ECP_RANDOM_FAILED -0x4D00
41 #define POLARSSL_ERR_ECP_INVALID_KEY -0x4C80
72 #define POLARSSL_ECP_DP_MAX 9
155 #define POLARSSL_ECP_MAX_BITS 521
156 #define POLARSSL_ECP_MAX_BYTES ( ( POLARSSL_ECP_MAX_BITS + 7 ) / 8 )
157 #define POLARSSL_ECP_MAX_PT_LEN ( 2 * POLARSSL_ECP_MAX_BYTES + 1 )
169 #define POLARSSL_ECP_WINDOW_SIZE 8
174 #define POLARSSL_ECP_PF_UNCOMPRESSED 0
175 #define POLARSSL_ECP_PF_COMPRESSED 1
180 #define POLARSSL_ECP_TLS_NAMED_CURVE 3
187 const ecp_curve_info *ecp_curve_list( void );
271 const char *x,
const char *y );
289 const char *p,
const char *b,
290 const char *gx,
const char *gy,
const char *n);
307 int format,
size_t *olen,
308 unsigned char *buf,
size_t buflen );
327 const unsigned char *buf,
size_t ilen );
369 unsigned char *buf,
size_t blen );
402 const unsigned char **buf,
size_t len );
419 int format,
size_t *olen,
420 unsigned char *buf,
size_t blen );
481 int (*f_rng)(
void *,
unsigned char *,
size_t),
void *p_rng );
539 int (*f_rng)(
void *,
unsigned char *,
size_t),