![]() |
Cordio Stack and Cordio Profiles
r2p3-02rel0
|
AES and random number security service API. More...
#include "wsf_types.h"
Go to the source code of this file.
Data Structures | |
struct | secMsg_t |
AES Security callback parameters structure. More... | |
struct | secEccKey_t |
ECC Security public/private key pair. More... | |
struct | secEccSharedSec_t |
ECC security DH Key shared secret. More... | |
struct | secEccMsg_t |
ECC Security callback parameters structure. More... | |
Macros | |
#define | SEC_CMAC_KEY_LEN 16 |
CMAC algorithm key length. | |
#define | SEC_CMAC_HASH_LEN 16 |
CMAC algorithm result length. | |
#define | SEC_ECC_KEY_LEN 32 |
ECC algorithm key length. | |
#define | SEC_TOKEN_INVALID 0xFF |
Invalid AES Token. | |
Typedefs | |
typedef secMsg_t | secAes_t |
AES Security callback are the same as secMsg_t. | |
typedef secMsg_t | secCmacMsg_t |
CMAC Security callback are the same as secMsg_t. | |
Functions | |
Security Initialization Functions | |
void | SecInit (void) |
Initialize the security service. This function should only be called once upon system initialization. More... | |
void | SecRandInit (void) |
Initialize the random number service. This function should only be called once upon system initialization. More... | |
void | SecAesInit (void) |
Initialize the AES service. This function should only be called once upon system initialization. More... | |
void | SecCmacInit (void) |
Called to initialize CMAC security. This function should only be called once upon system initialization. More... | |
void | SecEccInit (void) |
Called to initialize ECC security. This function should only be called once upon system initialization. More... | |
Security AES and CMAC Functions | |
uint8_t | SecAes (uint8_t *pKey, uint8_t *pPlaintext, wsfHandlerId_t handlerId, uint16_t param, uint8_t event) |
Execute an AES calculation. When the calculation completes, a WSF message will be sent to the specified handler. This function returns a token value that the client can use to match calls to this function with messages. More... | |
bool_t | SecCmac (const uint8_t *pKey, uint8_t *pPlaintext, uint8_t textLen, wsfHandlerId_t handlerId, uint16_t param, uint8_t event) |
Execute the CMAC algorithm. More... | |
Security ECC Functions | |
bool_t | SecEccGenKey (wsfHandlerId_t handlerId, uint16_t param, uint8_t event) |
Generate an ECC key. More... | |
bool_t | SecEccGenSharedSecret (secEccKey_t *pKey, wsfHandlerId_t handlerId, uint16_t param, uint8_t event) |
Generate an ECC key. More... | |
Security Random Number Generator Functions | |
void | SecRand (uint8_t *pRand, uint8_t randLen) |
This function returns up to 16 bytes of random data to a buffer provided by the client. More... | |
AES and random number security service API.
Copyright (c) 2010-2018 Arm Ltd. All Rights Reserved. ARM Ltd. confidential and proprietary.
IMPORTANT. Your use of this file is governed by a Software License Agreement ("Agreement") that must be accepted in order to download or otherwise receive a copy of this file. You may not use or copy this file for any purpose other than as described in the Agreement. If you do not agree to all of the terms of the Agreement do not use this file and delete all copies in your possession or control; if you do not have a copy of the Agreement, you must contact ARM Ltd. prior to any use, copying or further distribution of this software.
Definition in file sec_api.h.