File: sha512.h

package info (click to toggle)
bglibs 2.04%2Bdfsg-8
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,468 kB
  • sloc: ansic: 15,821; perl: 674; sh: 63; makefile: 29
file content (19 lines) | stat: -rw-r--r-- 369 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef BGLIBS__SHA512__H__
#define BGLIBS__SHA512__H__

#include "sysdeps.h"

#define SHA512_DIGEST_LENGTH (512/8)

struct SHA512_ctx {
  uint64 H[8];
  uint64 bytes;
  uint8 M[256];
};
typedef struct SHA512_ctx SHA512_ctx;

void SHA512_init  (SHA512_ctx*);
void SHA512_update(SHA512_ctx*, const void*, unsigned long);
void SHA512_final (SHA512_ctx*, uint8*);

#endif