AAL2ProcGenPasswordRpl

Prev Next

Function prototype

aat_int32 AAL2ProcGenPasswordRpl(
                                 aat_byte         *InReply,
                                 aat_int32         ReplySize,
                                 TDigipassBlob    *DPData,
                                 aat_ascii        *Response,
                                 aat_ascii        *aReturnHostCodeOut,
                                 aat_int32        *ReturnHostCodeLenOut);

Description

This function processes a reply from the HSM to a password generation command which was generated with AAL2GenGenPasswordCmd.

The password generation on the HSM is identical to the functionality available with the Authentication Suite Server SDK Software Password Generation Service. For information on the associated functions, refer to the Authentication Suite Server SDK C-C++ Programmer's Guide.

Parameters

  Table: Parameters (AAL2ProcGenPasswordRpl)
TypeNameUseDescription
aat_byte *InReplyI

Up to 256 bytes that contain the GENERATE PASSWORD command type and the output data from the generate password function on the HSM:

  • Command type - 2 bytes
  • An authenticator application BLOB - 192 bytes
  • Return code - 4 bytes
  • Response - up to 17 characters
  • Return host code length - 4 bytes
  • Return host code - up to 17 characters

Plus 20 bytes for Authentication Suite Server SDK internal use.

aat_int32ReplySizeIThe length of the InReply message.
TDigipassBlob *DPDataOauthenticator application BLOB. Upon return from the function call, this BLOB must be rewritten to the application database to reflect changes.
aat_ascii *ResponseOString 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 *aReturnHostCodeOutO

String of up to 17 numeric or hexadecimal characters, left-justified, null-terminated, or right-padded with spaces. This is the code generated by Authentication Suite Server SDK (recommended buffer size is 18 bytes). Leave NULL if not required.

aat_int32 *ReturnHostCodeLenOutO

Pointer to a long integer that in input contains the size of the ReturnHostCodeOut buffer, and in output contains the real length of the generated return host code. Leave NULL if not required.

Return codes

  Table: Return codes (AAL2ProcGenPasswordRpl)
CodeMeaningCodeMeaning
0Success951Invalid HSM key type for HSM decryption
130Invalid response pointer1009Invalid TLV total length
131Missing required challenge1018Invalid TLV item pointer
202Identification error threshold reached1019Missing mandatory TLV item
208Application disabled1025Data buffer too small
209Grace period expired1103Unlock Version 2 not supported
210Allowed use count reached1116Response check digit not allowed
211Virtual token not supported1117Challenge check digit not allowed
272Invalid wrapped key1118Unsupported BLOB
412Invalid checksum (software)-101Challenge too short
413Invalid Base64 format-102Challenge too long
414Invalid checksum (HSM)-103Challenge check digit wrong
510Invalid Digipass data pointer-105Challenge minimum length not allowed
701Invalid input buffer pointer-106Challenge maximum length not allowed
910Invalid HSM command in reply-107Challenge number wrong
912HSM invalid BLOB status-108Challenge character invalid
913Invalid HSM key property-1501Memory allocation failed