nRF5 SDK v17.1.0
Data Structures | Enumerations | Functions
Security AES CCM declarations

Module to declare Security AES CCM API. More...

Data Structures

struct  sec_aes_ccm_req_t
 AES CCM request. More...
 

Enumerations

enum  sec_aes_ccm_status_t {
  AES_CCM_OK,
  AES_ENGINE_FAIL,
  AES_CCM_FAIL,
  AES_CCM_AUTH_FAIL
}
 AES CCM Status enumeration. More...
 

Functions

void sec_init (void)
 Function for initializing the security abstraction layer.
 
sec_aes_ccm_status_t sec_aes_ccm_enc (sec_aes_ccm_req_t *req)
 AES CCM encryption transformation. More...
 
sec_aes_ccm_status_t sec_aes_ccm_dec (sec_aes_ccm_req_t *req)
 AES CCM decryption transformation. More...
 

Detailed Description

Module to declare Security AES CCM API.

Enumeration Type Documentation

AES CCM Status enumeration.

Enumerator
AES_CCM_OK 

AES CCM operation succeeded.

AES_ENGINE_FAIL 

AES engine failed.

AES_CCM_FAIL 

CCM algorithm failed.

AES_CCM_AUTH_FAIL 

CCM authentication failed.

Function Documentation

sec_aes_ccm_status_t sec_aes_ccm_dec ( sec_aes_ccm_req_t req)

AES CCM decryption transformation.

Performs synchronous decryption of a cipher.

Parameters
reqDecryption request structure.
Returns
AES_CCM_OK on success, otherwise an implementation defined error.
sec_aes_ccm_status_t sec_aes_ccm_enc ( sec_aes_ccm_req_t req)

AES CCM encryption transformation.

Performs synchronous encryption of data.

Parameters
reqEncryption request structure.
Returns
AES_CCM_OK on success, otherwise an implementation defined error.

Documentation feedback | Developer Zone | Subscribe | Updated