File: sha256.h

package info (click to toggle)
fio 1.38-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 1,108 kB
  • ctags: 2,240
  • sloc: ansic: 17,668; makefile: 98; sh: 55
file content (13 lines) | stat: -rw-r--r-- 241 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#ifndef FIO_SHA256_H
#define FIO_SHA256_H

struct sha256_ctx {
	uint32_t count[2];
	uint32_t state[8];
	uint8_t *buf;
};

void sha256_init(struct sha256_ctx *);
void sha256_update(struct sha256_ctx *, const uint8_t *, unsigned int);

#endif