"Fossies" - the Fresh Open Source Software Archive

Member "bind-9.17.5/lib/isc/include/isc/siphash.h" (4 Sep 2020, 915 Bytes) of package /linux/misc/dns/bind9/9.17.5/bind-9.17.5.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "siphash.h" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 9.17.3_vs_9.17.4.

    1 /*
    2  * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
    3  *
    4  * This Source Code Form is subject to the terms of the Mozilla Public
    5  * License, v. 2.0. If a copy of the MPL was not distributed with this
    6  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
    7  *
    8  * See the COPYRIGHT file distributed with this work for additional
    9  * information regarding copyright ownership.
   10  */
   11 
   12 /*! \file isc/siphash.h */
   13 
   14 #pragma once
   15 
   16 #include <isc/lang.h>
   17 #include <isc/platform.h>
   18 #include <isc/types.h>
   19 
   20 #define ISC_SIPHASH24_KEY_LENGTH 128 / 8
   21 #define ISC_SIPHASH24_TAG_LENGTH 64 / 8
   22 
   23 #define ISC_HALFSIPHASH24_KEY_LENGTH 64 / 8
   24 #define ISC_HALFSIPHASH24_TAG_LENGTH 32 / 8
   25 
   26 ISC_LANG_BEGINDECLS
   27 
   28 void
   29 isc_siphash24(const uint8_t *key, const uint8_t *in, const size_t inlen,
   30           uint8_t *out);
   31 void
   32 isc_halfsiphash24(const uint8_t *key, const uint8_t *in, const size_t inlen,
   33           uint8_t *out);
   34 
   35 ISC_LANG_ENDDECLS