Package com.wibu.cm

Class CodeMeter.CMCRYPTSIM

  • Enclosing class:
    CodeMeter

    public static class CodeMeter.CMCRYPTSIM
    extends java.lang.Object
    CMCRYPTSIM contains all needed parameters for an simulated encryption with a Firm-Security-Box (FSB).

    Definition for the class CMCRYPTSIM corresponding to the c-api struct CMCRYPTSIM. CMCRYPTSIM contains all needed parameters for an simulated encryption with a Firm-Security-Box (FSB).

    • Field Summary

      Fields 
      Modifier and Type Field Description
      CodeMeter.CMBASECRYPT cmBaseCrypt
      contains all needed parameters for an encryption (see CMBASECRYPT).
      long ctrl
      ctrl specifies the type of the Firm Item.
      byte[] extFirmKey
      contains a external key for the simulated encryption.
      long firmCode
      specifies the Firm Code used for the simulated encryption.
      byte[] initKey
      contains the key for the indirect encryption if no AutoKey Mode (see Encryption Modes) is set.
      long productCode
      specifies the Product Code used for the simulated encryption.
    • Constructor Summary

      Constructors 
      Constructor Description
      CMCRYPTSIM()  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • ctrl

        public long ctrl
        ctrl specifies the type of the Firm Item. The following flags can be set:
        • CM_GF_BOXBASED specifies that the Firm Item was programmed in the Box-Based-Mode.
        • CM_GF_FILEBASED specifies that the Firm Item was programmed in the File-Based-Mode.
      • firmCode

        public long firmCode
        specifies the Firm Code used for the simulated encryption.
      • productCode

        public long productCode
        specifies the Product Code used for the simulated encryption.
      • cmBaseCrypt

        public CodeMeter.CMBASECRYPT cmBaseCrypt
        contains all needed parameters for an encryption (see CMBASECRYPT).
      • initKey

        public byte[] initKey
        contains the key for the indirect encryption if no AutoKey Mode (see Encryption Modes) is set.
      • extFirmKey

        public byte[] extFirmKey
        contains a external key for the simulated encryption. This can only be the data of a HiddenData or SecretData of a real CmContainer entry with the normal en-/decryption. (array length is CM_BLOCKCIPHER_KEY_LEN bytes)
    • Constructor Detail

      • CMCRYPTSIM

        public CMCRYPTSIM()