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

AAL2DPXInit

  • 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 AAL2DPXInit( TDPXHandle*      dpx_Handle,
                       aat_ascii*       pFileName,
                       aat_ascii*       InitKey,
                       aat_int16*       appl_count,
                       aat_ascii*       appl_names,
                       aat_int16*       token_count);

Description

This function is used to initialize the import process of a DIGIPASS export file (DPX) file, which involves the following steps:

  • Opening the DPX file, using its name (pFileName)
  • Verifying the software transport key (InitKey)
  • Initializing the handle dpx_Handle
  • Returning the number of applications defined in the DPX file into appl_count, the list of application names into appl_names, and the total number of defined Digipass authenticators into token_count.

Parameters

  Table: Parameters (AAL2DPXInit)
TypeNameUseDescription
TDPXHandle *dpx_HandleOHandle pointer used during the DPX file import operation. This block must be acquired by the calling application, and will be initialized by this function. It must be passed to other functions working on the DPX file such as AAL2DPXGetToken, AAL2DPXGetStaticVector, or AAL2DPXClose.
aat_ascii *pFileNameIPath to the DPX file to open. Only characters of the 7-bit ASCII printable character set are supported.
aat_ascii *InitKeyIA string of 32 or 64 hexadecimal digits representing the DPX file software transport key.
aat_int16 *appl_countOPoints to a short integer where the function returns the number of applications described in the DPX file. The application names are listed in the appl_names parameter.
aat_ascii *appl_namesOPoints to a 96 + 1-byte area where the function returns the list of available application names. Each application name has a fixed length of 12 characters, left-aligned and padded with spaces, if necessary. The list contains a maximum of 8 application names (recommended buffer size is 97 bytes).
aat_int16 *token_countOPoints to a short integer where the function returns the number of Digipass authenticators contained in this DPX file.

Return codes

  Table: Return codes (AAL2DPXInit)
CodeMeaningCodeMeaning
0Success-103

Error DH created by content

-10

Error null pointer

-200

Error DC HSH content

-11

Error bad argument

-201Error DC DEL content
-12

Error DPX clear failed

-203Error DEL value
-13

Error DES calculation

-300Error DF field name
-14

Error InitKey length

-301Error DF descriptor
-15

Error InitKey value

-400Error DA record
-20

Error file open failed

-501Error Digipass descriptor
-22

Error file rewind failed

-502Error Digipass unknown descriptor
-23

Error file not open

-800Error CT field type
-24

Error file not closed

-900Error DE DEF records content
-30

Error fatal error

-901Error DE data records content
-32

Error too many errors

-902Error DE tokens content
-40

Error void text

-1500Cannot allocate memory
-42

Error no DF records

-1501Handle pointer is null
-45

Error unexpected content

-1508InitKey pointer is null
-46

Error line exhausted

-1509File name pointer is null
-47

Error missing quotes

-1511Application count pointer is null
-48

Error missing field name

-1512Application name pointer is null
-49

Error bad field name

-1513Token count pointer is null
-50

Error bad field type

-1523Invalid response length with Digipass algorithm in DPX
-51

Error field size

-1524Invalid return host code length with Digipass algorithm in DPX
-100

Error DH file content

-1532Invalid timer unit for OCRA in DPX
-101

Error DH date content

-1533Invalid response or host code length in DPX
-102

Error DH version content

  

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

What's Next
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