aes-encblock.c

Go to the documentation of this file.
00001 
00017 #include "includes.h"
00018 
00019 #include "common.h"
00020 #include "aes.h"
00021 
00030 int aes_128_encrypt_block(const u8 *key, const u8 *in, u8 *out)
00031 {
00032         void *ctx;
00033         ctx = aes_encrypt_init(key, 16);
00034         if (ctx == NULL)
00035                 return -1;
00036         aes_encrypt(ctx, in, out);
00037         aes_encrypt_deinit(ctx);
00038         return 0;
00039 }
00040 
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Defines

Generated on Sat Nov 21 23:16:49 2009 for hostapd by  doxygen 1.6.1