45 DIGEST ( 0xda, 0x39, 0xa3, 0xee, 0x5e, 0x6b, 0x4b, 0x0d, 0x32,
46 0x55, 0xbf, 0xef, 0x95, 0x60, 0x18, 0x90, 0xaf, 0xd8,
51 DIGEST ( 0xa9, 0x99, 0x3e, 0x36, 0x47, 0x06, 0x81, 0x6a, 0xba,
52 0x3e, 0x25, 0x71, 0x78, 0x50, 0xc2, 0x6c, 0x9c, 0xd0,
57 DIGEST ( 0x84, 0x98, 0x3e, 0x44, 0x1c, 0x3b, 0xd2, 0x6e, 0xba,
58 0xae, 0x4a, 0xa1, 0xf9, 0x51, 0x29, 0xe5, 0xe5, 0x46,
73 DBG (
"SHA1 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 sha1_algorithm
SHA-1 algorithm.
static void sha1_test_exec(void)
Perform SHA-1 self-test.
Self-test infrastructure.
#define __self_test
Declare a self-test.