Sorry, I showed wrong code in md5_update(). This code copies a received binary to a MD5_CTX variable. In static md5_update(), line 456: memcpy(new_ctx, ctx_bin.data, MD5_CTX_LEN);