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

AAL2ProcGetHSMModuleVersionRpl

  • 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 AAL2ProcGetHSMModuleVersionRpl(
                                         aat_byte    *InReply,
                                         aat_int32    ReplySize,
                                         aat_ascii   *Moduleversion,
                                         aat_int32   *ModuleversionLength);

Description

This function processes a reply from the HSM to a Get HSM Module version code command generated with the AAL2GenGetHSMModuleVersionCmd function.

Parameters

  Table: Parameters (AAL2ProcGetHSMModuleVersionRpl)
TypeNameUseDescription
aat_byte *InReplyI

Up to 40 bytes that contain the GET HSM MODULEVERSION command type and the output data from the get Module HSM Module Version function on the HSM:

  • Command type - 2 bytes
  • Return code - 4 bytes
  • ModuleVersion - up to 16 bytes
  • ModuleVersionLength - 4 bytes

Plus 12 bytes for Authentication Suite Server SDK internal use.

aat_int32ReplySizeIThe length of the InReply message.
aat_ascii *ModuleVersionOString of up to 15+1 characters library version of the form w.x.y.z with w, x, y, and z positive decimal value between 0 and 255 (+ 1 null terminator character).
aat_int32 *ModuleVersionLengthI/O

In input, this parameter must indicate the size of the allocated buffer for the ModuleVersion parameter (recommended 16 bytes).

In output, this parameter indicates the length of the ModuleVersion string (without the null-terminated character).

Return codes

  Table: Return codes (AAL2ProcGetHSMModuleVersionRpl)
CodeMeaningCodeMeaning
0Success1019Missing mandatory TLV item
701Invalid input buffer pointer1025Buffer too small
910Invalid HSM command in reply1328Invalid module version
1009Invalid TLV total length1329Module version buffer too small
1018Invalid TLV item pointer1330Invalid module version length 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