I found a library for the Speck cipher here: https://github.com/Chien-Ning/ArduinoCrypto
And I'm trying to use but haven't had much luck. My code is the following:
#include <SPECK_AVR.h>
#include <SPECK_spec.h>
#include "SPECK_AVR.h"
void setup() {
// put your setup code here, to run once:
SpeckTxtLen = 32;
SpeckKeyLen = 64;
speckTxtKey[]= 0x65, 0x74, 0x69, 0x4c, 0x19, 0x18, 0x11, 0x10, 0x09, 0x08, 0x01, 0x00;
speckKey();
speckEnc();
Serial.println("");
for (int i = 0; i < SpeckTxtLen/8; i++){
Serial.print(speckTxtKey[i], HEX);
Serial.print(", ");
}
}
void loop() {
// put your main code here, to run repeatedly:
}
And I'm getting this error:
error: lvalue required as left operand of assignment
and
error: expected primary-expression before ']' token
Do you think I'm missing something in the usage of this library?
Thanks in advance