"Fossies" - the Fresh Open Source Software Archive

Member "bind-9.12.3-P1/lib/isc/include/isc/aes.h" (7 Dec 2018, 1079 Bytes) of package /linux/misc/dns/bind9/9.12.3-P1/bind-9.12.3-P1.tar.gz:


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.

    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 
   13 /*! \file isc/aes.h */
   14 
   15 #ifndef ISC_AES_H
   16 #define ISC_AES_H 1
   17 
   18 #include <isc/lang.h>
   19 #include <isc/platform.h>
   20 #include <isc/types.h>
   21 
   22 #define ISC_AES128_KEYLENGTH 16U
   23 #define ISC_AES192_KEYLENGTH 24U
   24 #define ISC_AES256_KEYLENGTH 32U
   25 #define ISC_AES_BLOCK_LENGTH 16U
   26 
   27 #ifdef ISC_PLATFORM_WANTAES
   28 
   29 ISC_LANG_BEGINDECLS
   30 
   31 void
   32 isc_aes128_crypt(const unsigned char *key, const unsigned char *in,
   33          unsigned char *out);
   34 
   35 void
   36 isc_aes192_crypt(const unsigned char *key, const unsigned char *in,
   37          unsigned char *out);
   38 
   39 void
   40 isc_aes256_crypt(const unsigned char *key, const unsigned char *in,
   41          unsigned char *out);
   42 
   43 ISC_LANG_ENDDECLS
   44 
   45 #endif /* ISC_PLATFORM_WANTAES */
   46 
   47 #endif /* ISC_AES_H */