mirror of
https://github.com/crosstool-ng/crosstool-ng.git
synced 2024-12-30 17:46:57 +00:00
24 lines
484 B
C
24 lines
484 B
C
|
/*
|
||
|
Wrapper around moxiebox'es implementation of SHA256 digest that
|
||
|
mimics the API of the OpenSSL implementation.
|
||
|
*/
|
||
|
|
||
|
#ifndef __SHA_H_
|
||
|
#define __SHA_H_
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
#include "../runtime/sandboxrt_crypto.h"
|
||
|
#define SHA256_DIGEST_LENGTH SHA256_BLOCK_SIZE
|
||
|
void SHA256_Init(SHA256_CTX *ctx);
|
||
|
void SHA256_Update(SHA256_CTX *ctx, const void *data, size_t len);
|
||
|
void SHA256_Final(unsigned char *md, SHA256_CTX *ctx);
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
#endif
|