Home
last modified time | relevance | path

Searched refs:MD2_BLOCK_SIZE (Results 1 – 3 of 3) sorted by relevance

/freebsd/crypto/libecc/src/examples/hash/
H A Dmd2.c37 const u8 data[MD2_BLOCK_SIZE]) in md2_process() argument
41 u8 x[3 * MD2_BLOCK_SIZE]; in md2_process()
47 ret = local_memcpy(&x[0], ctx->md2_state, MD2_BLOCK_SIZE); EG(ret, err); in md2_process()
48 ret = local_memcpy(&x[MD2_BLOCK_SIZE], data, MD2_BLOCK_SIZE); EG(ret, err); in md2_process()
49 for(i = 0; i < MD2_BLOCK_SIZE; i++){ in md2_process()
50 x[(2 * MD2_BLOCK_SIZE) + i] = (ctx->md2_state[i] ^ data[i]); in md2_process()
55 for (j = 0; j < (3 * MD2_BLOCK_SIZE); j++){ in md2_process()
62 ret = local_memcpy(ctx->md2_state, &x[0], MD2_BLOCK_SIZE); EG(ret, err); in md2_process()
64 t = ctx->md2_checksum[MD2_BLOCK_SIZE - 1]; in md2_process()
65 for(i = 0; i < MD2_BLOCK_SIZE; i++){ in md2_process()
[all …]
H A Dmd2.h18 #define MD2_BLOCK_SIZE 16 macro
32 u8 md2_buffer[MD2_BLOCK_SIZE];
34 u8 md2_checksum[MD2_BLOCK_SIZE];
H A Dhash.c178 (*block_size) = MD2_BLOCK_SIZE; in gen_hash_get_hash_sizes()