OK millert; original commit message by tedu@:
memcpy from the right place. at this point, the used variable is not
relevant. from Mark Karpilovskij.
ok millert
-/* $OpenBSD: siphash.c,v 1.4 2017/04/12 18:35:50 florian Exp $ */
+/* $OpenBSD: siphash.c,v 1.5 2018/01/05 19:05:09 mikeb Exp $ */
/*-
* Copyright (c) 2013 Andre Oppermann <andre@FreeBSD.org>
}
if (len > 0)
- memcpy(&ctx->buf[used], ptr, len);
+ memcpy(ctx->buf, ptr, len);
}
void