/home/dko/projects/mobilec/trunk/src/security/xyssl-0.9/include/xyssl/aes.h File Reference
Go to the source code of this file.
 
Data Structures
 
Defines
 
Functions
  AES key schedule (encryption). 
  AES key schedule (decryption). 
  AES-ECB block encryption/decryption. 
  AES-CBC buffer encryption/decryption. 
  AES-CFB buffer encryption/decryption. 
  Checkup routine. 
Detailed Description
Definition in file aes.h.
Define Documentation
Function Documentation
 
 
 
 
  
 
 unsigned char 
  iv[16], 
 
  
 
 unsigned char * 
  input, 
 
  
 
 unsigned char * 
  output 
 
  
 )
  
 
 
 
AES-CBC buffer encryption/decryption. 
- Parameters:
- 
 
  ctx AES context   mode AES_ENCRYPT or AES_DECRYPT   length length of the input data   iv initialization vector (updated after use)   input buffer holding the input data   output buffer holding the output data  
Referenced by main().
 
 
 
 
 
 
 
  
 
 unsigned char 
  iv[16], 
 
  
 
 unsigned char * 
  input, 
 
  
 
 unsigned char * 
  output 
 
  
 )
  
 
 
 
AES-CFB buffer encryption/decryption. 
- Parameters:
- 
 
  ctx AES context   mode AES_ENCRYPT or AES_DECRYPT   length length of the input data   iv_off offset in IV (updated after use)   iv initialization vector (updated after use)   input buffer holding the input data   output buffer holding the output data  
 
 
 
 
 
  
 
 unsigned char 
  input[16], 
 
  
 
 unsigned char 
  output[16] 
 
  
 )
  
 
 
 
AES-ECB block encryption/decryption. 
- Parameters:
- 
 
  ctx AES context   mode AES_ENCRYPT or AES_DECRYPT   input 16-byte input block   output 16-byte output block  
Referenced by main().
 
 
 
  int aes_self_test 
 (
 
int 
  verbose 
  ) 
 
 
 
 
 
Checkup routine. 
- Returns:
- 0 if successful, or 1 if the test failed 
Referenced by main().
 
 
AES key schedule (decryption). 
- Parameters:
- 
 
  ctx AES context to be initialized   key decryption key   keysize must be 128, 192 or 256  
Referenced by main().
 
 
AES key schedule (encryption). 
- Parameters:
- 
 
  ctx AES context to be initialized   key encryption key   keysize must be 128, 192 or 256  
Referenced by main().