Class CodeMeter.CMCRYPTSIM2

  • Enclosing class:
    CodeMeter

    public static class CodeMeter.CMCRYPTSIM2
    extends java.lang.Object
    CMCRYPTSIM2 contains all needed parameters for a simulated encryption with a Firm-Security-Box (FSB) using CmCryptSim2(). Currently the setting of an external Firm Key is only possible for CmActLicenses due to a restriction in the firmware. For Firm Codes of hardware (e.g. 10, 100000 - 4999999) this is not possible CMCRYPTSIM2 is supported since CodeMeter 4.30.
    • Field Summary

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

      Constructors 
      Constructor Description
      CMCRYPTSIM2()  
    • 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_TRANSFERBASED specifies that the Firm Item was programmed in the Transfer-Based-Mode.
        • CM_GF_FILEBASED specifies that the Firm Item was programmed in the File-Based-Mode.
      • firmCode

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

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

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

        public byte[] initKey
        initKey contains the key for the indirect encryption (see Encryption Modes).
      • extFirmKey

        public byte[] extFirmKey
        contains a external key for the simulated encryption. This can only be the data of a Hidden Data or Secret Data of a real CmContainer entry with the normal en-/decryption. if set then the size must be CM_BLOCKCIPHER_KEY_LEN;
    • Constructor Detail

      • CMCRYPTSIM2

        public CMCRYPTSIM2()