File: crypto_hash_sha512.h

package info (click to toggle)
ruby-bcrypt-pbkdf 1.1.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 216 kB
  • sloc: ansic: 1,062; ruby: 71; makefile: 4
file content (19 lines) | stat: -rw-r--r-- 657 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <stdint.h>

typedef struct crypto_hash_sha512_state {
    uint64_t      state[8];
    uint64_t      count[2];
    unsigned char buf[128];
} crypto_hash_sha512_state;

#define crypto_hash_sha512_BYTES 64U
int crypto_hash_sha512_init(crypto_hash_sha512_state *state);
int crypto_hashblocks_sha512(unsigned char *statebytes,const unsigned char *in,unsigned long long inlen);
int
crypto_hash_sha512_update(crypto_hash_sha512_state *state,
                          const unsigned char *in,
                          unsigned long long inlen);
int
crypto_hash_sha512_final(crypto_hash_sha512_state *state,
                         unsigned char *out);