Package com.wibu.CodeMeter
Class CodeMeter.CMCRYPTSIM
- java.lang.Object
-
- com.wibu.CodeMeter.CodeMeter.CMCRYPTSIM
-
- Enclosing class:
- CodeMeter
public static class CodeMeter.CMCRYPTSIM extends java.lang.ObjectCMCRYPTSIM 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 a simulated encryption with a Firm-Security-Box (FSB).
-
-
Field Summary
Fields Modifier and Type Field Description CodeMeter.CMBASECRYPTcmBaseCryptcontains all needed parameters for an encryption (see CMBASECRYPT).longctrlctrl specifies the type of the Firm Item.byte[]extFirmKeycontains a external key for the simulated encryption.longfirmCodespecifies the Firm Code used for the simulated encryption.byte[]initKeycontains the key for the indirect encryption if no AutoKey Mode (see Encryption Modes) is set.longproductCodespecifies the Product Code used for the simulated encryption.
-
Constructor Summary
Constructors Constructor Description CMCRYPTSIM()
-
-
-
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
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). The length of this array needs to be one of the following values: 0, 16, 20 or 32.
-
-