File: sha256.h

package info (click to toggle)
bglibs 1.106-1.1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 4,792 kB
  • ctags: 4,145
  • sloc: ansic: 14,028; perl: 625; makefile: 121; sh: 64
file content (18 lines) | stat: -rw-r--r-- 335 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef BGLIBS__SHA256__H__
#define BGLIBS__SHA256__H__

#include <sysdeps.h>

#define SHA256_DIGEST_LENGTH (256/8)

typedef struct {
  uint32 H[8];
  uint64 bytes;
  uint8 M[64];
} SHA256_ctx;

void SHA256_init(SHA256_ctx*);
void SHA256_update(SHA256_ctx*, const void*, unsigned long);
void SHA256_final(SHA256_ctx*, uint8*);

#endif