My Project
signature.h
Go to the documentation of this file.
1 
32 int wc_SignatureGetSize(enum wc_SignatureType sig_type,
33  const void* key, word32 key_len);
34 
80  enum wc_HashType hash_type, enum wc_SignatureType sig_type,
81  const byte* data, word32 data_len,
82  const byte* sig, word32 sig_len,
83  const void* key, word32 key_len);
84 
143  enum wc_HashType hash_type, enum wc_SignatureType sig_type,
144  const byte* data, word32 data_len,
145  byte* sig, word32 *sig_len,
146  const void* key, word32 key_len,
147  WC_RNG* rng);
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 verif...
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 th...
int wc_SignatureGetSize(enum wc_SignatureType sig_type, const void *key, word32 key_len)
This function returns the maximum size of the resulting signature.