AAL2ProcMigratePKBlobRpl
  • 22 Jan 2025
  • 1 Minute à lire
  • Sombre
    Lumière
  • PDF

AAL2ProcMigratePKBlobRpl

  • 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 AAL2ProcMigratePKBlobRpl(
                                   aat_byte   *InReply,
                                   aat_int32   ReplySize,
                                   aat_int32  *PKBlob);

Description

This function processes a reply from the HSM to a command generated with AAL2GenMigratePKBlobCmd or AAL2GenMigratePKBlobCmdEx.

Parameters

  Table: Parameters (AAL2ProcMigratePKBlobRpl)
TypeNameUseDescription
aat_byte *InReplyI

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

  • Command type - 2 bytes
  • PayloadKey BLOB - 72 bytes
  • Return code - 4 bytes

Plus 8 bytes for Authentication Suite Server SDK internal use.

aat_int32ReplySizeIThe length of the InReply message.
aat_ascii *PKBlobO

String of 88+1 characters, null-terminated. Contains the payload key BLOB to migrate. Upon return from the function call, this BLOB must be rewritten to the application database to reflect changes. (Recommended buffer size is 89 bytes.)

Return codes

  Table: Return codes (AAL2ProcMigratePKBlobRpl)
CodeMeaningCodeMeaning
0Success917Key type inconsistent
272

Invalid wrapped key

951Invalid HSM key type for HSM decryption
412Invalid checksum (software)1007Invalid TLV tag field
413Invalid Base64 format1009Invalid TLV total length
414Invalid checksum (HSM)1018Invalid TLV item pointer
701Invalid input buffer pointer1019Missing mandatory TLV item
910Invalid command type in reply1025Data buffer too small
911HSM invalid key KCV1286Invalid payload key pointer
913Invalid HSM key property  

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