#include <omnetpp.h>#include "SHA1.h"Go to the source code of this file.
Defines | |
| #define | SHA1_NO_UTILITY_FUNCTIONS |
| #define | SHA1_MAX_FILE_BUFFER 8000 |
| #define | ROL32(_val32, _nBits) (((_val32)<<(_nBits))|((_val32)>>(32-(_nBits)))) |
| #define | SHABLK0(i) |
| #define | SHABLK(i) |
| #define | _R0(v, w, x, y, z, i) { z+=((w&(x^y))^y)+SHABLK0(i)+0x5A827999+ROL32(v,5); w=ROL32(w,30); } |
| #define | _R1(v, w, x, y, z, i) { z+=((w&(x^y))^y)+SHABLK(i)+0x5A827999+ROL32(v,5); w=ROL32(w,30); } |
| #define | _R2(v, w, x, y, z, i) { z+=(w^x^y)+SHABLK(i)+0x6ED9EBA1+ROL32(v,5); w=ROL32(w,30); } |
| #define | _R3(v, w, x, y, z, i) { z+=(((w|x)&y)|(w&x))+SHABLK(i)+0x8F1BBCDC+ROL32(v,5); w=ROL32(w,30); } |
| #define | _R4(v, w, x, y, z, i) { z+=(w^x^y)+SHABLK(i)+0xCA62C1D6+ROL32(v,5); w=ROL32(w,30); } |
Definition in file SHA1.cc.
| #define _R0 | ( | v, | ||
| w, | ||||
| x, | ||||
| y, | ||||
| z, | ||||
| i | ||||
| ) | { z+=((w&(x^y))^y)+SHABLK0(i)+0x5A827999+ROL32(v,5); w=ROL32(w,30); } |
Definition at line 58 of file SHA1.cc.
Referenced by CSHA1::Transform().
| #define _R1 | ( | v, | ||
| w, | ||||
| x, | ||||
| y, | ||||
| z, | ||||
| i | ||||
| ) | { z+=((w&(x^y))^y)+SHABLK(i)+0x5A827999+ROL32(v,5); w=ROL32(w,30); } |
Definition at line 59 of file SHA1.cc.
Referenced by CSHA1::Transform().
| #define _R2 | ( | v, | ||
| w, | ||||
| x, | ||||
| y, | ||||
| z, | ||||
| i | ||||
| ) | { z+=(w^x^y)+SHABLK(i)+0x6ED9EBA1+ROL32(v,5); w=ROL32(w,30); } |
Definition at line 60 of file SHA1.cc.
Referenced by CSHA1::Transform().
| #define _R3 | ( | v, | ||
| w, | ||||
| x, | ||||
| y, | ||||
| z, | ||||
| i | ||||
| ) | { z+=(((w|x)&y)|(w&x))+SHABLK(i)+0x8F1BBCDC+ROL32(v,5); w=ROL32(w,30); } |
Definition at line 61 of file SHA1.cc.
Referenced by CSHA1::Transform().
| #define _R4 | ( | v, | ||
| w, | ||||
| x, | ||||
| y, | ||||
| z, | ||||
| i | ||||
| ) | { z+=(w^x^y)+SHABLK(i)+0xCA62C1D6+ROL32(v,5); w=ROL32(w,30); } |
Definition at line 62 of file SHA1.cc.
Referenced by CSHA1::Transform().
| #define ROL32 | ( | _val32, | ||
| _nBits | ||||
| ) | (((_val32)<<(_nBits))|((_val32)>>(32-(_nBits)))) |
| #define SHA1_MAX_FILE_BUFFER 8000 |
Definition at line 35 of file SHA1.cc.
Referenced by CSHA1::HashFile().
| #define SHABLK | ( | i | ) |
1.7.1