ruuvi.drivers.c ${PROJECT_VERSION}
Drivers for external sensors and peripherals on embedded systems.
Loading...
Searching...
No Matches
ruuvi_interface_aes.h
Go to the documentation of this file.
1#ifndef RUUVI_INTERFACE_AES_H
2#define RUUVI_INTERFACE_AES_H
3
22#include <stddef.h>
23#include "ruuvi_driver_error.h"
25
26#if RI_AES_ENABLED
27# define RUUVI_NRF5_SDK15_AES_ENABLED RUUVI_NRF5_SDK15_ENABLED
28#endif
29
44rd_status_t ri_aes_ecb_128_encrypt (const uint8_t * const cleartext,
45 uint8_t * const ciphertext,
46 const uint8_t * const key,
47 const size_t data_length);
48
50#endif // RUUVI_INTERFACE_AES_H
rd_status_t ri_aes_ecb_128_encrypt(const uint8_t *const cleartext, uint8_t *const ciphertext, const uint8_t *const key, const size_t data_length)
encrypt a block with AES ECB 128 encryption
uint32_t rd_status_t
bitfield for representing errors
Header to enable and disable module compilation.
Ruuvi error codes and error check function.