63 #define BYTE_LIMIT 256 
   76     void trad_swap(
unsigned char *a, 
unsigned char *b);
 
   78     void XOR_swap(
unsigned char *a, 
unsigned char *b);
 
   80     void KSA(
char *key, 
unsigned char *S, 
int swap_type);
 
   82     void PRGA(
unsigned char *S,
 
   84               unsigned char *ciphertext,
 
   88     store_hash(
char *plaintext, 
unsigned char *hashtext, 
int swap_type);
 
   91     compute(
char *key, 
char *plaintext, 
unsigned char *hashtext, 
int swap_type);
 
void PRGA(unsigned char *S, char *plaintext, unsigned char *ciphertext, int swap_type)
 
std::string store_hash(char *plaintext, unsigned char *hashtext, int swap_type)
 
void XOR_swap(unsigned char *a, unsigned char *b)
 
void byte_swap(uint8_t *a, uint8_t *b)
 
void trad_swap(unsigned char *a, unsigned char *b)
 
unsigned char * compute(char *key, char *plaintext, unsigned char *hashtext, int swap_type)
 
void KSA(char *key, unsigned char *S, int swap_type)
 
The source C++ openGPMP namespace.