Module nettle::dsa[][src]

Expand description

The Digital Signature Algorithm (DSA) described in FIPS 186.

Structs

Params

Public parameters for DSA signatures.

PrivateKey

Private DSA key.

PublicKey

Public DSA key.

Signature

(EC)DSA signature.

Functions

generate_keypair

Generates a fresh DSA key pair.

sign

Sign digest using key private and ring params. Siging may fail if digest is larger than q or not co-prime to pq.

verify

Verifies signature of digest by public over ring params. Returns true if the signature is valid.