45 printf (
"md5sum ( %#08lx, %#lx ) = ", dispaddr,
len );
49 for ( i = 0 ; i <
sizeof ( digest_out ) ; i++ )
50 printf (
"%02x", digest_out[i] );
static void digest_update(struct digest_algorithm *digest, void *ctx, const void *data, size_t len)
int printf(const char *fmt,...)
Write a formatted string to the console.
static void digest_final(struct digest_algorithm *digest, void *ctx, void *out)
static void digest_init(struct digest_algorithm *digest, void *ctx)
void dbg_md5_da(unsigned long dispaddr, const void *data, unsigned long len)
Print an MD5 checksum with specified display address.
size_t ctxsize
Context size.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
size_t digestsize
Digest size.
A message digest algorithm.
uint8_t data[48]
Additional event data.
struct digest_algorithm md5_algorithm
MD5 algorithm.