Sha256: 6de583f8108a36c921d11442536bbe35ff68383304a38693fa2533f0d70fcf2e

Contents?: true

Size: 1.25 KB

Versions: 3207

Compression:

Stored size: 1.25 KB

Contents

#ifndef SIPHASH_H
#define SIPHASH_H 1
#include <stdlib.h>
#ifdef HAVE_STDINT_H
#include <stdint.h>
#endif
#ifdef HAVE_INTTYPES_H
#include <inttypes.h>
#endif

#ifndef HAVE_UINT64_T
typedef struct {
    uint32_t u32[2];
} sip_uint64_t;
#define uint64_t sip_uint64_t
#else
typedef uint64_t sip_uint64_t;
#endif

typedef struct {
    int c;
    int d;
    uint64_t v[4];
    uint8_t buf[sizeof(uint64_t)];
    uint8_t buflen;
    uint8_t msglen_byte;
} sip_state;

typedef struct sip_interface_st sip_interface;

typedef struct {
    sip_state state[1];
    const sip_interface *methods;
} sip_hash;

sip_hash *sip_hash_new(const uint8_t key[16], int c, int d);
sip_hash *sip_hash_init(sip_hash *h, const uint8_t key[16], int c, int d);
int sip_hash_update(sip_hash *h, const uint8_t *data, size_t len);
int sip_hash_final(sip_hash *h, uint8_t **digest, size_t *len);
int sip_hash_final_integer(sip_hash *h, uint64_t *digest);
int sip_hash_digest(sip_hash *h, const uint8_t *data, size_t data_len, uint8_t **digest, size_t *digest_len);
int sip_hash_digest_integer(sip_hash *h, const uint8_t *data, size_t data_len, uint64_t *digest);
void sip_hash_free(sip_hash *h);
void sip_hash_dump(sip_hash *h);

uint64_t sip_hash24(const uint8_t key[16], const uint8_t *data, size_t len);

#endif

Version data entries

3,207 entries across 108 versions & 12 rubygems

Version Path
debase-ruby_core_source-3.3.6 lib/debase/ruby_core_source/ruby-2.2.0-p0/siphash.h
debase-ruby_core_source-3.3.6 lib/debase/ruby_core_source/ruby-2.2.7-p470/siphash.h
debase-ruby_core_source-3.3.6 lib/debase/ruby_core_source/ruby-2.1.5-p273/siphash.h
debase-ruby_core_source-3.3.6 lib/debase/ruby_core_source/ruby-2.1.9-p490/siphash.h
debase-ruby_core_source-3.3.6 lib/debase/ruby_core_source/ruby-2.2.3-p173/siphash.h
debase-ruby_core_source-3.3.6 lib/debase/ruby_core_source/ruby-2.2.6-p396/siphash.h
debase-ruby_core_source-3.3.6 lib/debase/ruby_core_source/ruby-2.1.10-p492/siphash.h
debase-ruby_core_source-3.3.6 lib/debase/ruby_core_source/ruby-2.1.4-p265/siphash.h
debase-ruby_core_source-3.3.6 lib/debase/ruby_core_source/ruby-2.1.7-p400/siphash.h
debase-ruby_core_source-3.3.6 lib/debase/ruby_core_source/ruby-2.1.8-p440/siphash.h
debase-ruby_core_source-3.3.6 lib/debase/ruby_core_source/ruby-2.2.1-p85/siphash.h
debase-ruby_core_source-3.3.6 lib/debase/ruby_core_source/ruby-2.2.2-p95/siphash.h
debase-ruby_core_source-3.3.6 lib/debase/ruby_core_source/ruby-2.2.4-p230/siphash.h
debase-ruby_core_source-3.3.6 lib/debase/ruby_core_source/ruby-2.2.5-p319/siphash.h
debase-ruby_core_source-3.3.6 lib/debase/ruby_core_source/ruby-2.1.0-p0/siphash.h
debase-ruby_core_source-3.3.6 lib/debase/ruby_core_source/ruby-2.1.1-p76/siphash.h
debase-ruby_core_source-3.3.6 lib/debase/ruby_core_source/ruby-2.1.2-p95/siphash.h
debase-ruby_core_source-3.3.6 lib/debase/ruby_core_source/ruby-2.1.3-p242/siphash.h
debase-ruby_core_source-3.3.6 lib/debase/ruby_core_source/ruby-2.1.6-p336/siphash.h
debase-ruby_core_source-3.3.6 lib/debase/ruby_core_source/ruby-2.2.8-p477/siphash.h