Mistake on this page?
Report an issue in GitHub or email us
Data Structures | Macros | Enumerations | Functions
sec_main.h File Reference

Internal security service structures. More...

#include "hci_api.h"
#include "pal_crypto.h"

Go to the source code of this file.

Data Structures

struct  secCmacSecCb_t
struct  secCcmSecCb_t
struct  secQueueBuf_t
struct  secCb_t


#define SEC_BLOCK_LEN   16
#define SEC_RAND_DATA_LEN   32
#define SEC_ECC_CFG_DEBUG   0
#define SEC_CCM_OP_ENCRYPT   0



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...

Detailed Description

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


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.

Macro Definition Documentation

#define SEC_BLOCK_LEN   16

AES, CMAC and HCI algorithm block length

Definition at line 40 of file sec_main.h.


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.


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.


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.

Enumeration Type Documentation

anonymous enum

Enumeration of security operation types

Definition at line 73 of file sec_main.h.

Function Documentation

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.

pKeyPointer to key.
pTextPointer to text to encrypt.
pBufPointer to queue block.
handlerIdHandler ID.
Important Information for this Arm website

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies. If you are not happy with the use of these cookies, please review our Cookie Policy to learn how they can be disabled. By disabling cookies, some features of the site will not work.