[go: up one dir, main page]

File: sha512.h

package info (click to toggle)
fio 3.33-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 10,896 kB
  • sloc: ansic: 78,615; sh: 5,191; python: 4,795; makefile: 832; yacc: 204; lex: 184
file content (16 lines) | stat: -rw-r--r-- 301 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef FIO_SHA512_H
#define FIO_SHA512_H

#include <inttypes.h>

struct fio_sha512_ctx {
	uint64_t state[8];
	uint32_t count[4];
	uint8_t *buf;
	uint64_t W[80];
};

void fio_sha512_init(struct fio_sha512_ctx *);
void fio_sha512_update(struct fio_sha512_ctx *, const uint8_t *, unsigned int);

#endif