Module: crypto/public_key/dsa

A Digital signature algorithm implementation

Source:

Requires

Methods

(async, static) sign(hash_algo, hashed, g, p, q, x) → {Object}

DSA Sign function

Parameters:
Name Type Description
hash_algo Integer
hashed Uint8Array
g BN
p BN
q BN
x BN
Source:
Returns:
Type
Object

(async, static) verify(hash_algo, r, s, hashed, g, p, q, y)

DSA Verify function

Parameters:
Name Type Description
hash_algo Integer
r BN
s BN
hashed Uint8Array
g BN
p BN
q BN
y BN
Source:
Returns:

BN