JavaScript HSM API Dinamo
    Preparing search index...
    interface Ocra {
        ocraGen(
            sk: string,
            q: string,
            suite: string,
            len: null | number,
            c?: null | bigint,
            ph?: null | string,
            s?: null | string,
            ts?: null | bigint,
        ): Promise<string>;
    }
    Index

    Methods

    Methods

    • OCRA: OATH Challenge-Response Algorithm

      It generates a challenge-response based on OCRA: OATH Challenge-Response Algorithm.

      Parameters

      • sk: string

        Cryptographic key shared by both parties.

      • q: string

        Challenge shared between the parties coded in hexadecimal.

      • suite: string

        String containing the value that represents the suite of operations to calculate an OCRA response.

      • len: null | number

        Output csp size, values must be in the range 6 to 8.

      • Optionalc: null | bigint

        Synchronized counter between the parties.

      • Optionalph: null | string

        String containing a hash known between the parties during the execution of the algorithm.

      • Optionals: null | string

        Set of strings containing information about the session in ascii encoding.

      • Optionalts: null | bigint

        Number of time intervals (seconds, minutes, hours or days, depending on the granularity specified) since midnight UTC on January 1, 1970 [UT].

      Returns Promise<string>

      Returns a safety-critical parameter with the size entered in P.

      If an invalid parameter is entered.

      If hsm returns an error.