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 Details

    • MB

      static final int MB
      The value of one mega byte.
      See Also:
    • KB

      static final int KB
      The value of one kilo byte.
      See Also:
    • KEY_SIGNATURE_PREFIX

      static final String KEY_SIGNATURE_PREFIX
      Starting of an enryption key.
      See Also:
    • KEY_ID_LENGHT

      static final int KEY_ID_LENGHT
      Number of bytes representing the key ID which is a hex string.
      See Also:
    • ENCRYPTION_ID

      static final String ENCRYPTION_ID
      Signature for encrypted data.
      See Also:
    • ENCRYPTION_ID_LENGTH

      static final int ENCRYPTION_ID_LENGTH
      Length of the signature for encrypted data.
    • KEY_HEADER_LENGTH

      static final int KEY_HEADER_LENGTH
      Length of the key header.
      See Also:
    • KEY_NAME_POSITION

      static final int KEY_NAME_POSITION
      Position of the key name.
      See Also:
    • ENCRYPTION_PREFIX_LENGHT

      static final int ENCRYPTION_PREFIX_LENGHT
      Total 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_POSITION
      Position of the ID in encrypted data.
      See Also:
    • ENCRYPTION_PREFIX_KEY_ID_POSITION

      static final int ENCRYPTION_PREFIX_KEY_ID_POSITION
      Position of the ID of the key used.
      See Also:
    • ENCRYPTION_PREFIX_ENTRY_POINT_MSB_POSITION

      static final int ENCRYPTION_PREFIX_ENTRY_POINT_MSB_POSITION
      Position 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_POSITION
      Position of the LSB part of the key entry point.
      See Also:
    • ENCRYPTION_PREFIX_CRC_16_POSITION

      static final int ENCRYPTION_PREFIX_CRC_16_POSITION
      Position of the 16 Bit CRC of the encryption prefix (header).
      See Also:
    • ENCRYPTION_PREFIX_NAME_LENGTH_POSITION

      static final int ENCRYPTION_PREFIX_NAME_LENGTH_POSITION
      Position of the length of the following file name.
      See Also:
    • ENCRYPTION_PREFIX_FILE_NAME_POSITION

      static final int ENCRYPTION_PREFIX_FILE_NAME_POSITION
      Position of the file name of the original unencrypted data file.
      See Also:
    • RANDOM_FILE_NAME_LENGTH

      static final int RANDOM_FILE_NAME_LENGTH
      Number of characters for the random file names of encrytped files.
      See Also:
    • KEY_DRIVE_MARK

      static final String KEY_DRIVE_MARK
      Content of the file that identifies external media as a key carrier.
      See Also:
    • KEY_DRIVE_MARK_FILE_NAME

      static final String KEY_DRIVE_MARK_FILE_NAME
      Name of the file that identifies external media as a key carrier.
      See Also:
    • RANDOM_FOLDER_PREFIX

      static final String 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_COUNTS
      Index 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_EQUALS
      Index 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_DISTANCES
      Index into result array of diversity calculation to value of average distances of bytes at same position.
      See Also: