summaryrefslogtreecommitdiff
path: root/set2/task16.c
diff options
context:
space:
mode:
authorBenedict <benedict@0xb8000.de>2016-11-14 22:52:23 +0100
committerBenedict <benedict@0xb8000.de>2017-02-21 13:00:26 +0100
commitb1e61efdf366bd7591b64161b010b4c72a6a394e (patch)
treeb02437211bd0fb4b6d558a43d362dffcc7f36c8b /set2/task16.c
parent65b62ef0ce1fbd15ca9402ca21861ba8ef820c8e (diff)
fix task16.c complie error introduced due to prior API change
Diffstat (limited to 'set2/task16.c')
-rw-r--r--set2/task16.c6
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);
}