Commit aa013437 authored by hark's avatar hark

huh

parent 07176ba4
......@@ -8,4 +8,14 @@ In the multicast slot pager messages can be send to a multicast group that is al
In that way receive only devices can receive messages.
"
Messages can be ―unicast‖ or ―multicast‖. Unicast messages are sent to a single end-device
and multicast messages are sent to multiple end-devices. All devices of a multicast group
must share the same multicast address and associated encryption keys. The LoRaWAN
Class B specification does not specify means to remotely setup such a multicast group or
securely distribute the required multicast key material. This must either be performed during
the node personalization or through the application layer.
"
http://thethingsnetwork.org/wiki/Hardware/OverviewNodes
......@@ -6,3 +6,8 @@ to try it out:
apt-get install arduino arduino-mk
- get the required libraries from https://gitlab.net.020wireless.nl/yids/arduino-build
some things on ECC:
http://www.infosecwriters.com/Papers/Anoopms_ECC.pdf
http://www.johannes-bauer.com/compsci/ecc/
USER_LIB_PATH=../arduino-build/libraries/
BOARD_TAG=atmega328
ARDUINO_LIBS=RadioHead SPI AESLib Wire LCDI2C_LK162
include /usr/share/arduino/Arduino.mk
......
......@@ -4,10 +4,43 @@
struct pagermessage
{
// there is no space to store all pubkeys of possible senders, so need to be send
EccPoint senderPubkey;
//Will be filled in with the compressed public key. Must be at least
// (curve size + 1) bytes long; for example, if the curve is secp256r1,
// compressed must be 33 bytes long.
uint8_t senderpubkey[33];
//
// address is SHA1 hash of publickey
int address;
// maybe use 7bit ascii, or even smaller characters (only letters + numbers)
char msg[127];
}
/* subjectPublicKeyInfo field
* in X.509 certificates [PKI]
* https://www.ietf.org/rfc/rfc5480.txt
* https://tools.ietf.org/html/rfc5915
*/
/*
* gpg
* A V4 fingerprint is the 160-bit SHA-1 hash of the octet 0x99,
* followed by the two-octet packet length, followed by the entire
* Public-Key packet starting with the version field. The Key ID is the
* low-order 64 bits of the fingerprint. Here are the fields of the
* hash material, with the example of a DSA key:
*/
/* lorawan
Rate Max payload size
0 51
1 51
2 51
3 115
4 222
5 222
6 222
7 222
8:15 not defined
*/
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment