#include <vector>
#include "abkMD5.h"
Include dependency graph for md5.cxx:
Go to the source code of this file.
Defines | |
#define | S11 7 |
#define | S12 12 |
#define | S13 17 |
#define | S14 22 |
#define | S21 5 |
#define | S22 9 |
#define | S23 14 |
#define | S24 20 |
#define | S31 4 |
#define | S32 11 |
#define | S33 16 |
#define | S34 23 |
#define | S41 6 |
#define | S42 10 |
#define | S43 15 |
#define | S44 21 |
#define | F(x, y, z) (((x) & (y)) | ((~x) & (z))) |
#define | G(x, y, z) (((x) & (z)) | ((y) & (~z))) |
#define | H(x, y, z) ((x) ^ (y) ^ (z)) |
#define | I(x, y, z) ((y) ^ ((x) | (~z))) |
#define | ROTATE_LEFT(x, n) (((x) << (n)) | ((x) >> (32-(n)))) |
#define | FF(a, b, c, d, x, s, ac) |
#define | GG(a, b, c, d, x, s, ac) |
#define | HH(a, b, c, d, x, s, ac) |
#define | II(a, b, c, d, x, s, ac) |
Functions | |
ostream & | operator<< (ostream &os, const MD5 &md5) |
Variables | |
unsigned char | PADDING [64] |
|
|
|
Value: { \ (a) += F ((b), (c), (d)) + (x) + (unsigned)(ac); \ (a) = ROTATE_LEFT ((a), (s)); \ (a) += (b); \ } Definition at line 80 of file md5.cxx. Referenced by MD5::_transform(). |
|
|
|
Value: { \ (a) += G ((b), (c), (d)) + (x) + (unsigned)(ac); \ (a) = ROTATE_LEFT ((a), (s)); \ (a) += (b); \ } Definition at line 85 of file md5.cxx. Referenced by MD5::_transform(). |
|
|
|
Value: { \ (a) += H ((b), (c), (d)) + (x) + (unsigned)(ac); \ (a) = ROTATE_LEFT ((a), (s)); \ (a) += (b); \ } Definition at line 90 of file md5.cxx. Referenced by MD5::_transform(). |
|
|
|
Value: { \ (a) += I ((b), (c), (d)) + (x) + (unsigned)(ac); \ (a) = ROTATE_LEFT ((a), (s)); \ (a) += (b); \ } Definition at line 95 of file md5.cxx. Referenced by MD5::_transform(). |
|
|
|
Definition at line 40 of file md5.cxx. Referenced by MD5::_transform(). |
|
Definition at line 41 of file md5.cxx. Referenced by MD5::_transform(). |
|
Definition at line 42 of file md5.cxx. Referenced by MD5::_transform(). |
|
Definition at line 43 of file md5.cxx. Referenced by MD5::_transform(). |
|
Definition at line 44 of file md5.cxx. Referenced by MD5::_transform(). |
|
Definition at line 45 of file md5.cxx. Referenced by MD5::_transform(). |
|
Definition at line 46 of file md5.cxx. Referenced by MD5::_transform(). |
|
Definition at line 47 of file md5.cxx. Referenced by MD5::_transform(). |
|
Definition at line 48 of file md5.cxx. Referenced by MD5::_transform(). |
|
Definition at line 49 of file md5.cxx. Referenced by MD5::_transform(). |
|
Definition at line 50 of file md5.cxx. Referenced by MD5::_transform(). |
|
Definition at line 51 of file md5.cxx. Referenced by MD5::_transform(). |
|
Definition at line 52 of file md5.cxx. Referenced by MD5::_transform(). |
|
Definition at line 53 of file md5.cxx. Referenced by MD5::_transform(). |
|
Definition at line 54 of file md5.cxx. Referenced by MD5::_transform(). |
|
Definition at line 55 of file md5.cxx. Referenced by MD5::_transform(). |
|
Definition at line 368 of file md5.cxx. References MD5::_isFinalized, MD5::_state, abkfatal, and MD5::encode().
00369 { 00370 abkfatal(md5._isFinalized,"Can't output state of MD5 before finalization"); 00371 int i; 00372 unsigned char digest[16]; 00373 char buf[3]; 00374 MD5::encode(&digest[0],md5._state,16); 00375 for (i=0;i<16;i++) 00376 { 00377 sprintf(buf,"%02x",digest[i]); 00378 os << buf; 00379 } 00380 return os; 00381 } |
Here is the call graph for this function:
|
Initial value: { 0x80, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } Definition at line 56 of file md5.cxx. Referenced by MD5::_finalize(). |