• Main Page
  • Modules
  • Index
  • File List
  • Globals

hal/nrf24lu1p/hal_aes.h

Go to the documentation of this file.
00001 /* Copyright (c) 2009 Nordic Semiconductor. All Rights Reserved.
00002  *
00003  * The information contained herein is confidential property of Nordic 
00004  * Semiconductor ASA.Terms and conditions of usage are described in detail 
00005  * in NORDIC SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT. 
00006  *
00007  * Licensees are granted free, non-transferable use of the information. NO
00008  * WARRENTY of ANY KIND is provided. This heading must NOT be removed from
00009  * the file.
00010  *              
00011  * $LastChangedRevision: 178 $
00012  */
00013 
00034 #ifndef HAL_AES_H__
00035 #define HAL_AES_H__
00036 
00037 #include <stdint.h>
00038 #include <stdbool.h>
00039 
00043 #define _AES_ENABLE_GET_DEC_KEY_
00044 
00045 /* Function parameter defines*/
00046 typedef enum
00047 {
00048   CBC,
00049   CFB,
00050   OFB,
00051   CTR,
00052   ECB,
00053 } aes_modes_t;
00054 
00108 void hal_aes_setup(bool decrypt_enable, aes_modes_t mode, uint8_t *keyin, uint8_t *ivin);
00121 void hal_aes_crypt(uint8_t *dest_buf, uint8_t *src_buf);
00122 
00139 void hal_aes_get_dec_key(uint8_t *dest_dec_key, uint8_t *src_enc_key);
00140 
00141 #endif  // AES_HAL_H__
00142 

Generated on Fri Apr 20 2012 14:11:44 for nRFGo SDK by  doxygen 1.7.2