LLVM  6.0.0svn
Namespaces | Macros | Functions
FuzzerSHA1.cpp File Reference
#include "FuzzerSHA1.h"
#include "FuzzerDefs.h"
#include <iomanip>
#include <sstream>
#include <stdint.h>
#include <string.h>
#include <endian.h>
Include dependency graph for FuzzerSHA1.cpp:

Go to the source code of this file.

Namespaces

 fuzzer
 

Macros

#define SHA_BIG_ENDIAN
 
#define HASH_LENGTH   20
 
#define BLOCK_LENGTH   64
 
#define SHA1_K0   0x5a827999
 
#define SHA1_K20   0x6ed9eba1
 
#define SHA1_K40   0x8f1bbcdc
 
#define SHA1_K60   0xca62c1d6
 

Functions

void fuzzer::ComputeSHA1 (const uint8_t *Data, size_t Len, uint8_t *Out)
 
std::string fuzzer::Sha1ToString (const uint8_t Sha1[kSHA1NumBytes])
 
std::string fuzzer::Hash (const Unit &U)
 

Macro Definition Documentation

◆ BLOCK_LENGTH

#define BLOCK_LENGTH   64

Definition at line 52 of file FuzzerSHA1.cpp.

◆ HASH_LENGTH

#define HASH_LENGTH   20

Definition at line 51 of file FuzzerSHA1.cpp.

Referenced by fuzzer::ComputeSHA1().

◆ SHA1_K0

#define SHA1_K0   0x5a827999

Definition at line 80 of file FuzzerSHA1.cpp.

◆ SHA1_K20

#define SHA1_K20   0x6ed9eba1

Definition at line 81 of file FuzzerSHA1.cpp.

◆ SHA1_K40

#define SHA1_K40   0x8f1bbcdc

Definition at line 82 of file FuzzerSHA1.cpp.

◆ SHA1_K60

#define SHA1_K60   0xca62c1d6

Definition at line 83 of file FuzzerSHA1.cpp.

◆ SHA_BIG_ENDIAN

#define SHA_BIG_ENDIAN

Definition at line 44 of file FuzzerSHA1.cpp.