Lines Matching +full:19 +full:- +full:input
20 u8 buffer[MD4_BLOCK_LENGTH]; /* input buffer */
25 static void MD4Update(MD4_CTX *ctx, const unsigned char *input, size_t len);
35 return -1; in md4_vector()
45 /* ===== start - public domain MD4 implementation ===== */
49 * This code implements the MD4 message-digest algorithm.
63 * will fill a supplied 16-byte array with the digest.
100 ctx->count = 0; in MD4Init()
101 ctx->state[0] = 0x67452301; in MD4Init()
102 ctx->state[1] = 0xefcdab89; in MD4Init()
103 ctx->state[2] = 0x98badcfe; in MD4Init()
104 ctx->state[3] = 0x10325476; in MD4Init()
111 static void MD4Update(MD4_CTX *ctx, const unsigned char *input, size_t len) in MD4Update() argument
116 have = (size_t)((ctx->count >> 3) & (MD4_BLOCK_LENGTH - 1)); in MD4Update()
117 need = MD4_BLOCK_LENGTH - have; in MD4Update()
120 ctx->count += (u64)len << 3; in MD4Update()
124 os_memcpy(ctx->buffer + have, input, need); in MD4Update()
125 MD4Transform(ctx->state, ctx->buffer); in MD4Update()
126 input += need; in MD4Update()
127 len -= need; in MD4Update()
131 /* Process data in MD4_BLOCK_LENGTH-byte chunks. */ in MD4Update()
133 MD4Transform(ctx->state, input); in MD4Update()
134 input += MD4_BLOCK_LENGTH; in MD4Update()
135 len -= MD4_BLOCK_LENGTH; in MD4Update()
141 os_memcpy(ctx->buffer + have, input, len); in MD4Update()
145 * Pad pad to 64-byte boundary with the bit pattern
146 * 1 0* (64-bit count of bits processed, MSB-first)
154 PUT_64BIT_LE(count, ctx->count); in MD4Pad()
157 padlen = MD4_BLOCK_LENGTH - in MD4Pad()
158 ((ctx->count >> 3) & (MD4_BLOCK_LENGTH - 1)); in MD4Pad()
161 MD4Update(ctx, PADDING, padlen - 8); /* padlen - 8 <= 64 */ in MD4Pad()
166 * Final wrapup--call MD4Pad, fill in digest and zero out ctx.
175 PUT_32BIT_LE(digest + i * 4, ctx->state[i]); in MD4Final()
181 /* The three core functions - F1 is optimized somewhat */
190 ( w += f(x, y, z) + data, w = w<<s | w>>(32-s) )
222 MD4STEP(F1, b, c, d, a, in[ 3], 19); in MD4Transform()
226 MD4STEP(F1, b, c, d, a, in[ 7], 19); in MD4Transform()
230 MD4STEP(F1, b, c, d, a, in[11], 19); in MD4Transform()
234 MD4STEP(F1, b, c, d, a, in[15], 19); in MD4Transform()
275 /* ===== end - public domain MD4 implementation ===== */