123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- #ifndef _SHA512_H
- #define _SHA512_H 1
- #include <limits.h>
- #include <stdint.h>
- #include <stdio.h>
- struct sha512_ctx
- {
- uint64_t H[8];
- uint64_t total[2];
- uint64_t buflen;
- char buffer[256] __attribute__ ((__aligned__ (__alignof__ (uint64_t))));
- };
- extern void __sha512_init_ctx (struct sha512_ctx *ctx) attribute_hidden;
- extern void __sha512_process_bytes (const void *buffer, size_t len,
- struct sha512_ctx *ctx) attribute_hidden;
- extern void *__sha512_finish_ctx (struct sha512_ctx *ctx, void *resbuf)
- attribute_hidden;
- #endif
|