MySensors Library & Examples  2.3.2-36-g2e00bf6
MyCryptoHAL.h
1 /*
2 * The MySensors Arduino library handles the wireless radio link and protocol
3 * between your home built sensors/actuators and HA controller of choice.
4 * The sensors forms a self healing radio network with optional repeaters. Each
5 * repeater and gateway builds a routing tables in EEPROM which keeps track of the
6 * network topology allowing messages to be routed to nodes.
7 *
8 * Created by Henrik Ekblad <[email protected]>
9 * Copyright (C) 2013-2020 Sensnology AB
10 * Full contributor list: https://github.com/mysensors/MySensors/graphs/contributors
11 *
12 * Documentation: http://www.mysensors.org
13 * Support Forum: http://forum.mysensors.org
14 *
15 * This program is free software; you can redistribute it and/or
16 * modify it under the terms of the GNU General Public License
17 * version 2 as published by the Free Software Foundation.
18 */
19 
20 #ifndef MyCryptoHAL_h
21 #define MyCryptoHAL_h
22 
32 void SHA256(uint8_t *dest, const uint8_t *data, size_t dataLength);
33 
45 void SHA256HMAC(uint8_t *dest, const uint8_t *key, size_t keyLength, const uint8_t *data,
46  size_t dataLength);
47 
52 void AES128CBCInit(const uint8_t *key);
59 void AES128CBCEncrypt(uint8_t *iv, uint8_t *buffer, const size_t dataLength);
66 void AES128CBCDecrypt(uint8_t *iv, uint8_t *buffer, const size_t dataLength);
67 
68 #endif
data
char data[MAX_PAYLOAD_SIZE+1]
Buffer for raw payload data.
Definition: MyMessage.h:653