AAL2GenSignatureICSF
  • 22 Jan 2025
  • 2 Minutes à lire
  • Sombre
    Lumière
  • PDF

AAL2GenSignatureICSF

  • Sombre
    Lumière
  • PDF

The content is currently unavailable in French. You are viewing the default English version.
Résumé de l’article

Function prototype

aat_int32 AAL2GenSignatureICSF(
                           TDigipassBlob*   DPData,
                           TKernelParms*    CallParms,
                           aat_ascii*       aStorageKeyNameIn,
                           aat_ascii*       aInitialVectorIn,
                           aat_ascii*       Signature,
                           aat_ascii        SignedDataFields[8][20],
                           aat_int32        FieldCount,
                           aat_int32        DeferredSignatureDate,
                           aat_ascii*       ConfirmationCode,
                           aat_int32*       ConfirmationCodeLength);

Description

If primary Virtual Mobile Authenticator is supported and activated for the given authenticator application BLOB, this function can be used to generate an e-signature. It is an extension of AAL2GenSignature, with the additional feature of integrating the confirmation code.

Parameters

  Table: Parameters (AAL2GenSignatureICSF)
TypeNameUseDescription
TDigipassBlob *DPDataI/Oauthenticator application BLOB. Upon return from the function call, this BLOB must be rewritten to the application database to reflect changes.
TKernelParms *CallParmsIStructure of runtime parameters to use during this function call.
aat_ascii *aStorageKeyNameInIString of up to 64+1 characters, left-justified, null-terminated, or right-padded with spaces. This is the label of the ICSF storage key used to encrypt the sensitive Digipass application BLOB data.
aat_ascii *aInitialVectorInIString of 16 hexadecimal characters, left-justified, null-terminated, or right-padded with spaces. This is the initial vector used to encrypt the sensitive authenticator application BLOB data.
aat_ascii *SignatureO

String of up to 17 numeric or hexadecimal characters, left-justified, null-terminated, or right-padded with spaces. This is the dynamic password generated by the library (recommended buffer size is 18 bytes).

aat_ascii *SignedDataFieldsI

Array of 8 left-justified, null-terminated, or space-padded strings of max. 20 characters. This parameter holds the 8 possible data fields that are entered into the Digipass authenticator to generate a signature. Digipass data fields are limited to 16 decimal, hexadecimal, or alphabetic characters.

aat_int32FieldCountINumeric value from 1 to 8 indicating the number of data fields to use from the aSignedDataFieldsIn array.
aat_int32DeferredSignatureDateI
  • Must be 0 if signature is generated in online mode (OnlineSG=1 or 2).
  • If signature is generated in offline mode with OnlineSG=0 or 3, this parameter can receive the date for the signature generation (number of elapsed seconds since January 1st 1970) or 0 (with 0, the current time is used).
aat_ascii *ConfirmationCodeOString of up to 17 numeric or hexadecimal characters, left-justified, null-terminated, or right-padded with spaces. This is the confirmation code generated by Authentication Suite Server SDK (recommended buffer size is 18 bytes).
aat_int32 *ConfirmationCodeLengthOPointer to a long integer that indicates the length of the generated confirmation code.

COBOL calling convention

Entry point: AA2VGSIC
02   W-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-CONFCODE         PIC X(17).
02   W-CONFCODE-LENGTH  PIC 9(8) USAGE BINARY.
02   W-RETURN           PIC S9(8) USAGE BINARY.
02   W-SIGNATURE        PIC X(17).
02   W-SIGNED-DATA      PIC X(20) OCCURS 8.
02   W-FIELDCOUNT       PIC 9(8) USAGE BINARY.
02   W-SIGNATUREDATE    PIC 9(8) USAGE BINARY.
02   W-STORAGEKEY       PIC X(65).
02   W-INITVECTOR       PIC X(17).
02   W-API-NAME         PIC X(8) VALUE 'AA2VGSIC'.
. . .
     CALL W-API-NAME USING
           BY REFERENCE W-BLOB
           BY REFERENCE W-KERNELPARMS
           BY REFERENCE W-STORAGEKEY
           BY REFERENCE W-INITVECTOR
           BY REFERENCE W-SIGNATURE
           BY REFERENCE W-SIGNED-DATA
           BY VALUE W-FIELDCOUNT
           BY VALUE W-SIGNATUREDATE
           BY REFERENCE W-CONFCODE
           BY REFERENCE W-CONFCODE-LENGTH
           RETURNING W-RETURN

Return codes

  Table: Return codes (AAL2GenSignatureICSF)
CodeMeaningCodeMeaning
0Success908HSM key not found
130Invalid response pointer951Invalid HSM key type for HSM decryption
131Missing required challenge1000Function does not support EMV-CAP
140Challenge corrupted1103Unlock Version 2 not supported
141Invalid field count1104Virtual token is not a primary token
148Invalid data field pointer1116Response check digit not allowed
203Sign error threshold reached1117Challenge check digit not allowed
208Application disabled1118Unsupported BLOB
209Grace period expired-101Challenge too short
210Allowed use count reached-102Challenge too long
211Virtual token not supported-103Challenge check digit wrong
412Invalid checksum-105Challenge minimum length not allowed
413Invalid Base64 format-106Challenge maximum length not allowed
414Invalid checksum (HSM)-107Challenge number wrong
510Invalid Digipass data pointer-108Challenge character invalid
900Invalid session context handle-1501Memory allocation failed

Cet article vous a-t-il été utile ?

Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.
ESC

Ozzy, facilitant la découverte de connaissances grâce à l’intelligence conversationnelle