|
- /*******************************************************************************
- * @fn LL_EXT_Decrypt API
- *
- * [url=home.php?mod=space&uid=159083]@brief[/url] This API is called by the HCI to request the LL to decrypt the
- * data in the command using the key given in the command.
- *
- * Note: The parameters are byte ordered MSO to LSO.
- *
- * input parameters
- *
- * @param *key - A 128 bit key to be used to calculate the
- * session key.
- * @param *encryptedData - A 128 bit block that is encrypted.
- *
- * output parameters
- *
- * @param *plaintextData - A 128 bit block that is to be encrypted.
- *
- * @param None.
- *
- * @return LL_STATUS_SUCCESS
- */
- extern llStatus_t LL_EXT_Decrypt( uint8 *key,
- uint8 *encryptedData,
- uint8 *plaintextData );
复制代码
- /*******************************************************************************
- * @fn LL_Encrypt API
- *
- * @brief This API is called by the HCI to request the LL to encrypt the
- * data in the command using the key given in the command.
- *
- * Note: The parameters are byte ordered MSO to LSO.
- *
- * input parameters
- *
- * @param *key - A 128 bit key to be used to calculate the
- * session key.
- * @param *plaintextData - A 128 bit block that is to be encrypted.
- *
- * output parameters
- *
- * @param *encryptedData - A 128 bit block that is encrypted.
- *
- * @param None.
- *
- * @return LL_STATUS_SUCCESS
- */
- extern llStatus_t LL_Encrypt( uint8 *key,
- uint8 *plaintextData,
- uint8 *encryptedData );
复制代码 自己解答 |
|