Internal security service structures. More...
Go to the source code of this file.
Data Structures | |
struct | secCmacSecCb_t |
struct | secCcmSecCb_t |
struct | secQueueBuf_t |
struct | secCb_t |
Macros | |
#define | SEC_BLOCK_LEN 16 |
#define | SEC_RAND_DATA_LEN 32 |
#define | SEC_HCI_RAND_MULT (SEC_RAND_DATA_LEN / HCI_RAND_LEN) |
#define | SEC_ECC_CFG_DEBUG 0 |
#define | SEC_CMAC_CFG_PLATFORM 0 |
#define | SEC_CCM_CFG_PLATFORM 0 |
#define | SEC_CCM_OP_ENCRYPT 0 |
Enumerations |
Functions | |
void | SecLeEncryptCmd (uint8_t *pKey, uint8_t *pText, void *pBuf, wsfHandlerId_t handlerId) |
Queue callback and call LE encrypt given most significant byte ordered key and data. More... | |
Internal security service structures.
Copyright (c) 2010-2019 Arm Ltd. All Rights Reserved.
Copyright (c) 2019 Packetcraft, Inc.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file sec_main.h.
#define SEC_BLOCK_LEN 16 |
AES, CMAC and HCI algorithm block length
Definition at line 40 of file sec_main.h.
#define SEC_CCM_CFG_PLATFORM 0 |
Compile time CCM configuration
Definition at line 61 of file sec_main.h.
#define SEC_CCM_OP_ENCRYPT 0 |
CCM Operation (Encryption or Decryption)
Definition at line 65 of file sec_main.h.
#define SEC_CMAC_CFG_PLATFORM 0 |
Compile time CMAC configuration
Definition at line 57 of file sec_main.h.
#define SEC_ECC_CFG_DEBUG 0 |
Compile time ECC configuration
Definition at line 52 of file sec_main.h.
#define SEC_HCI_RAND_MULT (SEC_RAND_DATA_LEN / HCI_RAND_LEN) |
Multiple of HCI_RAND_LEN kept in the secCb_t rand data buffer
Definition at line 49 of file sec_main.h.
#define SEC_RAND_DATA_LEN 32 |
Number or random bytes to keep in the secCb_t rand data buffer
Definition at line 46 of file sec_main.h.
anonymous enum |
Enumeration of security operation types
Definition at line 73 of file sec_main.h.
void SecLeEncryptCmd | ( | uint8_t * | pKey, |
uint8_t * | pText, | ||
void * | pBuf, | ||
wsfHandlerId_t | handlerId | ||
) |
Queue callback and call LE encrypt given most significant byte ordered key and data.
pKey | Pointer to key. |
pText | Pointer to text to encrypt. |
pBuf | Pointer to queue block. |
handlerId | Handler ID. |