summaryrefslogtreecommitdiff
path: root/set1/task6.c
diff options
context:
space:
mode:
Diffstat (limited to 'set1/task6.c')
-rw-r--r--set1/task6.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/set1/task6.c b/set1/task6.c
index 10e19b2..a6a4bfb 100644
--- a/set1/task6.c
+++ b/set1/task6.c
@@ -1,33 +1,5 @@
#include "../lib/lib.h"
-/**
- * split ciphertext in blocks of size blocksize
- * @return returns an array of string of size with blocksize elements
- */
-
-
-char **transpose_blocks(char *ciphertext, int blocksize, int length)
-{
- char **blocks;
- int i, j;
- int number_blocks = length / blocksize;
-
- blocks = malloc(blocksize*(sizeof(char*)));
-
- for(i=0;i<blocksize;i++) {
- blocks[i] = malloc(number_blocks+1);
- }
-
- for(j=0;j<blocksize;j++) {
- for(i=0;i<number_blocks;i++) {
- blocks[j][i] = ciphertext[(i*blocksize)+j];
- }
- }
-
- return blocks;
-}
-
-
int main()
{
int keysize;