iya-sts
    Preparing search index...

    Variable sign

    sign: (alg: any, priv: any, message: any) => any = sign

    Type Declaration

      • (alg: any, priv: any, message: any): any
      • Signs a message, hedged (FIPS 204 section 3.4, FIPS 205 section 9.2).

        A composite's ML-DSA half signs M' with the label as its context string, and the two signatures are concatenated.

        Parameters

        • alg: any

          one of PQ_ALGS

        • priv: any

          the private key as generate() returns it

        • message: any

          the bytes to sign

        Returns any

        the signature as a Buffer

        Error for an unknown algorithm or a private key of the wrong length