Commit fa5c09d5 authored by Daniel Salzman's avatar Daniel Salzman

tests: add Big-Endian compatibility to Siphash

parent d0f52e7c
......@@ -16,14 +16,15 @@
#include <tap/basic.h>
#include "contrib/openbsd/siphash.h"
#include "contrib/endian.h"
int main(void)
{
plan_lazy();
SIPHASH_KEY key = {
0x0706050403020100,
0x0f0e0d0c0b0a0908
.k0 = htole64(0x0706050403020100),
.k1 = htole64(0x0f0e0d0c0b0a0908)
};
const char *data = "\x00\x01\x02\x03\x04\x05\x06\x07\x08\x09\x0a\x0b\x0c\x0d\x0e";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment