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

AAL2DPXInitHSM

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

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 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.
  • If the DPX file is double-encrypted, also returning the HSM transport key name and the KCV of the HSM transport key double-encrypt the DPX file.

Parameters

  Table: Parameters (AAL2DPXInitHSM)
TypeNameUseDescription
TDPXHandle *dpx_HandleI/OHandle 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 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 encryption 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.
aat_ascii *aTransportKeyNameOName of the HSM-level transport key used to double-encrypt the DPX file. Empty in case of single-encrypted DPX files (recommended buffer size is 129 bytes).
aat_ascii *aTransportKeyKCVOKCV of the HSM-level transport key used to double-encrypt the DPX file. Empty in case of single-encrypted DPX files (recommended buffer size is 7 bytes).

Return codes

  Table: Return codes (AAL2DPXInitHSM)
CodeMeaningCodeMeaning
0Success-301

Error DF descriptor

-10

Error null pointer

-400

Error DA record

-11

Error bad argument

-401Error DA field
-12

Error DPX clear failed

-500Error Digipass field value
-13

Error DES calculation

-501Error Digipass descriptor
-14

Error InitKey length

-502Error Digipass unknown descriptor
-15

Error InitKey value

-503Error Digipass record redefinition
-20

Error file open failed

-504Error Digipass record overflow
-21Error file close failed-800Error CT field type
-22

Error file rewind failed

-801Error CT name redefinition
-23

Error file not open

-802Error CT field length
-24

Error file not closed

-803Error CT field name
-30

Error fatal error

-804Error CT too many entries
-31Error file has errors-900Error DE DEF records content
-32

Error too many errors

-901Error DE data records content
-33Error too much info-902Error DE tokens content
-40

Error void text

-1500Cannot allocate memory
-41Error truncated text-1501Handle pointer is null
-42

Error no DF records

-1502Handle context is pointer null
-43Error unexpected record-1503Handle key is pointer null
-44Error bad record type-1504Invalid handle context eyecatcher
-45

Error unexpected content

-1505Invalid handle key eyecatcher
-46

Error line exhausted

-1506Invalid selected application
-47

Error missing quotes

-1507Selected application pointer is null
-48

Error missing field name

-1508InitKey pointer is null
-49

Error bad field name

-1509File name pointer is null
-50

Error bad field type

-1510Invalid selected application
-51

Error field size

-1511Application count pointer is null
-52Error line size-1512Application name pointer is null
-100

Error DH file content

-1513Token count pointer is null
-101

Error DH date content

-1514Serial number pointer is null
-102

Error DH version content

-1515Digipass type pointer is null
-103Error DH created by content-1516Authentication mode pointer is null
-200Error DC HSH content-1517Digipass data pointer is null
-201Error DC DEL content-1518Key name pointer is null
-202Error HSH value-1519Key KCV pointer is null
-203Error DEL value-1533Invalid response or host code length in DPX
-300Error DF field name  

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