Skip to content

Commit

Permalink
Fixed a few small things.
Browse files Browse the repository at this point in the history
  • Loading branch information
Avamander committed Jul 5, 2017
1 parent d0fd80e commit eae03d1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# RF24Signing
[![CII Best Practices](https://bestpractices.coreinfrastructure.org/projects/1080/badge)](https://bestpractices.coreinfrastructure.org/projects/1080)

A transparent signing library for RF24Mesh.
A transparent signing library for RF24Mesh. Requires modified version of RF24Network to function and ATSHA204 library that provides the necessary cryptographic functions.
4 changes: 2 additions & 2 deletions RF24Signing.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ void hash_data(void * payload, size_t payload_size) {
Serial.println((uint8_t) payload);
Serial.println(payload_size);
for (uint8_t i = 0; i < payload_size; i++) { //Read the payload from the
Serial.print(F("Writing... ")); //the payload byte by byte to the crypto
Serial.print(F("Writing... ")); //the payload byte by byte to the crypto
uint8_t * pload = (uint8_t*) payload;
uint8_t * pload_shifted = pload + i;
Serial.print((uint8_t) *pload_shifted, DEC);
Expand All @@ -102,7 +102,7 @@ void hash_data(void * payload, size_t payload_size) {
Serial.println();
}

void hash_print(uint8_t * hash) {
void hash_print(uint8_t * hash) { //TODO: UNREQUIRED
for (uint8_t i = 0; i < 32; i++) {
Serial.print("0123456789abcdef"[hash[i] >> 4]);
Serial.print("0123456789abcdef"[hash[i] & 0xf]);
Expand Down
Empty file added docs/.doxygen
Empty file.

0 comments on commit eae03d1

Please sign in to comment.