executor: made encryption work
This commit is contained in:
parent
5c6f9e2f76
commit
b07eb7c577
2 changed files with 25 additions and 9 deletions
|
|
@ -57,7 +57,7 @@ void xxtea_cbcmac(uint32_t mac[4], uint32_t *data,
|
|||
|
||||
void xxtea_encode_words(uint32_t *v, int n, uint32_t const k[4])
|
||||
{
|
||||
if(k[0] == 0 && k[1] == 0 && k[2] == 0 && k[3] == 0) return;
|
||||
//if(k[0] == 0 && k[1] == 0 && k[2] == 0 && k[3] == 0) return;
|
||||
uint32_t y, z, sum;
|
||||
unsigned p, rounds, e;
|
||||
|
||||
|
|
@ -80,7 +80,7 @@ void xxtea_encode_words(uint32_t *v, int n, uint32_t const k[4])
|
|||
|
||||
void xxtea_decode_words(uint32_t *v, int n, uint32_t const k[4])
|
||||
{
|
||||
if(k[0] == 0 && k[1] == 0 && k[2] == 0 && k[3] == 0) return;
|
||||
//if(k[0] == 0 && k[1] == 0 && k[2] == 0 && k[3] == 0) return;
|
||||
uint32_t y, z, sum;
|
||||
unsigned p, rounds, e;
|
||||
htonlp(v ,n);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue