         cudaDeviceSynchronize();
     }
 
-    //cudaFree(secretGpu);
-
-    printf("\n\n5\n\n");
-    for (i = 0; i < msg_parts; i++) {
-    //    printf("%d %f\n\n\n\n", i, results[i]);
+
+    for (i = 0; i < msg_parts; i++) {
         for (j = 0; j < matrix_size; j++) {
-            printf("%d: %c\n", (int)results[i][j], char((int)results[i][j]));
+            printf("%c", (int)results[i][j], char((int)results[i][j]));
         }
     }
     

#define ASCII_CHARS 128



void printrow(float *msg_v_list) {
    int i;


    cudaMemcpy(secretGpu, *invSKey, nBytes, cudaMemcpyHostToDevice);
    for (i = 0; i < msg_parts; i++) {
        cudaMemcpy(msgGpu, results[i], nBytes, cudaMemcpyHostToDevice);
        mtxEncrypt<<<grid, block>>>(secretGpu, msgGpu, resultGpu, matrix_dims);
        cudaMemcpy(unEncrypted[i], resultGpu, nBytes, cudaMemcpyDeviceToHost);
        cudaDeviceSynchronize();
    }
    for (i = 0; i < msg_parts; i++) {
        for (j = 0; j < matrix_size; j++) {
            printf("%c", (int)unEncrypted[i][j], char((int)unEncrypted[i][j]));
        }
    }
    free(results);
