Open
Description
} else if (command == "9") {
AES128Class AES128;
int inputMessageIndex = receivedMessage.indexOf("$", commandIndex + 1);
String inputMessage = receivedMessage.substring(commandIndex + 1, inputMessageIndex);
int length = inputMessage.length();
char input[length + 1];
uint8_t UInput[length + 1];
inputMessage.toCharArray(input, length + 1);
convertCharToUint8(input, UInput, length);
AES128.runEnc(UApplicationKey, sizeof(UApplicationKey), UInput, length, UApplicationIV);
printHex(UInput, length);
} else if (command == "10") {
When attempting to run AES128 encryption the device will hard lock without crashing or panicking