43 DIGEST ( 0xd4, 0x1d, 0x8c, 0xd9, 0x8f, 0x00, 0xb2, 0x04, 0xe9,
44 0x80, 0x09, 0x98, 0xec, 0xf8, 0x42, 0x7e ) );
48 DIGEST ( 0x90, 0x01, 0x50, 0x98, 0x3c, 0xd2, 0x4f, 0xb0, 0xd6,
49 0x96, 0x3f, 0x7d, 0x28, 0xe1, 0x7f, 0x72 ) );
53 DIGEST ( 0x82, 0x15, 0xef, 0x07, 0x96, 0xa2, 0x0b, 0xca, 0xaa,
54 0xe1, 0x16, 0xd3, 0x87, 0x6c, 0x66, 0x4a ) );
68 DBG (
"MD5 required %ld cycles per byte\n",
#define DIGEST(...)
Define inline expected digest.
unsigned long digest_cost(struct digest_algorithm *digest)
Calculate digest algorithm cost.
#define DIGEST_TEST(name, DIGEST, DATA, EXPECTED)
Define a digest test.
#define digest_ok(test)
Report a digest test result.
#define DIGEST_NIST_ABC_OPQ
Standard test vector: NIST string "abc...opq".
#define DIGEST_NIST_ABC
Standard test vector: NIST string "abc".
#define DIGEST_EMPTY
Standard test vector: empty data.
#define DBG(...)
Print a debugging message.
#define FILE_LICENCE(_licence)
Declare a particular licence as applying to a file.
struct digest_algorithm md5_algorithm
MD5 algorithm.
static void md5_test_exec(void)
Perform MD5 self-test.
Self-test infrastructure.
#define __self_test
Declare a self-test.