arduino-libraries / ArduinoBearSSL

Port of BearSSL to Arduino
MIT License
85 stars 49 forks source link

AES128 runEnc() cause RP2040 to hard lock #75

Open UiharuKazari2008 opened 12 months ago

UiharuKazari2008 commented 12 months ago
            } 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