Package com.wibu.CodeMeter
Class CodeMeter.CMCRYPTSIM2
- java.lang.Object
-
- com.wibu.CodeMeter.CodeMeter.CMCRYPTSIM2
-
- Enclosing class:
- CodeMeter
public static class CodeMeter.CMCRYPTSIM2 extends java.lang.ObjectCMCRYPTSIM2 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.CMBASECRYPT2cmBaseCryptcmBaseCrypt contains all needed parameters for an encryption (see CMBASECRYPT2).longctrlctrl specifies the type of the Firm Item.byte[]extFirmKeycontains a external key for the simulated encryption.longfirmCodefirmCode specifies the Firm Code used for the simulated encryption.byte[]initKeyinitKey contains the key for the indirect encryption (see Encryption Modes).longproductCodeproductCode specifies the Product Code used for the simulated encryption.
-
Constructor Summary
Constructors Constructor Description CMCRYPTSIM2()
-
-
-
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;
-
-