text: /********************************************************************************************************
   * @file     ll_encrypt.h 
   *
   * @brief    for TLSR chips
   *
   * @author	 public@telink-semi.com;
   * @date     Sep. 18, 2015
   *
   * @par      Copyright (c) Telink Semiconductor (Shanghai) Co., Ltd.
   *           All rights reserved.
   *           
   *			 The information contained herein is confidential and proprietary property of Telink 
   * 		     Semiconductor (Shanghai) Co., Ltd. and is available under the terms 
   *			 of Commercial License Agreement between Telink Semiconductor (Shanghai) 
   *			 Co., Ltd. and the licensee in separate contract or the terms described here-in. 
   *           This heading MUST NOT be removed from this file.
   *
   * 			 Licensees are granted free, non-transferable use of the information in this 
   *			 file under Mutual Non-Disclosure Agreement. NO WARRENTY of ANY KIND is provided. 
   *           
   *******************************************************************************************************/
  /*
   * ble_ll_encrypt.h
   *
   *  Created on: 2016-9-22
   *      Author: Telink
   */
  
  #ifndef BLE_LL_ENCRYPT_H_
  #define BLE_LL_ENCRYPT_H_
  
  
  
  
  
  typedef struct {
  	u32		pkt;
  	u8		dir;
  	u8		iv[8];
  } ble_cyrpt_nonce_t;
  
  
  typedef struct {
  	u32					enc_pno;
  	u32					dec_pno;
  	u8					sk[16];			//session key
  	ble_cyrpt_nonce_t	nonce;
  	u8					st;
  	u8					enable;			//1: slave enable; 2: master enable
  	u8					mic_fail;
  } ble_crypt_para_t;
  
  #endif /* BLE_LL_ENCRYPT_H_ */
  