AAL2GenGenActivationDataRndKeyCmd
  • 22 Jan 2025
  • 3 Minutes à lire
  • Sombre
    Lumière
  • PDF

AAL2GenGenActivationDataRndKeyCmd

  • 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 AAL2GenGenActivationDataRndKeyCmd(
                                         aat_byte        *Cmd,
                                         aat_int32       *CmdSize,
                                         TDigipassBlob   *DPData [8],
                                         aat_int16        Appl_count,
                                         TKernelParms    *CallParms,
                                         aat_ascii       *aStorageKeyNameIn,
                                         aat_ascii       *aIVIn,
                                         aat_ascii       *aStaticVectorIn,
                                         aat_ascii       *aSharedData,
                                         aat_ascii       *aAlea,
                                         aat_int32        ActivationFlags);

Description

This function creates a command for the HSM to generate software Digipass activation data with a random key for software Digipass authenticators compliant with the standard one-step activation (in the context of single-device licensing; for more information, refer to the Authentication Suite Server SDK Product Guide), using the given data, and to return a result in the form of a reply.

The software Digipass activation data with random key generation on the HSM is the same functionality as available with the Authentication Suite Server SDK Software Digipass Activation Service. For information on the associated function (AAL2GenActivationDataRndKey), refer to the Authentication Suite Server SDKC-C++ Programmer's Guide.


  • To generate activation data for a software Digipass authenticator using this function, it is mandatory to provide all the corresponding customer authenticator application BLOBs. The function will fail if not all the customer authenticator application BLOBs of the related software Digipass authenticators are provided.
  • In addition, a new random key will be generated for the software Digipass authenticator and will replace the previous one.
  • In the post-HSM API function, the generated [encrypted] activation code (or [X]FAD) will be related to the new software Digipass key, and the resulting authenticator application BLOBs will be updated with the new software Digipass key.
  • 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 APIAAL2ProcGenActivationDataRndKeyRpl.

Parameters

  Table: Parameters (AAL2GenGenActivationDataRndKeyCmd)
TypeNameUseDescription
aat_byte *CmdO

Up to 6944 bytes that serialize the GENERATE ACTIVATION DATA RND KEY command type and the input data to the Generate Activation Data Random Key function on the HSM:

  • Command type - 2 bytes
  • An authenticator application BLOB - 192 (x 1 to 8) bytes
  • Application count - 4 bytes
  • Run time parameters - 80 bytes
  • StorageKeyName - up to 128 characters
  • InitialVector - 8 bytes
  • Static vector - up to 4094 characters
  • Shared data - up to 512 characters
  • Alea - up to 512 characters
  • ActivationFlags - 4 bytes

Plus 64 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.

TDigipassBlob * [8]DPDataIArray of authenticator application BLOB pointers. All authenticator application BLOBs of the software Digipass authenticator must be provided.
aat_int16 Appl_countINumber of applications in the authenticator application BLOB array (1 to 8)
TkernelParms*CallParmsIStructure of runtime parameters to use during the call of the HSM Generate Activation Data Random Key function.
aat_ascii *aStorage KeyNameInI

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 *aStatic VectorInISoftware Digipass parameter settings, up to 4094 characters, null-terminated.
aat_ascii *aSharedDataI

Data used to encrypt the activation data. Up to 512* characters, null-terminated. Set to NULL if no shared data used by the software Digipass activation process.

*Shared data plus alea must not exceed 512 characters.

aat_ascii *aAleaI

Encryption diversifier pseudo-randomly generated. Up to 512* characters. Set to NULL if no alea is used by the software Digipass activation process.

*Shared data plus alea must not exceed 512 characters.

aat_int32 Activation CodeFlagsI

Integer value that specifies the activation mode used for generating activation data (online or offline activation mode.) The ActivationFlags value can be either set to 0x0 or 0x1. Table: Possible ActivationFlags values (AAL2GenGenActivationDataRndKeyCmd) lists the possible values for ActivationFlags.

  Table:  Possible ActivationFlags values (AAL2GenGenActivationDataRndKeyCmd)
FlagValueDescription
ACTV_DEFAULT0x00000000

Online activation mode for software Digipass authenticators based on the Digipass SDK 4.0 or later (function generates an [X]FAD).

The activation mode configured in the static vector for software Digipass authenticators based on the Digipass SDK prior to version 4.0, online or offline (the function generates an [X]FAD or an activation code depending on static vector content).

ACTV_OFFLINE0x00000001Offline activation mode (function generates an [encrypted] activation code).

Return codes

  Table: Return codes (AAL2GenGenActivationDataRndKeyCmd)
CodeMeaningCodeMeaning
0Success590Invalid command pointer
149Invalid initial vector length706Invalid data buffer pointer
412Invalid checksum (software)808Invalid application count value (1 to 8)
413Invalid Base64 format1000Function does not support EMV-CAP
510Invalid Digipass data pointer1018Invalid TLV item pointer
537Invalid static vector pointer1025Data buffer too small

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