forked from wolfSSL/wolfssl
fix ecc API linkage
This commit is contained in:
@@ -80,36 +80,36 @@ typedef struct {
|
|||||||
extern const ecc_set_type ecc_sets[];
|
extern const ecc_set_type ecc_sets[];
|
||||||
|
|
||||||
|
|
||||||
CYASSL_LOCAL
|
CYASSL_API
|
||||||
int ecc_make_key(RNG* rng, int keysize, ecc_key* key);
|
int ecc_make_key(RNG* rng, int keysize, ecc_key* key);
|
||||||
CYASSL_LOCAL
|
CYASSL_API
|
||||||
int ecc_shared_secret(ecc_key* private_key, ecc_key* public_key, byte* out,
|
int ecc_shared_secret(ecc_key* private_key, ecc_key* public_key, byte* out,
|
||||||
word32* outlen);
|
word32* outlen);
|
||||||
CYASSL_LOCAL
|
CYASSL_API
|
||||||
int ecc_sign_hash(const byte* in, word32 inlen, byte* out, word32 *outlen,
|
int ecc_sign_hash(const byte* in, word32 inlen, byte* out, word32 *outlen,
|
||||||
RNG* rng, ecc_key* key);
|
RNG* rng, ecc_key* key);
|
||||||
CYASSL_LOCAL
|
CYASSL_API
|
||||||
int ecc_verify_hash(const byte* sig, word32 siglen, byte* hash, word32 hashlen,
|
int ecc_verify_hash(const byte* sig, word32 siglen, byte* hash, word32 hashlen,
|
||||||
int* stat, ecc_key* key);
|
int* stat, ecc_key* key);
|
||||||
CYASSL_LOCAL
|
CYASSL_API
|
||||||
void ecc_init(ecc_key* key);
|
void ecc_init(ecc_key* key);
|
||||||
CYASSL_LOCAL
|
CYASSL_API
|
||||||
void ecc_free(ecc_key* key);
|
void ecc_free(ecc_key* key);
|
||||||
|
|
||||||
|
|
||||||
/* ASN key helpers */
|
/* ASN key helpers */
|
||||||
CYASSL_LOCAL
|
CYASSL_API
|
||||||
int ecc_export_x963(ecc_key*, byte* out, word32* outLen);
|
int ecc_export_x963(ecc_key*, byte* out, word32* outLen);
|
||||||
CYASSL_LOCAL
|
CYASSL_API
|
||||||
int ecc_import_x963(const byte* in, word32 inLen, ecc_key* key);
|
int ecc_import_x963(const byte* in, word32 inLen, ecc_key* key);
|
||||||
CYASSL_LOCAL
|
CYASSL_API
|
||||||
int ecc_import_private_key(const byte* priv, word32 privSz, const byte* pub,
|
int ecc_import_private_key(const byte* priv, word32 privSz, const byte* pub,
|
||||||
word32 pubSz, ecc_key* key);
|
word32 pubSz, ecc_key* key);
|
||||||
|
|
||||||
/* size helper */
|
/* size helper */
|
||||||
CYASSL_LOCAL
|
CYASSL_API
|
||||||
int ecc_size(ecc_key* key);
|
int ecc_size(ecc_key* key);
|
||||||
CYASSL_LOCAL
|
CYASSL_API
|
||||||
int ecc_sig_size(ecc_key* key);
|
int ecc_sig_size(ecc_key* key);
|
||||||
|
|
||||||
/* TODO: fix mutex types */
|
/* TODO: fix mutex types */
|
||||||
|
Reference in New Issue
Block a user