diff options
| -rw-r--r-- | set2/task16.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/set2/task16.c b/set2/task16.c index f60205e..9efdc6b 100644 --- a/set2/task16.c +++ b/set2/task16.c @@ -28,10 +28,10 @@ int main(int argc, char **argv) //generate_random_bytes(iv, 16); char *encrypted; // one block of our input - int length = challenge16_encrypt(":admin<true:1234", &encrypted); + int length = challenge16_encrypt(":admin<true:", &encrypted, 1); printf("first the unchanged string:\n"); - challenge16_decrypt(encrypted, length); + challenge16_decrypt(encrypted, length, 1); /** * change ciphertext here * we now that our text start a the third block, because the @@ -44,5 +44,5 @@ int main(int argc, char **argv) encrypted[43-16] ^= 0x01; printf("now the changed string:\n"); - challenge16_decrypt(encrypted, length); + challenge16_decrypt(encrypted, length, 1); } |
