fhq-server  v0.2.33
Documentation for fhq-server. FreeHackQuest is an open source platform for competitions of computer security.
Namespaces | Macros | Functions
smallsha1.cpp File Reference
#include "smallsha1.h"
Include dependency graph for smallsha1.cpp:

Namespaces

 sha1
 

Macros

#define sha1macro(func, val)
 

Functions

void sha1::calc (const void *src, const int bytelength, unsigned char *hash)
 
void sha1::toHexString (const unsigned char *hash, char *hexstring)
 

Macro Definition Documentation

◆ sha1macro

#define sha1macro (   func,
  val 
)
Value:
{ \
const unsigned int t = rol(a, 5) + (func) + e + val + w[round]; \
e = d; \
d = c; \
c = rol(b, 30); \
b = a; \
a = t; \
}