23 #ifndef EXT_ENCRYPTION_UTILS_H_
24 #define EXT_ENCRYPTION_UTILS_H_
87 uint8_t *output,
size_t *output_payload_size);
99 const uint8_t *remote_key,
size_t remote_key_size);
111 uint8_t **output,
size_t *output_size);
void ext_get_endpoint_session_key(const uint8_t **buffer, size_t *buffer_size)
Returns endpoint session key.
size_t ext_get_encrypted_data_size(size_t input_size)
Calculates the size of the encrypted data.
kaa_error_t
Definition: kaa_error.h:31
kaa_error_t ext_encrypt_data(const uint8_t *input, size_t input_size, uint8_t *output)
Perform encryption.
kaa_error_t ext_get_encrypted_session_key(uint8_t **buffer, size_t *buffer_size, const uint8_t *remote_key, size_t remote_key_size)
Returns encrypted endpoint session key.
kaa_error_t ext_get_signature(const uint8_t *input, size_t input_size, uint8_t **output, size_t *output_size)
Signs the encrypted session key.
void kaa_deinit_session_key(void)
Performs deinitialization of the AES session key.
kaa_error_t ext_decrypt_data(const uint8_t *input, size_t input_size, uint8_t *output, size_t *output_payload_size)
Perform decryption.
kaa_error_t kaa_init_session_key(void)
Performs initialization of the AES session key.