1.2.11.4.2 CIPHER_Wrapper_AesCcmSetkey Function

C

int32_t CIPHER_Wrapper_AesCcmSetkey(uint8_t *key)

Summary

Initializes the AES-CCM context and sets the encryption key.

Description

This function initializes the AES-CCM context and sets the 16-byte encryption key.

Precondition

None.

Parameters

ParamDescription
keyPointer to buffer holding the 16-byte key itself

Returns

  • CIPHER_WRAPPER_RETURN_GOOD: Successful initialization.

  • Any other value: Error in the initialization.

Example

int32_t ret;
uint8_t key[] = { some key };
ret = CIPHER_Wrapper_AesCcmSetkey(key);

Remarks

None.