Patrick Fallberg
c52d2cd643
All software security related data moved to EEPROM
...
The Sha204Personalizer has been converted to a SecurityPersonalizer.
It takes care of generation and storage of keys and data to both
ATSHA204A and nonvolatile storage (EEPROM).
Library has been updated to read any software security related data
from the corresponding EEPROM locations.
The effect this has is that any node using any security feature has to
execute the personalizer at least once to store appropriate values.
The benefit of this is that the software no longer contain sensitive data
such as HMAC or AES keys.
Whitelists still are stored in software as they are variable in size.
2016-01-12 10:26:58 +01:00
Patrick Fallberg
3bf9184670
Removed signing identifier from nonces
...
It serves no practical use to have signing identifier in nonces
as nonces are architecture independent.
Fixes #318
2016-01-12 08:43:11 +01:00
Patrick Fallberg
58dbc2ad27
MY_DEBUG_VERBOSE_SIGNING flag implemented
...
This enables more verbose debug information for signing operations.
Fixes #319
2016-01-12 08:43:10 +01:00
Patrick Fallberg
ff015dd373
Signing whitelisting rewritten
...
Whitelisting is now supported by all nodes that support signing,
while only nodes that define a whitelist with
MY_SIGNING_NODE_WHITELISTING will check signatures against a whitelist.
This allows a single node in a network to have a whitelist without require
all nodes that communicate it to be configured for whitelisting. The node
will publish its whitelisting preferences to the gateway together with its
signing preferences. In other words; whitelisting is now working as signing
requirements does.
A node that use whitelisting will reject any message (signed or unsigned)
from nodes not present in its whitelist.
Fixes #279
2016-01-12 08:41:55 +01:00
Patrick Fallberg
5ecf146f15
Sha256 calculator for library use
...
The signing infrastructure now supports calculating sha256.
This feature does not require signing support to be activated.
Fixes #315
2016-01-12 08:41:54 +01:00
Patrick Fallberg
02fbe536d4
Signing infrastructure refactored
...
Signing logic has now been centralized to MySigning.cpp in order to simplify
maintenance and debugging.
Debug prints have been extended and "demoted" to verbose level.
To get signing related debug info, MY_DEBUG_VERBOSE will need to be defined.
This fixes #278
2016-01-12 08:41:54 +01:00
tekka007
b4879f0dce
void unused parameter
2016-01-11 21:47:18 +01:00
tekka007
7749060ee7
Added MY_CORE_ONLY flag to MySensors.h
2016-01-11 21:27:40 +01:00
tekka007
866e7cf08b
HW-independent ClearEepromConfig, substitutes #314
2016-01-11 21:12:59 +01:00
Patrick Fallberg
91985beb9d
Bumped version to 2.0.0-beta
...
Considering the magnitude of the delta between master and
development branch currently, 2.0.0-beta apperas to be a
more realistic version than 1.6.0-beta.
2016-01-10 12:52:07 +01:00
Thomas Mørch
08234e9495
corrected typo
2016-01-07 21:39:06 +01:00
Thomas Mørch
5cd809e473
LED HW definitions in arduino HW files overridable
2016-01-07 21:39:06 +01:00
Brenda Wallace
f36125eee6
spelling correction in esp8266 example sketch
2016-01-06 12:49:50 +13:00
tekka007
39407e4ae4
Null termination issue, Fixes #322
2016-01-05 12:36:24 +01:00
Mickael Hubert
2af93cf925
Merge branch 'development' of https://github.com/mysensors/Arduino into development
2016-01-04 13:20:46 +01:00
Thomas Mørch
4cabf6a374
Removed unneeded reference to EEPROM.h
2016-01-03 22:59:45 +01:00
Thomas Mørch
fb2e0a0647
SoftSPI is not needed on SAMD arch
2016-01-03 22:59:45 +01:00
Thomas Mørch
25d367aa03
Added conditions to the serialGw as well
2016-01-03 22:59:45 +01:00
Thomas Mørch
e36d1d3b90
Conditionals on the led defines (they can be defined by hardware)
2016-01-03 22:59:44 +01:00
Thomas Mørch
07f1ba9d04
Changed updated name of macro for serial device, to follow generic MY_xx format
2016-01-03 22:59:44 +01:00
Thomas Mørch
9ba4669b52
Disabling debug if USB is detached (ie no terminal program is running on pc with connection to the USB port on GW)
2016-01-03 22:57:54 +01:00
Thomas Mørch
70b65d5c04
Corrected eep address
2016-01-03 22:57:54 +01:00
mickaelh51
15136c03ef
Correct last jenkins bugs
2016-01-03 22:48:57 +01:00
mickaelh51
0b96608371
Correct bugs http://ci.mysensors.org/job/ArduinoIDEBuilder/996/warnings2Result/
2016-01-03 22:20:01 +01:00
mickaelh51
650f11aaee
Add Oregon decoder library
...
Mickael Hubert
2016-01-03 20:12:13 +01:00
tekka007
cfed7a279d
General limitation of msg length to MAX_PAYLOAD correction
2015-12-31 17:03:40 +01:00
tekka007
6d1c6099e8
General limitation of msg length to MAX_PAYLOAD
2015-12-31 17:01:15 +01:00
tekka007
823b97b6d9
Last byte clearing is sufficient
2015-12-31 13:19:12 +01:00
tekka007
055bd2ff00
Clear last byte of data buffer
2015-12-31 12:02:40 +01:00
tekka007
5e5b06aa28
Fix payload null termination issue
2015-12-31 11:37:37 +01:00
Henrik Ekblad
e5eb779457
Fix sensor-id for debug prints
2015-12-30 18:22:44 +01:00
Henrik Ekblad
29cc42ba37
Internal messages send from gateway to controller should use sensor id
...
255
2015-12-30 16:28:00 +01:00
Henrik Ekblad
5406a658ee
Merge pull request #313 from tekka007/precisionfix
...
Limiting max. precision in dtostrf()
2015-12-29 14:07:53 +01:00
Henrik Ekblad
862c584d56
Merge pull request #304 from tekka007/hwparameters
...
Core functions for Vcc and frequency readings
2015-12-29 14:06:06 +01:00
tekka007
3d8fbdff66
Limiting max. precision in dtostrf()
2015-12-28 18:56:43 +01:00
tekka007
b91b3461bc
Fix wrong value returned in isAckPayloadAvailable()
2015-12-26 13:45:11 +01:00
Ivan Kravets
d6a3e14d83
@PlatformIO Library Registry manifest file
...
* This library in Web Registry: http://platformio.org/#!/lib/show/548/MySensors
* Specification: [library.json](http://docs.platformio.org/en/latest/librarymanager/config.html )
* Library Manager: http://docs.platformio.org/en/latest/librarymanager/index.html
2015-12-24 19:53:42 +02:00
Thomas Mørch
726ee7d5ff
Unified bool "return" type (set/get) to use "byte" (uint8_t)
2015-12-19 11:41:14 +01:00
tekka007
b209534ca0
Scale and unify frequency measurement results
2015-12-19 10:35:05 +01:00
Thomas Mørch
148dd78ca7
Added set(bool), to avoid typecasting on samd arch
2015-12-19 10:34:40 +01:00
Thomas Mørch
be2c89a200
snprintf_P missing in arduino core for samd, so have a local macro
2015-12-18 23:51:45 +01:00
tekka007
4a403f6246
Adjustment hwCPUFrequency() type
2015-12-18 12:14:02 +01:00
tekka007
4e968c7ea1
Add functions for Vcc & Freq readout
2015-12-17 15:25:10 +01:00
Patrick Fallberg
1396bf8bc2
Merge pull request #302 from tekka007/SigningBitfield
...
Thanks for finding this.
2015-12-16 15:23:03 +01:00
tekka007
0ecf632090
Merge pull request #301 from fallberg/security
...
Resolve open bugs relating to security
2015-12-16 14:52:55 +01:00
tekka007
cc91acb847
fix addressing bug in _doSign bitfield
2015-12-16 14:15:55 +01:00
tekka007
9e8d0cfa02
Merge pull request #300 from tekka007/heartbeatfix
...
Heartbeat enhancement
2015-12-16 11:55:46 +01:00
tekka007
aea6e74754
Merge pull request #299 from tekka007/smartsleepfix
...
Fixing smartsleep, define return value for sleep()
2015-12-16 11:54:29 +01:00
Patrick Fallberg
62f522a065
Prevent SecureActuator from accepting ACKs as commands
...
As ACKs are not currently signed, allowing ACKs as commands
is a considerable security hole for this sketch. This is now resolved.
2015-12-16 10:54:05 +01:00
Patrick Fallberg
ca4358591d
Make sure nodes not supporting signing informs GW
...
A node that does not support signing, still needs to inform the
gateway about this to make sure the gateway carries a valid signing
requirement table when a node Id that was requiering signing stops
doing this.
This fixes #286 .
2015-12-16 10:53:53 +01:00