sup

small tool for privilege escalation
git clone https://git.parazyd.org/sup
Log | Files | Refs | README | LICENSE

sha256.h (383B)


      1 #ifndef uint8
      2 #define uint8  unsigned char
      3 #endif
      4 
      5 #ifndef uint32
      6 #define uint32 unsigned long int
      7 #endif
      8 
      9 typedef struct
     10 {
     11     uint32 total[2];
     12     uint32 state[8];
     13     uint8 buffer[64];
     14 }
     15 sha256_context;
     16 
     17 void sha256_starts( sha256_context *ctx );
     18 void sha256_update( sha256_context *ctx, uint8 *input, uint32 length );
     19 void sha256_finish( sha256_context *ctx, uint8 digest[32] );