123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- #ifndef _SHA256_H
- #define _SHA256_H 1
- #include <limits.h>
- #include <stdint.h>
- #include <stdio.h>
- struct sha256_ctx
- {
- uint32_t H[8];
- uint32_t total[2];
- uint32_t buflen;
- char buffer[128] __attribute__ ((__aligned__ (__alignof__ (uint32_t))));
- };
- extern void __sha256_init_ctx (struct sha256_ctx *ctx) attribute_hidden;
- extern void __sha256_process_bytes (const void *buffer, size_t len,
- struct sha256_ctx *ctx) attribute_hidden;
- extern void *__sha256_finish_ctx (struct sha256_ctx *ctx, void *resbuf)
- attribute_hidden;
- #endif
|