Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ARC ¶
type ARC struct { Rgen PRGA // contains filtered or unexported fields }
ARC is the stucture that holds the vital components for a valid RC4 implementation Including a pointer to a PRGA (Psuedo Random Generation Algorithm)
type PRGA ¶
type PRGA struct { S [256]byte // contains filtered or unexported fields }
func (a *ARC) ReadEncFile(cyphertext []byte, name string) (byte[10], error) { //parses a CypherSabre file (has extension .cs1) //The IV removed and returned as a byte array //The remaining cyphertext is copied into the cyphertext buffer }
PRGA is the Psuedo Rando Generation Algorithm it contains: two single byte indexes and a 256 byte state array
Click to show internal directories.
Click to hide internal directories.