#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