Module classic_crypto::key [−][src]
Expand description
All key representations reside in this module, even if said key is only used
for a single cipher. All keys implement the Key
trait, and any keys that have
state implement StatefulKey
(lookup tables such as ClassicVigSquare
do not
need to implement this trait). Keys typically implement KeyFrom<T>
and SetKey<T>
for initialization and set operations.
Structs
Alphabet | Represents a substitution alphabet (See Simple Substitution cipher) |
BellasoSquare | Represents a Bellaso tableau. (See Bellaso cipher) |
Cards | Represents a deck of cards (See Solitaire cipher) |
ClassicVigSquare | Represents a Vigenere tableau. (See Classic Vigenere cipher) |
KeyInfo | |
KeyedVigSquare | Represents a Keyed Vigenere tableau. (See Keyed Vigenere cipher) |
Keyword | Represents a Keyword (See Vigenere ciphers) |
Matrix | Represents a Matrix (See Hill Cipher) |
Number | Represents a Number (See Affine Cipher) |
Plugboard | Represents an Enigma Plugboard (See Enigma cipher) |
PortaSquare | Represents a Porta tableau. (See Porta cipher) |
Reflector | Represents an Enigma Reflector (See Enigma cipher) |
Rotor | Represents an Enigma Rotor (See Enigma cipher) |
Enums
ReflectorType | Collection of all Enigma Reflector types from the M3 and M4 Enigma machines. (See Enigma cipher) |
RotorType | Collection of all Enigma Rotor types, from the Enigma I, M3 Army Enigma, M3 & M4 Naval Enigma, and M4 R2 Enigma models. All of these Enigma models can be simulated using combinations of these rotors. (See Enigma cipher) |
Traits
IdentityKey | Trait implemented by cipher keys that have an identity version |
IoKey | Trait implemented by |
Key | Trait implemented by all cipher keys |
StatefulKey | Trait implemented by |
VigSquare | Trait implemented by vigenere square type |