My Project
Functions
signature.h File Reference

Go to the source code of this file.

Functions

int wc_SignatureGetSize (enum wc_SignatureType sig_type, const void *key, word32 key_len)
 This function returns the maximum size of the resulting signature. More...
 
int wc_SignatureVerify (enum wc_HashType hash_type, enum wc_SignatureType sig_type, const byte *data, word32 data_len, const byte *sig, word32 sig_len, const void *key, word32 key_len)
 This function validates a signature by hashing the data and using the resulting hash and key to verify the signature. More...
 
int wc_SignatureGenerate (enum wc_HashType hash_type, enum wc_SignatureType sig_type, const byte *data, word32 data_len, byte *sig, word32 *sig_len, const void *key, word32 key_len, WC_RNG *rng)
 This function generates a signature from the data using a key. It first creates a hash of the data then signs the hash using the key. More...