New answers tagged

0

So I spent a while longer banging my head on the wall, and I finally found a solution to my issue. @DaveNewton provided several links that lead to other links, and I found my way to here where some not-so-common knowledge is explained. It appears that for some reason the FILE_WRITE function is slow, and takes a lot of time to execute. This can be substituted ...


1

#include <DES.h> DES des; byte in[8]; String input; char buf[30]; void setup() { Serial.begin(9600); Serial.println("Hello!"); } void tdesTest() { byte out[8]; byte key[] = { 0x3b, 0x38, 0x98, 0x37, 0x15, 0x20, 0xf7, 0x5e, // key A 0x92, 0x2f, 0xb5, 0x10, 0xc7, 0x1f, 0x43, 0x6e, // key B 0x3b, 0x38, 0x98, 0x37, 0x15, ...


1

From your comments I think I understand what you are after. So, assuming you have read some string into a String object called input and you have an array in[8] to populate you can: Clear the in[] array to a preset state Copy the string content into in[] As code: memset(in, 0, 8); // Erase the contents of in[] input.toCharArray((char *)in, 8); // Copy up ...


Top 50 recent answers are included