/usr/include/skalibs/sha1.h is in skalibs-dev 0.47-1.
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 19 20 21 22 | /* Public domain. */
#ifndef SHA1_H
#define SHA1_H
#include "uint32.h"
typedef struct SHA1Schedule SHA1Schedule, *SHA1Schedule_ref ;
struct SHA1Schedule
{
uint32 buf[5] ;
uint32 bits[2] ;
uint32 in[16] ;
unsigned char b ;
} ;
#define SHA1_INIT() { {0x67452301UL, 0xefcdab89UL, 0x98badcfeUL, 0x10325476UL, 0xc3d2e1f0UL}, {0, 0}, {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}, 0 }
extern void sha1_init (SHA1Schedule_ref) ;
extern void sha1_update (SHA1Schedule_ref, char const *, unsigned int) ;
extern void sha1_final (SHA1Schedule_ref, char * /* 20 chars */) ;
#endif
|