forked from monnerat/BUT2FI_R4.B.10
merci Maxence
This commit is contained in:
parent
47d9ca0e51
commit
0941fcbd00
@ -1,5 +1,5 @@
|
|||||||
#include "df.h"
|
#include "df.h"
|
||||||
#include "./lib_tea/tea.h"
|
#include "./lib_tea/xtea.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <assert.h>
|
#include <assert.h>
|
||||||
@ -51,8 +51,8 @@ int main(int argc, char *argv[])
|
|||||||
ssize_t nb_read = read(0,v,sizeof(v));
|
ssize_t nb_read = read(0,v,sizeof(v));
|
||||||
if (nb_read <= 0)
|
if (nb_read <= 0)
|
||||||
break;
|
break;
|
||||||
encrypt_tea(v,k);
|
encrypt_xtea(v,k);
|
||||||
decrypt_tea(v,k);
|
decrypt_xtea(v,k);
|
||||||
write(1,v,sizeof(v));
|
write(1,v,sizeof(v));
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user