JavaScript HSM API Dinamo

    kind_interface Ocra

    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>;
    }
    theme_index

    kind_plural_method

    kind_plural_method

    • OCRA: OATH Challenge-Response Algorithm

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

      kind_plural_parameter

      • 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.

      • flag_optionalc: null | bigint

        Synchronized counter between the parties.

      • flag_optionalph: null | string

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

      • flag_optionals: null | string

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

      • flag_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].

      theme_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.

    MMNEPVFCICPMFPCPTTAAATR