Package de.das.encrypter.model
Interface Key
- All Known Implementing Classes:
KeyFile
public interface Key
Interface for specifying required constants and positions of values in the
key and encryption headers.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIndex into result array of diversity calculation to value of average distances of bytes at same position.static final intIndex into result array of diversity calculation to value of count of equal bytes at same position.static final intIndex into result array of diversity calculation to value of realtive occurances of equal bytes at same position.static final StringSignature for encrypted data.static final intLength of the signature for encrypted data.static final intPosition of the 16 Bit CRC of the encryption prefix (header).static final intPosition of the LSB part of the key entry point.static final intPosition of the MSB part of the key entry point.static final intPosition of the file name of the original unencrypted data file.static final intPosition of the ID in encrypted data.static final intPosition of the ID of the key used.static final intTotal length of the encryption prefix which consists of encryption ID (= 6 Byte String) + "key ID" (= 16 Byte hex string) + "key entry point" (= 2 x 8 Byte hex string) + CRC16 of the header (= 2 Byte hex, little endian).static final intPosition of the length of the following file name.static final intThe value of one kilo byte.static final StringContent of the file that identifies external media as a key carrier.static final StringName of the file that identifies external media as a key carrier.static final intLength of the key header.static final intNumber of bytes representing the key ID which is a hex string.static final intPosition of the key name.static final StringStarting of an enryption key.static final intThe value of one mega byte.static final intNumber of characters for the random file names of encrytped files.static final StringPrefix of the name of a file containing the encrypted name of the folder in which it is located.
-
Field Details
-
MB
static final int MBThe value of one mega byte.- See Also:
-
KB
static final int KBThe value of one kilo byte.- See Also:
-
KEY_SIGNATURE_PREFIX
Starting of an enryption key.- See Also:
-
KEY_ID_LENGHT
static final int KEY_ID_LENGHTNumber of bytes representing the key ID which is a hex string.- See Also:
-
ENCRYPTION_ID
Signature for encrypted data.- See Also:
-
ENCRYPTION_ID_LENGTH
static final int ENCRYPTION_ID_LENGTHLength of the signature for encrypted data. -
KEY_HEADER_LENGTH
static final int KEY_HEADER_LENGTHLength of the key header.- See Also:
-
KEY_NAME_POSITION
static final int KEY_NAME_POSITIONPosition of the key name.- See Also:
-
ENCRYPTION_PREFIX_LENGHT
static final int ENCRYPTION_PREFIX_LENGHTTotal length of the encryption prefix which consists of encryption ID (= 6 Byte String) + "key ID" (= 16 Byte hex string) + "key entry point" (= 2 x 8 Byte hex string) + CRC16 of the header (= 2 Byte hex, little endian).- See Also:
-
ENCRYPTION_PREFIX_ID_POSITION
static final int ENCRYPTION_PREFIX_ID_POSITIONPosition of the ID in encrypted data.- See Also:
-
ENCRYPTION_PREFIX_KEY_ID_POSITION
static final int ENCRYPTION_PREFIX_KEY_ID_POSITIONPosition of the ID of the key used.- See Also:
-
ENCRYPTION_PREFIX_ENTRY_POINT_MSB_POSITION
static final int ENCRYPTION_PREFIX_ENTRY_POINT_MSB_POSITIONPosition of the MSB part of the key entry point.- See Also:
-
ENCRYPTION_PREFIX_ENTRY_POINT_LSB_POSITION
static final int ENCRYPTION_PREFIX_ENTRY_POINT_LSB_POSITIONPosition of the LSB part of the key entry point.- See Also:
-
ENCRYPTION_PREFIX_CRC_16_POSITION
static final int ENCRYPTION_PREFIX_CRC_16_POSITIONPosition of the 16 Bit CRC of the encryption prefix (header).- See Also:
-
ENCRYPTION_PREFIX_NAME_LENGTH_POSITION
static final int ENCRYPTION_PREFIX_NAME_LENGTH_POSITIONPosition of the length of the following file name.- See Also:
-
ENCRYPTION_PREFIX_FILE_NAME_POSITION
static final int ENCRYPTION_PREFIX_FILE_NAME_POSITIONPosition of the file name of the original unencrypted data file.- See Also:
-
RANDOM_FILE_NAME_LENGTH
static final int RANDOM_FILE_NAME_LENGTHNumber of characters for the random file names of encrytped files.- See Also:
-
KEY_DRIVE_MARK
Content of the file that identifies external media as a key carrier.- See Also:
-
KEY_DRIVE_MARK_FILE_NAME
Name of the file that identifies external media as a key carrier.- See Also:
-
RANDOM_FOLDER_PREFIX
Prefix of the name of a file containing the encrypted name of the folder in which it is located.- See Also:
-
DIVERSITY_EQUAL_COUNTS
static final int DIVERSITY_EQUAL_COUNTSIndex into result array of diversity calculation to value of count of equal bytes at same position.- See Also:
-
DIVERSITY_RELATIVE_EQUALS
static final int DIVERSITY_RELATIVE_EQUALSIndex into result array of diversity calculation to value of realtive occurances of equal bytes at same position.- See Also:
-
DIVERSITY_AVE_DISTANCES
static final int DIVERSITY_AVE_DISTANCESIndex into result array of diversity calculation to value of average distances of bytes at same position.- See Also:
-