[BACK]Return to siphash.h CVS log [TXT][DIR] Up to [local] / src / include

Diff for /src/include/siphash.h between version 1.2 and 1.3

version 1.2, 2014/12/20 05:43:26 version 1.3, 2015/02/20 11:51:03
Line 52 
Line 52 
 #define SIPHASH_DIGEST_LENGTH    8  #define SIPHASH_DIGEST_LENGTH    8
   
 typedef struct _SIPHASH_CTX {  typedef struct _SIPHASH_CTX {
         u_int64_t       v[4];          uint64_t        v[4];
         u_int8_t        buf[SIPHASH_BLOCK_LENGTH];          uint8_t         buf[SIPHASH_BLOCK_LENGTH];
         u_int32_t       bytes;          uint32_t        bytes;
 } SIPHASH_CTX;  } SIPHASH_CTX;
   
 typedef struct {  typedef struct {
         u_int64_t       k0;          uint64_t        k0;
         u_int64_t       k1;          uint64_t        k1;
 } SIPHASH_KEY;  } SIPHASH_KEY;
   
 void            SipHash_Init(SIPHASH_CTX *, const SIPHASH_KEY *);  void            SipHash_Init(SIPHASH_CTX *, const SIPHASH_KEY *);
 void            SipHash_Update(SIPHASH_CTX *, int, int, const void *, size_t);  void            SipHash_Update(SIPHASH_CTX *, int, int, const void *, size_t);
 u_int64_t       SipHash_End(SIPHASH_CTX *, int, int);  uint64_t        SipHash_End(SIPHASH_CTX *, int, int);
 void            SipHash_Final(void *, SIPHASH_CTX *, int, int);  void            SipHash_Final(void *, SIPHASH_CTX *, int, int);
 u_int64_t       SipHash(const SIPHASH_KEY *, int, int, const void *, size_t);  uint64_t        SipHash(const SIPHASH_KEY *, int, int, const void *, size_t);
   
 #define SipHash24_Init(_c, _k)          SipHash_Init((_c), (_k))  #define SipHash24_Init(_c, _k)          SipHash_Init((_c), (_k))
 #define SipHash24_Update(_c, _p, _l)    SipHash_Update((_c), 2, 4, (_p), (_l))  #define SipHash24_Update(_c, _p, _l)    SipHash_Update((_c), 2, 4, (_p), (_l))

Legend:
Removed from v.1.2  
changed lines
  Added in v.1.3