Cryptographic key shared by both parties.
Challenge shared between the parties coded in hexadecimal.
String containing the value that represents the suite of operations to calculate an OCRA response.
Output csp size, values must be in the range 6 to 8.
Synchronized counter between the parties.
String containing a hash known between the parties during the execution of the algorithm.
Set of strings containing information about the session in ascii encoding.
Number of time intervals (seconds, minutes, hours or days, depending on the granularity specified) since midnight UTC on January 1, 1970 [UT].
Returns a safety-critical parameter with the size entered in P.
If an invalid parameter is entered.
If hsm returns an error.
Example code: Creating a One Time Password (OTP) with OCRA function
OCRA: OATH Challenge-Response Algorithm
It generates a challenge-response based on OCRA: OATH Challenge-Response Algorithm.