Type of pvParamBlob:ISSUE_OTP_BLOB structure.
Generates HOTP blob in the HSM. The seed is generated inside the HSM.
The following structure parameters must be filled in: bSeedLen and bTruncationOffset. The others must be set to zero.
Type of pvParamBlob:ISSUE_OTP_BLOB structure.
Generates TOTP blob in HSM. The seed is generated inside the HSM.
The following structure parameters must be filled in: bSeedLen, bTruncationOffset, wTimeStep and otT0. The others must be set to zero.
Type of pvParamBlob:ISSUE_OTP_BLOB structure.
Imports a HOTP blob. The seed is passed by parameter. The following structure parameters must be filled in: bSeedLen, pbSeed and bTruncationOffset. The others must be set to zero.
Type of pvParamBlob:ISSUE_OTP_BLOB structure.
Imports a TOTP blob. Seed is passed by parameter.
The following structure parameters must be filled in: bUseDefaultMovingFactor, bSeedLen, pbSeed, bTruncationOffset, wTimeStep and otT0. The others must be set to zero.
[in]
pvParamBlob
Pointer to the data or structures specified in dwParamBlobType.
[in]
dwParamBlobLen
Size of the data or structure specified in dwParamBlobType.
Size of the buffer pointed to by pbOTPBlob. On input it should contain the size of the pbOTPBlob buffer on output it will contain the size of the blob written to the allocated buffer.
[in]
dwFlags
Reserved for future use (must be 0).
Return
0 (ZERO) if the function is successful.
See the Return Codes section for other values.
Pointer to a buffer containing the blob that will have the OTP checked. This buffer will be rewritten with the updated buffer.
[in,out]
pdwOATHBlobLen
Size of the pbOATHBlob buffer. The input contains the size of pbOATHBlob and the output contains the size of the data written to pbOATHBlob.
[in]
dwFlags
As of firmware version 4.0.2, the size of the authentication look-ahead window can be set in this parameter. The default is 10 intervals more or less. In the case of HOTP tokens, the intervals will be counted by number of events; in the case of TOTP tokens, they will be counted by number of time-steps.
Value
Meaning
0
Uses the default value of 10 intervals.
1 to MAX_OTP_LOOK_AHEAD_INTERVAL
Sets the value of the authentication look-ahead window.
0 (ZERO) if the function is successful.
See the Return Codes section for other values.
Notes
If the D_OATH_BLOB_UPDATE error is returned, the function will return in pdwOATHBlobLen the size of the buffer that should be used to update the OATH blob in a subsequent call. See details in the specification of OATH_UPDATE_BLOB.
Pointer to a buffer containing the blob to be synchronized. This buffer will be rewritten with the synchronized buffer.
[in,out]
pdwOATHBlobLen
Size of the pbOATHBlob buffer. The input contains the size of pbOATHBlob and the output contains the size of the data written to pbOATHBlob.
[in]
dwFlags
Accepts the flag OATH_UPDATE_BLOB, to allow the format of the OATH blob to be updated. When the OATH_UPDATE_BLOB flag is used, the current OATH blob in pbOATHBlob must be passed in a buffer large enough to hold the updated blob. pdwOATHBlobLen must contain the value of the buffer size passed in pbOATHBlob. The size of pbOATHBlob required is returned in pdwOATHBlobLen in the call where the D_OATH_BLOB_UPDATE error is returned. The update only needs to be done after receiving the D_OATH_BLOB_UPDATE error. See Notes for more details.
Return
0 (ZERO) if the function is successful.
See the Return Codes section for other values.
Notes
As of firmware version 4.0.2, the window will be extended by up to 200 intervals. In the case of HOTP tokens the intervals will be counted by number of events, in the case of TOTP tokens they will be counted by number of time-steps. If the D_OATH_BLOB_UPDATE error is returned, the function will return in pdwOATHBlobLen the size of the buffer that should be used to update the OATH blob in a subsequent call. See details in the specification of OATH_UPDATE_BLOB.
PSKC buffer containing the seeds that will be transformed into blobs in the HSM format.
[in]
dwPSKCLen
Buffer size pbPSKC.
[out]
pvBlobList
Ponteiro para ponteiro que apontará para um buffer alocado internamente contendo um array de estruturas OATH_PSKC_TRANSLATE_OUTPUT. Esta estrutura conterá internamente os blobs das sementes traduzidas para o formato do HSM e o identificador de cada semente como na tag "<pskc:Key Id=>".
[out]
pdwBlobListQuantity
Pointer to the number of blobs returned in the pvBlobList buffer.
[in]
dwParam
Reserved for future use (must be 0).
Return
0 (ZERO) if the function is successful.
See the Return Codes section for other values.