Nektar++
Namespaces | Macros | Functions
sha1.cpp File Reference
#include "sha1.h"

Go to the source code of this file.

Namespaces

namespace  sha1
 

Macros

#define sha1macro(func, val)
 

Functions

void sha1::calc (const void *src, const int bytelength, unsigned char *hash)
 Calculate the SHA1 hash of some data set. More...
 
void sha1::toHexString (const unsigned char *hash, char *hexstring)
 Calculate a string which represents the SHA1 hash as a hexadecimal number. More...
 

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; \
}
std::vector< double > w(NPUPPER)
std::vector< double > d(NPUPPER *NPUPPER)