openGPMP
Open Source Mathematics Package
Classes | Namespaces | Macros
rc4.hpp File Reference
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>

Go to the source code of this file.

Classes

class  gpmp::RC4
 

Namespaces

 gpmp
 The source C++ openGPMP namespace.
 

Macros

#define BITS   255
 
#define BYTE_LIMIT   256
 

Detailed Description

Definitions for derivative operations operations

The RC4 algorithm in this case used 5 methods all dependent off eachother with only 2 being available to the user and 1 optional. Required:

  1. gpmp::RC4::compute():
    • key (char *)
    • text (char *)
    • hashtext (allocated unsigned char * w/ size & length of text)
    • swap type (int 0-2)
      • XOR swap, char swap, byte swap
  2. gpmp::RC4::store_hash():
    • text
    • hashtext : previously declared and passed into compute()
    • swap type

Definition in file rc4.hpp.

Macro Definition Documentation

◆ BITS

#define BITS   255

Definition at line 62 of file rc4.hpp.

◆ BYTE_LIMIT

#define BYTE_LIMIT   256

Definition at line 63 of file rc4.hpp.