|
libenigma
Enigma machine utility library
|
A structure representing a configuration for cracking an Enigma cipher. More...
#include <crack.h>
Data Fields | |
| Enigma | enigma |
| The base enigma machine configuration. | |
| EnigmaScoreList * | score_list |
| A list of scored configurations. | |
| const char ** | dictionary |
| A list of dictionary words (should be sorted and all uppercase) | |
| size_t | dictionary_length |
| The number of words in the dictionary. | |
| float * | ngrams |
| An array of n-gram frequencies. | |
| int | n |
| The length of each n-gram. | |
| size_t | ngrams_length |
| The number of n-grams in the array. | |
| const char * | ciphertext |
| The ciphertext to be cracked. | |
| size_t | ciphertext_length |
| The length of the ciphertext. | |
| int | flags |
| Flags indicating special conditions a scored configuration may meet. | |
| float | frequency_targets [26] |
| An array of frequency targets for each letter. | |
| float | min_score |
| The minimum score for a configuration to be considered. | |
| float | max_score |
| The maximum score for a configuration to be considered. | |
| float | target_score |
| The target score for a configuration to be considered. | |
| float | target_frequency |
| The target frequency for a configuration to be considered. | |
| float | frequency_offset |
| The maximum offset from the target frequency that a scored configuration may have to be considered valid. | |
| const char * | known_plaintext |
| Known plaintext that must exist for a configuration to be considered. | |
| int | known_plaintext_length |
| The length of the known plaintext. | |
A structure representing a configuration for cracking an Enigma cipher.
| const char* ciphertext |
The ciphertext to be cracked.
| size_t ciphertext_length |
The length of the ciphertext.
| const char** dictionary |
A list of dictionary words (should be sorted and all uppercase)
| size_t dictionary_length |
The number of words in the dictionary.
| Enigma enigma |
The base enigma machine configuration.
| int flags |
Flags indicating special conditions a scored configuration may meet.
| float frequency_offset |
The maximum offset from the target frequency that a scored configuration may have to be considered valid.
| float frequency_targets[26] |
An array of frequency targets for each letter.
| const char* known_plaintext |
Known plaintext that must exist for a configuration to be considered.
| int known_plaintext_length |
The length of the known plaintext.
| float max_score |
The maximum score for a configuration to be considered.
| float min_score |
The minimum score for a configuration to be considered.
| int n |
The length of each n-gram.
| float* ngrams |
An array of n-gram frequencies.
| size_t ngrams_length |
The number of n-grams in the array.
| EnigmaScoreList* score_list |
A list of scored configurations.
| float target_frequency |
The target frequency for a configuration to be considered.
| float target_score |
The target score for a configuration to be considered.