aes.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2014  Internet Systems Consortium, Inc. ("ISC")
00003  *
00004  * Permission to use, copy, modify, and/or distribute this software for any
00005  * purpose with or without fee is hereby granted, provided that the above
00006  * copyright notice and this permission notice appear in all copies.
00007  *
00008  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
00009  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
00010  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
00011  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
00012  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
00013  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
00014  * PERFORMANCE OF THIS SOFTWARE.
00015  */
00016 
00017 /* $Id$ */
00018 
00019 /*! \file isc/aes.h */
00020 
00021 #ifndef ISC_AES_H
00022 #define ISC_AES_H 1
00023 
00024 #include <isc/lang.h>
00025 #include <isc/platform.h>
00026 #include <isc/types.h>
00027 
00028 #define ISC_AES128_KEYLENGTH 16U
00029 #define ISC_AES192_KEYLENGTH 24U
00030 #define ISC_AES256_KEYLENGTH 32U
00031 #define ISC_AES_BLOCK_LENGTH 16U
00032 
00033 #ifdef ISC_PLATFORM_WANTAES
00034 
00035 ISC_LANG_BEGINDECLS
00036 
00037 void
00038 isc_aes128_crypt(const unsigned char *key, const unsigned char *in,
00039                  unsigned char *out);
00040 
00041 void
00042 isc_aes192_crypt(const unsigned char *key, const unsigned char *in,
00043                  unsigned char *out);
00044 
00045 void
00046 isc_aes256_crypt(const unsigned char *key, const unsigned char *in,
00047                  unsigned char *out);
00048 
00049 ISC_LANG_ENDDECLS
00050 
00051 #endif /* ISC_PLATFORM_WANTAES */
00052 
00053 #endif /* ISC_AES_H */

Generated on Tue Apr 28 17:41:04 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha