This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
aj@kumo:~/code$ make rumble | |
cc rumble.c -o rumble | |
aj@kumo:~/code$ time ./rumble | |
Match 25 00633377 | |
Match 110 01346893 | |
Match 90 02706401 | |
Match 83 03339202 | |
Match 122 03570018 | |
Match 4 04730723 | |
Match 101 05049128 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <inttypes.h> | |
void tea_decrypt (uint32_t *v, uint32_t *k) { | |
uint32_t v0=0, v1=0, sum=0; | |
uint32_t delta=0x61C88647; | |
uint32_t k0=k[0], k1=k[1], k2=k[2], k3=k[3]; | |
do { | |
sum -= delta; |