iya-sts
    Preparing search index...

    Variable pkinitKdf

    pkinitKdf: (
        kdfOid: any,
        z: any,
        otherInfo: any,
        etype: any,
    ) => { etype: number; key: Uint8Array<any> } = pkinitKdf

    Type Declaration

      • (
            kdfOid: any,
            z: any,
            otherInfo: any,
            etype: any,
        ): { etype: number; key: Uint8Array<any> }
      • RFC 8636 section 6's KDF: SP 800-56A's one-step KDF, H(counter || Z || OtherInfo) in counter mode, truncated to the enctype's key length, as the AS reply key.

        Parameters

        • kdfOid: any

          one of PKINIT_KDFS

        • z: any

          the Diffie-Hellman shared secret, padded to the modulus

        • otherInfo: any

          the DER OtherInfo (krb5_pkinit_codec.ts builds it)

        • etype: any

          the reply key's enctype

        Returns { etype: number; key: Uint8Array<any> }

        { etype, key }

        Error for a KDF not in the table