wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Functions
aes-encblock.c File Reference

AES encrypt_block. More...

#include "includes.h"
#include "common.h"
#include "aes.h"
#include "aes_wrap.h"

Functions

int aes_128_encrypt_block (const u8 *key, const u8 *in, u8 *out)
 Perform one AES 128-bit block operation. More...
 

Detailed Description

AES encrypt_block.

Function Documentation

int aes_128_encrypt_block ( const u8 *  key,
const u8 *  in,
u8 *  out 
)

Perform one AES 128-bit block operation.

Parameters
keyKey for AES
inInput data (16 bytes)
outOutput of the AES block operation (16 bytes)
Returns
0 on success, -1 on failure