cookie CmGetPioDataKey

Description

CmGetPioDataKey calculates the Product Item Option Data Key (PIODK) from the Product Item Option Encryption Key (PIOEK) and the Product Item Option Core Key (PIOCK).

tmr_02

Triple Mode Redundancy-related information (TMR)

  • C, C++
  • C#
  • Python

Syntax

int CMAPIENTRY CmGetPioDataKey( CMBYTE* pabPiodkDest, CMUINT cbPiodkDest, CMBYTE* pabPioCk, CMUINT cbPioCk, CMBYTE* pabPioEk, CMUINT cbPioEk)

Parameter

pabPiodkDest points to a memory block of 16 bytes which receives the calculated PIODK.

cbPiodkDest contains the length of pabPiodkDest.Usually the length is 16.

pabPioCk points to the input PIOCK.

cbPioCk contains the length of pabPioCk. Usually the length is 16.

pabPioEk points to the input PIOEK.

cbPioEk contains the length of pabPioEk. Usually the length is 16.

Return

TRUE is returned, if the calculation executed successfully - FALSE if not.

Syntax

public bool CmGetPioDataKey(out byte[] abPiodkDest, byte[] abPioCk, byte[] abPioEk)

Parameter

abPiodkDest receives the calculated PIODK.

abPioCk contains the input PIOCK.

abPioEk contains the input PIOEK.

Return

true is returned, if the calculation executed successfully - false, if not.

 

Syntax

import cmapi
 
cmapi.CodeMeter().CmGetPioDataKey(pabPioCk: bytes, pabPioEk: bytes)
 -> bytes
throws CodeMeterApiFailedException()

Parameter

pabPioCk points to the input PIOCK.

pabPioEk points to the input PIOEK.

Return

The calculated PIODK is returned, if the calculation executed successfully. An exception is thrown if not.