AAL2ProcMigrateBlobRpl

Prev Next

Function prototype

aat_int32 AAL2ProcMigrateBlobRpl( aat_byte        *InReply,
                                  aat_int32        ReplySize,
                                  TDigipassBlob   *DPData);

Description

This function processes a reply from the HSM to a command generated with either AAL2GenMigrateBlobCmd or AAL2GenMigrateBlobCmdEx.

Parameters

  Table: Parameters (AAL2ProcMigrateBlobRpl)
TypeNameUseDescription
aat_byte *InReplyI

Up to 202 bytes that contain the MIGRATE BLOB command type and the output data from the migrate BLOB function in the HSM:

  • Command type - 2 bytes
  • An authenticator application BLOB - 192 bytes
  • Return code - 4 bytes

Plus 8 bytes for Authentication Suite Server SDK internal use.

aat_int32ReplySizeIThe length of the InReply message.
TDigipassBlob *DPDataO

authenticator application BLOB. Upon return from the function call, this BLOB must be rewritten to the application database to reflect changes.

Return codes

  Table: Return codes (AAL2ProcMigrateBlobRpl)
CodeMeaningCodeMeaning
0Success950Invalid application for AES HSM encryption
272Invalid wrapped key951Invalid HSM key type for HSM decryption
412Invalid checksum (software)913Invalid HSM key property
413Invalid Base64 format1009Invalid TLV total length
414Invalid checksum (HSM)1018Invalid TLV item pointer
510Invalid Digipass data pointer1019Missing mandatory TLV item
701Invalid input buffer pointer1025Data buffer too small
910Invalid command type in reply1118Unsupported BLOB
911HSM invalid key KCV