Loop and sleep
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
#include "util.h"
|
||||
#include "brfunc_timing.h"
|
||||
|
||||
PAYLOAD_SECTION
|
||||
void sub_bytes(unsigned char block[16], unsigned char sbox[16][16])
|
||||
@@ -145,6 +146,10 @@ unsigned int _start(unsigned char *msg, unsigned int msg_len, unsigned char *key
|
||||
unsigned char sbox[16][16], unsigned char rc_lookup[11],
|
||||
unsigned char mul2[256], unsigned char mul3[256])
|
||||
{
|
||||
aes128_encrypt_ecb(msg, msg_len, key, sbox, rc_lookup, mul2, mul3);
|
||||
while(1)
|
||||
{
|
||||
aes128_encrypt_ecb(msg, msg_len, key, sbox, rc_lookup, mul2, mul3);
|
||||
task_sleep(1000);
|
||||
}
|
||||
return 0xDEADBEEF;
|
||||
}
|
||||
@@ -202,7 +202,9 @@ int main()
|
||||
write_aes_utils(dev);
|
||||
|
||||
free_dev_cmd_resp(resp);
|
||||
for(int i = 0; i < 65536; i++)
|
||||
|
||||
int i = 0;
|
||||
while(1)
|
||||
{
|
||||
resp = execute_payload(dev, PAYLOAD_AES_SW, 0, 7,
|
||||
0x180153000, 16, 0x180152000,
|
||||
@@ -221,7 +223,7 @@ int main()
|
||||
printf("failed to read encrypted data from memory\n");
|
||||
}
|
||||
|
||||
printf("got ");
|
||||
printf("%i) got ", i++);
|
||||
for(int j = 0; j < 16; j++)
|
||||
{
|
||||
printf("%02x", resp->data[j]);
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
#ifndef CHECKM8_TOOL_CHECKM8_CONFIG_H
|
||||
#define CHECKM8_TOOL_CHECKM8_CONFIG_H
|
||||
|
||||
//#define LIBUSB_LOGGING
|
||||
//#define CHECKM8_LOGGING
|
||||
#define CHECKM8_LOGGING
|
||||
|
||||
#define WITH_ARDUINO
|
||||
#define ARDUINO_DEV "/dev/ttyACM0"
|
||||
|
||||
Reference in New Issue
Block a user