Public key of SRA key exchange object

Constructors

Properties

n p phi q

Methods

Constructors

Properties

n: bigint

N = P * Q

p: bigint

prime number P

phi: bigint

Phi = (P - 1) * (Q - 1)

q: bigint

prime number Q

Methods

  • Generates E such that gcd(E, Phi) is 1.

    Parameters

    • bits: number

      E size in bits

    Returns Promise<bigint>

    the number E (asynchrously)