3 * The SipHash-2-4 message authentication code
5 * (c) 2024 Straylight/Edgeware
8 /*----- Licensing notice --------------------------------------------------*
10 * This file is part of the mLib utilities library.
12 * mLib is free software: you can redistribute it and/or modify it under
13 * the terms of the GNU Library General Public License as published by
14 * the Free Software Foundation; either version 2 of the License, or (at
15 * your option) any later version.
17 * mLib is distributed in the hope that it will be useful, but WITHOUT
18 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
19 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
20 * License for more details.
22 * You should have received a copy of the GNU Library General Public
23 * License along with mLib. If not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
28 /*----- Header files ------------------------------------------------------*/
32 /*----- Main code ---------------------------------------------------------*/
34 void siphash_setkey(struct siphash_key *k, const octet *p)
35 { LOAD64_L_(k->k0, p + 0); LOAD64_L_(k->k1, p + 8); }
37 SIPHASH_VARIANTS(SIPHASH_DEFINIT)
38 SIPHASH_VARIANTS(SIPHASH_DEFHASH)
39 SIPHASH_VARIANTS(SIPHASH_DEFDONE)
40 SIPHASH_VARIANTS(SIPHASH_DEFALLINONE)
42 /*----- That's all, folks -------------------------------------------------*/