Function generateShamirRivestAdleman

  • Generates a Shamir-Rivest-Adleman (SRA) key exchange object.

    Parameters

    • props: {
          bits: number;
          keys?: {
              e?: bigint;
              p: bigint;
              q: bigint;
          };
      }
      • bits: number

        prime size in bits

      • Optional keys?: {
            e?: bigint;
            p: bigint;
            q: bigint;
        }

        any keys generated previously (e.g. an existing ShamirRivestAdleman.publicKey of another SRA object)

        • Optional e?: bigint
        • p: bigint
        • q: bigint

    Returns Promise<ShamirRivestAdleman>

    ShamirRivestAdleman instance (asynchrously)