This article describes the function(s) on which Activation Message 2 and Digipass instance generation functionality is based. It contains information about parameters and possible return codes, as well as a prototype for each function.
Activation Message 2 and Digipass instance generation functionality is only applicable to hardware or software Digipass authenticators compliant with the multi-device two-step activation (in the context of multi-device licensing). For more information, refer to the Authentication Suite Server SDK Product Guide.
AAL2GenMessageActivation2ICSF
Function prototype
aat_int32 AAL2GenMessageActivation2ICSF (
TDigipassBlob *DPMAData,
TKernelParms *CallParms,
aat_ascii *aStorageKeyNameIn,
aat_ascii *aInitialVectorIn,
aat_ascii *PKBlob,
aat_ascii *StaticVector,
aat_ascii *MessageVector,
aat_ascii *DeviceID,
aat_int32 *pSeqNum,
aat_ascii TokenType [6],
aat_int16 *Appl_count,
aat_ascii Serial_Appli [8][23],
aat_ascii AuthMode [8][3],
TDigipassBlob DPData [8],
aat_ascii *Activation2Message,
aat_ascii *Activation2MessageLength);Description
This function is used to generate an Activation Message 2 from the master activation application (the license), the payload key BLOB, the static vector, the message vector, and the device ID provided. This Activation Message 2 allows activating a Digipass instance of a license into the device.
It is only applicable to hardware or software Digipass authenticators compliant with the multi-device two-step activation (in the context of multi-device licensing). For more information, refer to the Authentication Suite Server SDK Product Guide.
The payload key BLOB must be used with this function only if the Secure Channel feature has been ordered (configured by OneSpan at the time of order). No payload key BLOB must be used (parameter NULL or empty string) if the Secure Channel feature has not been ordered.
In case of success, this function will also generate the new Digipass instance application BLOBs, directly bound to the specific device ID provided.
This function uses a new sequence number each time it successfully generates a new Digipass instance for a given license. The number of instances that can be issued from a license is limited to the threshold defined between 1 and 99 for the license (the sequence number threshold value; it can be obtained during the import of the master activation application).
If the instances exceed the defined sequence number threshold for a given license, the function will reject the generation attempt and it will fail.
Parameters
COBOL calling convention
Entry point: AA2GM2IC
02 W-MA-BLOB PIC X(248).
02 W-KERNELPARMS.
03 W-PARMCOUNT PIC 9(8) USAGE BINARY.
03 W-PARM01 PIC 9(8) USAGE BINARY.
. . .
03 W-PARM19 PIC 9(8) USAGE BINARY.
02 W-STATIC-VECTOR PIC X(4094).
02 W-MSGVECTOR PIC X(27).
02 W-PKBLOB PIC X(89).
02 W-APPL-COUNT PIC 9(4) USAGE BINARY.
02 W-DEVICE-ID PIC X(9).
02 W-SEQNUM PIC 9(8) USAGE BINARY.
02 W-TOKEN-TYPE PIC X(6).
02 W-SERIAL-APPS.
03 W-SERIALAPP PIC X(23) OCCURS 8.
02 W-AUTH-MODES.
03 W-AUTHMODE PIC X(3) OCCURS 8.
02 W-DP-BLOBS.
03 W-DPDATA PIC X(248) OCCURS 8.
02 W-ACT2MSG PIC X(85).
02 W-ACT2MSG-LENGTH PIC 9(8) USAGE BINARY VALUE 85.
02 W-RETURN PIC S9(8) USAGE BINARY.
02 W-STORAGEKEY PIC X(65).
02 W-INITVECTOR PIC X(17).
02 W-API-NAME PIC X(8) VALUE 'AA2GM2IC'.
. . .
CALL W-API-NAME USING
BY REFERENCE W-MA-BLOB
BY REFERENCE W-KERNELPARMS
BY REFERENCE W-STORAGEKEY
BY REFERENCE W-INITVECTOR
BY REFERENCE W-PKBLOB
BY REFERENCE W-STATIC-VECTOR
BY REFERENCE W-MSGVECTOR
BY REFERENCE W-DEVICE-ID
BY REFERENCE W-SEQNUM
BY REFERENCE W-TOKEN-TYPE
BY REFERENCE W-APPL-COUNT
BY REFERENCE W-SERIAL-APPS
BY REFERENCE W-DP-BLOBS
BY REFERENCE W-ACT2MSG
BY REFERENCE W-ACT2MSG-LENGTH
RETURNING W-RETURN