#include <stdio.h>#include <stdlib.h>#include <string.h>#include <utilities/string_utilities.h>#include <utilities/testing_utilities.h>
Go to the source code of this file.
Classes | |
| struct | nitro::MD5_CTX |
Namespaces | |
| namespace | nitro |
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) |
Typedefs | |
| typedef unsigned char | nitro::UC |
| typedef unsigned short | nitro::UI |
| typedef unsigned long | nitro::UINT4 |
| typedef unsigned char * | nitro::POINTER |
Functions | |
| void | nitro::Encode (UC *output, UINT4 *input, std::size_t len) |
| void | nitro::Decode (UINT4 *output, UC *input, UI len) |
| void | nitro::MDTransformF (UINT4 s[4], UINT4 x[16]) |
| void | nitro::MDTransformG (UINT4 s[4], UINT4 x[16]) |
| void | nitro::MDTransformH (UINT4 s[4], UINT4 x[16]) |
| void | nitro::MDTransformI (UINT4 s[4], UINT4 x[16]) |
| void | nitro::MDTransform (UINT4 state[4], UC block[64]) |
| void | nitro::MDUpdate (MD5_CTX *context, UC *input, std::size_t inputLen) |
| void | nitro::MDFinal (UC digest[16], MD5_CTX *context) |
| void | nitro::MDInit (MD5_CTX *Context) |
Variables | |
| static UC | nitro::PADDING [64] |
| #define F | ( | x, | ||
| y, | ||||
| z | ||||
| ) | ( ( ( x ) & ( y ) ) | ( ( ~x ) & ( z ) ) ) |
Definition at line 456 of file string_utilities.cpp.
| #define FF | ( | a, | ||
| b, | ||||
| c, | ||||
| d, | ||||
| x, | ||||
| s, | ||||
| ac | ||||
| ) |
{\
(a) += F ((b), (c), (d)) + (x) + (UINT4)(ac);\
(a) = ROTATE_LEFT ((a), (s));\
(a) += (b);}
Definition at line 464 of file string_utilities.cpp.
Referenced by nitro::MDTransformF().
| #define G | ( | x, | ||
| y, | ||||
| z | ||||
| ) | ( ( ( x ) & ( z ) ) | ( ( y ) & ( ~z ) ) ) |
Definition at line 457 of file string_utilities.cpp.
| #define GG | ( | a, | ||
| b, | ||||
| c, | ||||
| d, | ||||
| x, | ||||
| s, | ||||
| ac | ||||
| ) |
{\
(a) += G ((b), (c), (d)) + (x) + (UINT4)(ac);\
(a) = ROTATE_LEFT ((a), (s));\
(a) += (b);}
Definition at line 468 of file string_utilities.cpp.
Referenced by nitro::MDTransformG().
| #define H | ( | x, | ||
| y, | ||||
| z | ||||
| ) | ( ( x ) ^ ( y ) ^ ( z ) ) |
Definition at line 458 of file string_utilities.cpp.
| #define HH | ( | a, | ||
| b, | ||||
| c, | ||||
| d, | ||||
| x, | ||||
| s, | ||||
| ac | ||||
| ) |
{\
(a) += H ((b), (c), (d)) + (x) + (UINT4)(ac);\
(a) = ROTATE_LEFT ((a), (s));\
(a) += (b);}
Definition at line 472 of file string_utilities.cpp.
Referenced by nitro::MDTransformH().
| #define I | ( | x, | ||
| y, | ||||
| z | ||||
| ) | ( ( y ) ^ ( ( x ) | ( ~z ) ) ) |
Definition at line 459 of file string_utilities.cpp.
| #define II | ( | a, | ||
| b, | ||||
| c, | ||||
| d, | ||||
| x, | ||||
| s, | ||||
| ac | ||||
| ) |
{\
(a) += I ((b), (c), (d)) + (x) + (UINT4)(ac);\
(a) = ROTATE_LEFT ((a), (s));\
(a) += (b);}
Definition at line 476 of file string_utilities.cpp.
Referenced by nitro::MDTransformI().
| #define ROTATE_LEFT | ( | x, | ||
| n | ||||
| ) | (((x) << (n)) | ((x) >> (32-(n)))) |
Definition at line 461 of file string_utilities.cpp.
| #define S11 7 |
Definition at line 430 of file string_utilities.cpp.
Referenced by nitro::MDTransformF().
| #define S12 12 |
Definition at line 431 of file string_utilities.cpp.
Referenced by nitro::MDTransformF().
| #define S13 17 |
Definition at line 432 of file string_utilities.cpp.
Referenced by nitro::MDTransformF().
| #define S14 22 |
Definition at line 433 of file string_utilities.cpp.
Referenced by nitro::MDTransformF().
| #define S21 5 |
Definition at line 434 of file string_utilities.cpp.
Referenced by nitro::MDTransformG().
| #define S22 9 |
Definition at line 435 of file string_utilities.cpp.
Referenced by nitro::MDTransformG().
| #define S23 14 |
Definition at line 436 of file string_utilities.cpp.
Referenced by nitro::MDTransformG().
| #define S24 20 |
Definition at line 437 of file string_utilities.cpp.
Referenced by nitro::MDTransformG().
| #define S31 4 |
Definition at line 438 of file string_utilities.cpp.
Referenced by nitro::MDTransformH().
| #define S32 11 |
Definition at line 439 of file string_utilities.cpp.
Referenced by nitro::MDTransformH().
| #define S33 16 |
Definition at line 440 of file string_utilities.cpp.
Referenced by nitro::MDTransformH().
| #define S34 23 |
Definition at line 441 of file string_utilities.cpp.
Referenced by nitro::MDTransformH().
| #define S41 6 |
Definition at line 442 of file string_utilities.cpp.
Referenced by nitro::MDTransformI().
| #define S42 10 |
Definition at line 443 of file string_utilities.cpp.
Referenced by nitro::MDTransformI().
| #define S43 15 |
Definition at line 444 of file string_utilities.cpp.
Referenced by nitro::MDTransformI().
| #define S44 21 |
Definition at line 445 of file string_utilities.cpp.
Referenced by nitro::MDTransformI().
1.6.1