My Project
Loading...
Searching...
No Matches
curve448.h
Go to the documentation of this file.
1
42int wc_curve448_make_key(WC_RNG* rng, int keysize, curve448_key* key);
43
85int wc_curve448_shared_secret(curve448_key* private_key,
86 curve448_key* public_key,
87 byte* out, word32* outlen);
88
134int wc_curve448_shared_secret_ex(curve448_key* private_key,
135 curve448_key* public_key,
136 byte* out, word32* outlen, int endian);
137
159int wc_curve448_init(curve448_key* key);
160
179void wc_curve448_free(curve448_key* key);
180
213int wc_curve448_import_private(const byte* priv, word32 privSz,
214 curve448_key* key);
215
252int wc_curve448_import_private_ex(const byte* priv, word32 privSz,
253 curve448_key* key, int endian);
254
298int wc_curve448_import_private_raw(const byte* priv, word32 privSz,
299 const byte* pub, word32 pubSz, curve448_key* key);
300
346int wc_curve448_import_private_raw_ex(const byte* priv, word32 privSz,
347 const byte* pub, word32 pubSz,
348 curve448_key* key, int endian);
349
388int wc_curve448_export_private_raw(curve448_key* key, byte* out,
389 word32* outLen);
390
432int wc_curve448_export_private_raw_ex(curve448_key* key, byte* out,
433 word32* outLen, int endian);
434
476int wc_curve448_import_public(const byte* in, word32 inLen,
477 curve448_key* key);
478
522int wc_curve448_import_public_ex(const byte* in, word32 inLen,
523 curve448_key* key, int endian);
524
558int wc_curve448_check_public(const byte* pub, word32 pubSz, int endian);
559
598int wc_curve448_export_public(curve448_key* key, byte* out, word32* outLen);
599
640int wc_curve448_export_public_ex(curve448_key* key, byte* out,
641 word32* outLen, int endian);
642
686int wc_curve448_export_key_raw(curve448_key* key,
687 byte* priv, word32 *privSz,
688 byte* pub, word32 *pubSz);
689
737int wc_curve448_export_key_raw_ex(curve448_key* key,
738 byte* priv, word32 *privSz,
739 byte* pub, word32 *pubSz,
740 int endian);
741
768int wc_curve448_size(curve448_key* key);
int wc_curve448_import_public_ex(const byte *in, word32 inLen, curve448_key *key, int endian)
This function imports a public key from the given in buffer and stores it in the curve448_key structu...
int wc_curve448_export_key_raw(curve448_key *key, byte *priv, word32 *privSz, byte *pub, word32 *pubSz)
This function exports a key pair from the given key structure and stores the result in the out buffer...
int wc_curve448_export_public_ex(curve448_key *key, byte *out, word32 *outLen, int endian)
This function exports a public key from the given key structure and stores the result in the out buff...
int wc_curve448_make_key(WC_RNG *rng, int keysize, curve448_key *key)
This function generates a Curve448 key using the given random number generator, rng,...
void wc_curve448_free(curve448_key *key)
This function frees a Curve448 object.
int wc_curve448_shared_secret_ex(curve448_key *private_key, curve448_key *public_key, byte *out, word32 *outlen, int endian)
This function computes a shared secret key given a secret private key and a received public key....
int wc_curve448_import_private(const byte *priv, word32 privSz, curve448_key *key)
This function imports a curve448 private key only. (Big endian).
int wc_curve448_import_private_ex(const byte *priv, word32 privSz, curve448_key *key, int endian)
curve448 private key import only. (Big or Little endian).
int wc_curve448_shared_secret(curve448_key *private_key, curve448_key *public_key, byte *out, word32 *outlen)
This function computes a shared secret key given a secret private key and a received public key....
int wc_curve448_import_public(const byte *in, word32 inLen, curve448_key *key)
This function imports a public key from the given in buffer and stores it in the curve448_key structu...
int wc_curve448_import_private_raw_ex(const byte *priv, word32 privSz, const byte *pub, word32 pubSz, curve448_key *key, int endian)
This function imports a public-private key pair into a curve448_key structure. Supports both big and ...
int wc_curve448_init(curve448_key *key)
This function initializes a Curve448 key. It should be called before generating a key for the structu...
int wc_curve448_check_public(const byte *pub, word32 pubSz, int endian)
This function checks that a public key buffer holds a valid Curve448 key value given the endian order...
int wc_curve448_export_key_raw_ex(curve448_key *key, byte *priv, word32 *privSz, byte *pub, word32 *pubSz, int endian)
Export curve448 key pair. Big or little endian.
int wc_curve448_export_public(curve448_key *key, byte *out, word32 *outLen)
This function exports a public key from the given key structure and stores the result in the out buff...
int wc_curve448_import_private_raw(const byte *priv, word32 privSz, const byte *pub, word32 pubSz, curve448_key *key)
This function imports a public-private key pair into a curve448_key structure. Big endian only.
int wc_curve448_size(curve448_key *key)
This function returns the key size of the given key structure.
int wc_curve448_export_private_raw_ex(curve448_key *key, byte *out, word32 *outLen, int endian)
This function exports a private key from a curve448_key structure and stores it in the given out buff...
int wc_curve448_export_private_raw(curve448_key *key, byte *out, word32 *outLen)
This function exports a private key from a curve448_key structure and stores it in the given out buff...