MySensors Library & Examples  2.3.2-62-ge298769
sha256.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-2022 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 
21 #ifndef _SHA256_H_
22 #define _SHA256_H_
23 
24 #define HASH_LENGTH 32
25 #define BLOCK_LENGTH 64
26 
27 
31  uint8_t b[BLOCK_LENGTH];
32  uint32_t w[BLOCK_LENGTH / 4];
33 };
34 
39  uint8_t b[HASH_LENGTH];
40  uint32_t w[HASH_LENGTH / 4];
41 };
42 
43 #endif
_SHA256buffer_t
buffer for SHA256 calculator
Definition: sha256.h:30
_SHA256buffer_t::b
uint8_t b[BLOCK_LENGTH]
SHA256 b.
Definition: sha256.h:31
_SHA256state_t::b
uint8_t b[HASH_LENGTH]
SHA256 b.
Definition: sha256.h:39
_SHA256state_t::w
uint32_t w[HASH_LENGTH/4]
SHA256 w.
Definition: sha256.h:40
_SHA256state_t
state variables for SHA256 calculator
Definition: sha256.h:38
_SHA256buffer_t::w
uint32_t w[BLOCK_LENGTH/4]
SHA256 w.
Definition: sha256.h:32