-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathencryption.h
More file actions
22 lines (15 loc) · 797 Bytes
/
encryption.h
File metadata and controls
22 lines (15 loc) · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <iostream> // Allows input output operations
#include <iomanip>
#include <math.h>
#include <cstdio>
#include "matrix.h"
/*******************************************************************************
* Function Name : array_map
* Description : Maps plain_text_zero_padded to mapped_array using mapping array
*******************************************************************************/
void array_map(char mapped_array[ARRAY_SIZE], char plain_text_zero_padded[ARRAY_SIZE]);
/*******************************************************************************
* Function Name : keygen
* Description : Generates the Key file to be used for encryption
*******************************************************************************/
void keygen(float key[N][N], int marker);