My Project
siphash.h
Go to the documentation of this file.
1 
36 int wc_InitSipHash(SipHash* siphash, const unsigned char* key,
37  unsigned char outSz);
38 
74 int wc_SipHashUpdate(SipHash* siphash, const unsigned char* in,
75  word32 inSz);
76 
112 int wc_SipHashFinal(SipHash* siphash, unsigned char* out,
113  unsigned char outSz);
114 
149 int wc_SipHash(const unsigned char* key, const unsigned char* in,
150  word32 inSz, unsigned char* out, unsigned char outSz);
151 
wc_SipHashUpdate
int wc_SipHashUpdate(SipHash *siphash, const unsigned char *in, word32 inSz)
Can be called to continually hash the provided byte array of length len.
wc_InitSipHash
int wc_InitSipHash(SipHash *siphash, const unsigned char *key, unsigned char outSz)
This function initializes SipHash with a key for a MAC size.
wc_SipHashFinal
int wc_SipHashFinal(SipHash *siphash, unsigned char *out, unsigned char outSz)
Finalizes MACing of data. Result is placed into out.
wc_SipHash
int wc_SipHash(const unsigned char *key, const unsigned char *in, word32 inSz, unsigned char *out, unsigned char outSz)
This function one-shots the data using SipHash to calculate a MAC based on the key.