"Fossies" - the Fresh Open Source Software Archive

Member "syslinux-6.03/gpxe/src/include/gpxe/aes.h" (6 Oct 2014, 689 Bytes) of package /linux/misc/syslinux-6.03.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 #ifndef _GPXE_AES_H
    2 #define _GPXE_AES_H
    3 
    4 FILE_LICENCE ( GPL2_OR_LATER );
    5 
    6 struct cipher_algorithm;
    7 
    8 /** Basic AES blocksize */
    9 #define AES_BLOCKSIZE 16
   10 
   11 #include "crypto/axtls/crypto.h"
   12 
   13 /** AES context */
   14 struct aes_context {
   15     /** AES context for AXTLS */
   16     AES_CTX axtls_ctx;
   17     /** Cipher is being used for decrypting */
   18     int decrypting;
   19 };
   20 
   21 /** AES context size */
   22 #define AES_CTX_SIZE sizeof ( struct aes_context )
   23 
   24 extern struct cipher_algorithm aes_algorithm;
   25 extern struct cipher_algorithm aes_cbc_algorithm;
   26 
   27 int aes_wrap ( const void *kek, const void *src, void *dest, int nblk );
   28 int aes_unwrap ( const void *kek, const void *src, void *dest, int nblk );
   29 
   30 #endif /* _GPXE_AES_H */