iya-sts
    Preparing search index...

    Variable yubiotpDecrypt

    yubiotpDecrypt: (
        key: any,
        ciphertext: any,
    ) =>
        | { fields?: undefined; ok: boolean; reason: string }
        | {
            fields: {
                crc: any;
                crcOk: boolean;
                privateId: any;
                random: any;
                session: any;
                timestampHigh: any;
                timestampLow: any;
                use: any;
            };
            ok: boolean;
            reason?: undefined;
        } = yubiotpDecrypt

    Type Declaration

      • (
            key: any,
            ciphertext: any,
        ):
            | { fields?: undefined; ok: boolean; reason: string }
            | {
                fields: {
                    crc: any;
                    crcOk: boolean;
                    privateId: any;
                    random: any;
                    session: any;
                    timestampHigh: any;
                    timestampLow: any;
                    use: any;
                };
                ok: boolean;
                reason?: undefined;
            }
      • Decrypts one YubiKey OTP block.

        Parameters

        • key: any

          the AES-128 key, 16 bytes or 32 hex characters

        • ciphertext: any

          16 bytes, 32 hex characters, or 32 modhex characters

        Returns
            | { fields?: undefined; ok: boolean; reason: string }
            | {
                fields: {
                    crc: any;
                    crcOk: boolean;
                    privateId: any;
                    random: any;
                    session: any;
                    timestampHigh: any;
                    timestampLow: any;
                    use: any;
                };
                ok: boolean;
                reason?: undefined;
            }

        { ok: true, fields } or { ok: false, reason }