Functions | Variables
signature.h File Reference

Go to the source code of this file.

Functions

WOLFSSL_API 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...
 
WOLFSSL_API int wc_SignatureVerifyHash (enum wc_HashType hash_type, enum wc_SignatureType sig_type, const byte *hash_data, word32 hash_len, const byte *sig, word32 sig_len, const void *key, word32 key_len)
 
WOLFSSL_API 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...
 
WOLFSSL_API int wc_SignatureGenerateHash (enum wc_HashType hash_type, enum wc_SignatureType sig_type, const byte *hash_data, word32 hash_len, byte *sig, word32 *sig_len, const void *key, word32 key_len, WC_RNG *rng)
 
WOLFSSL_API int wc_SignatureGenerateHash_ex (enum wc_HashType hash_type, enum wc_SignatureType sig_type, const byte *hash_data, word32 hash_len, byte *sig, word32 *sig_len, const void *key, word32 key_len, WC_RNG *rng, int verify)
 
WOLFSSL_API 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...
 
WOLFSSL_API int wc_SignatureGenerate_ex (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, int verify)
 

Variables

 C
 

Variable Documentation

◆ C

C
Initial value:
{
#endif
enum wc_SignatureType {
WC_SIGNATURE_TYPE_NONE = 0,
WC_SIGNATURE_TYPE_ECC = 1,
WC_SIGNATURE_TYPE_RSA = 2,
WC_SIGNATURE_TYPE_RSA_W_ENC = 3,
}