AAL2QADecryptQABlobICSF
  • 22 Jan 2025
  • 3 Minutes à lire
  • Sombre
    Lumière
  • PDF

AAL2QADecryptQABlobICSF

  • 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 AAL2QADecryptQABlobICSF (
                               TDigipassBlob*     DPData,
                               TKernelParms*      CallParms,
                               aat_ascii*         aStorageKeyNameIn,
                               aat_ascii*         aInitialVectorIn,
                               aat_ascii*         Challenge,
                               aat_ascii*         aEncryptedQABlob,
                               aat_ascii*         aQABlob,
                               aat_int32*         QABlobSize);

Description

This function decrypts the encrypted QA BLOB provided by the Java applet of the DIGIPASS for Web architecture.

Score-based Digipass

For Digipass devices that integrate the score-based algorithm, Authentication Suite Server SDK performs a score-based authentication to decrypt the QA BLOB. This allows retrieving the Digipass scoring value. Once Authentication Suite Server SDK has successfully decrypted the QA BLOB, it returns either SUCCESS or SUCCESS with the relevant scoring warning code.. See the list of return codes in Table: Return codes (AAL2QADecryptQABlobICSF) for more details.

Parameters

  Table: Parameters (AAL2QADecryptQABlobICSF)
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 *KernelParmsI

List of formatted kernel parameters:

ParamertName1=Value1;ParameterName2=Value2;….

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 *ChallengeIChallenge for CR mode.
aat_ascii *EncryptedQABlobI

Encrypted QA BLOB format:

  • OTP
  • User ID:                  up to32 chars
  • Idx1:                        02 chars
  • XHA1:                        30 chars
  • Idx2:                        02 chars
  • XHA2:                        30 chars
  • ...
  • Chk:                 16 chars
aat_ascii *QABlobO

BLOB resulting from the formatted answer hash:

  • User ID:                  32 chars
  • BLOB version:        02 chars
  • Hash number:           02 chars
  •                     |Index |02 chars
  •                     |Hash   |30 chars
  • Checksum:                 16 chars
aat_int32QABlobSizeI/OIn input, this parameter contains the allocated size of the QABlob buffer and in output it contains the number of characters copied in the QABlob buffer.

COBOL calling convention

Entry point: AA2QDQIC
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-BLOB-TABLE.
     03  W-BLOB             PIC X(248) OCCURS 8.
02   W-BLOB-PTR-TABLE.
     03  W-BLOB-PTR         USAGE POINTER OCCURS 8.
02   W-CHALLENGE            PIC X(17).
02   W-ENC-QA-BLOB          PIC X(400).
02   W-QA-BLOB              PIC X(400).
02   W-STORAGEKEY           PIC X(65).
02   W-INITVECTOR           PIC X(17).
02   W-RETURN               PIC S9(8) USAGE BINARY.
02   W-QA-BLOBSIZE          PIC S9(8) USAGE BINARY.
02   W-API-NAME              PIC X(8) VALUE 'AA2QDQIC'.
. . .
     CALL W-API-NAME USING
           BY REFERENCE W-BLOB
           BY REFERENCE W-KERNELPARMS
           BY REFERENCE W-STORAGEKEY
           BY REFERENCE W-INITVECTOR
           BY REFERENCE W-CHALLENGE
           BY REFERENCE W-ENC-QA-BLOB
           BY REFERENCE W-QA-BLOB
           BY REFERENCE W-QA-BLOBSIZE
           RETURNING W-RETURN

Return codes

  Table:  Return codes (AAL2QADecryptQABlobICSF)
CodeMeaningCodeMeaning
0Success603Invalid Gordian stimulus information
10001Success with context warning*802Change password mandatory
10002Success with user warning*803New password too short
10003Success with user & context warning*804New password too long
10004Success with platform warning*900Invalid session context handle
10005Success with platform & context warning*908HSM key not found
10006Success with platform & user warning*951Invalid HSM key type for HSM decryption
10007Success with platform & user & context warning*1000Function does not support EMV-CAP
1Code not verified1025Buffer too small
2Static password validation failed1103Unlock Version 2 not supported
130Invalid response pointer1116Response check digit not allowed
131Missing required challenge1117Challenge check digit not allowed
140Challenge corrupted1118Unsupported BLOB
201Code replay attempt-101Challenge too short
202Identification error threshold reached-102Challenge too long
205Inactive days reached-103Challenge check digit wrong
208Application disabled-105Challenge minimum length not allowed
412Invalid checksum-106Challenge maximum length not allowed
413Invalid Base64 format-107Challenge number wrong
414Invalid checksum (HSM)-108Challenge character invalid
510Invalid Digipass data pointer-201Response length out of bounds
530Invalid QA data pointer-202Response too short
532Invalid QA data length-203Response too long
535Invalid QA number-204Response check digit wrong
536Invalid encrypted QA data-205Response character not decimal
600Invalid Gordian root information-206Response character not hexadecimal
601Invalid Gordian today information-207Response character set not specified
602Invalid Gordian tomorrow information  

* Specific score-based authentication codes; for more information, refer to Score-based Digipass.


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