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

AAL2GenProcMessageResponseCmd

  • 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 AAL2GenProcMessageResponseCmd(
                                        aat_byte        *Cmd,
                                        aat_int32       *CmdSize,
                                        aat_ascii       *PKBlob,
                                        TKernelParms    *CallParms,
                                        aat_ascii       *aStorageKeyNameIn,
                                        aat_ascii       *aIVIn,
                                        aat_ascii       *ResponseMessage,
                                        aat_ascii       *RequestMessage);

Description

This function creates a command that directs the HSM to process a response message using the given data, and to return a result in the form of a reply.

The response message processing is only applicable to hardware and software Digipass compliant with the Secure Channel protocol.

The response message processing on the HSM is identical to the functionality available with the Authentication Suite Server SDK Software Digipass Secure Channel Service. For information on the associated functions, refer to the Authentication Suite Server SDK C-C++ Programmer's Guide.

This function serializes an important amount of data. The Cmd buffer must be allocated with a sufficient size. For more information about the allocation of the Cmd and InReply buffers, refer to  Cmd and InReply buffers allocation

This function must be used with the post-HSM API AAL2ProcProcMessageResponseRpl.

Parameters

  Table: Parameters (AAL2GenProcMessageResponseCmd)
TypeNameUseDescription
aat_byte *CmdO

Up to 2462 bytes that serialize the RESPONSE MESSAGE PROCESSING command type and the input data to the response message processing function on the HSM:

  • Command type - 2 bytes
  • PayloadKey BLOB - 72 characters
  • Runtime parameters - 80 bytes
  • StorageKeyName - up to 128 characters
  • InitialVector - 8 bytes
  • ResponseMessage - up to 1070 characters
  • Request Message - up to 1070 characters
  • Host time - 4 bytes

Plus 28 bytes for Authentication Suite Server SDK internal use.

aat_int32 *CmdSizeI/O

On entry, this parameter contains the size of the Cmd buffer.On exit, this parameter contains the length of the Cmd message.

aat_ascii *PKBlobI

Contains the payload key BLOB that has been generated for the Digipass instances activated with a particular serial number license (in case of the multi-device licensing model) or that has been imported for the Digipass authenticator with a particular serial number license (in case of single-device licensing model). The payload key BLOB parameter is mandatory only if the information message is protected (encrypted and/or signed); can be NULL or empty if the information message is not protected (neither encrypted nor signed).

TKernelParms *CallParmsI

Structure of runtime parameters to use during this function call.

aat_ascii *aStorageKey NameIn I

String of up to 128+1 characters, left-justified, null-terminated, or right-padded with spaces. This is the label of the HSM storage key used to encrypt the sensitive Digipass application BLOB data.

aat_ascii *aIVInI

String 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 *ResponseMessageI

Hexadecimal character string containing the response message that has been generated by the Digipass client device in reply to a request message. The string length must be a multiple of 2 with a maximum length of 1070 characters.

aat_ascii *RequestMessageI

Hexadecimal character string containing the request message that has been used by the Digipass device to generate the response message. String length must be multiple of 2 with a maximum length of 1070 characters.

Return codes

  Table: Return codes (AAL2GenProcMessageResponseCmd)
CodeMeaningCodeMeaning
0Success1025

Buffer too small

149

Invalid initial vector length

1119

Unsupported payload key BLOB

412

Invalid checksum (software)

1303

Invalid request message pointer

413

Invalid Base64 format

1341

Message is not hexadecimal

590

Invalid command pointer

1342

Invalid response message length

706

Invalid data buffer pointer

1344

Invalid request message length

1000

Function does not support EMV-CAP

1348

Invalid response message pointer

1018

Invalid TLV item pointer

  

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