/usr/include/bglibs/crypto/sha256.h is in libbg1-dev 1.106-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | #ifndef BGLIBS__SHA256__H__
#define BGLIBS__SHA256__H__
#include <sysdeps.h>
#define SHA256_DIGEST_LENGTH (256/8)
typedef struct {
uint32 H[8];
uint64 bytes;
uint8 M[64];
} SHA256_ctx;
void SHA256_init(SHA256_ctx*);
void SHA256_update(SHA256_ctx*, const void*, unsigned long);
void SHA256_final(SHA256_ctx*, uint8*);
#endif
|