NAME
dsagen, dsasign, dsaverify, dsapuballoc, dsapubfree, dsaprivalloc,
dsaprivfree, dsasigalloc, dsasigfree, dsaprivtopub – digital signature
algorithm |
SYNOPSIS
#include <u.h> #include <libc.h> #include <mp.h> #include <libsec.h> DSApriv* dsagen(DSApub *opub) DSAsig* dsasign(DSApriv *k, mpint *m) int dsaverify(DSApub *k, DSAsig *sig, mpint *m) DSApub* dsapuballoc(void) void dsapubfree(DSApub*) DSApriv* dsaprivalloc(void) void dsaprivfree(DSApriv*) DSAsig* dsasigalloc(void) void dsasigfree(DSAsig*)
DSApub* dsaprivtopub(DSApriv*) |
DESCRIPTION
DSA is the NIST approved digital signature algorithm. The owner
of a key publishes the public part of the key:
Dsaprivtopub returns a newly allocated copy of the public key corresponding to the private key. The routines dsapuballoc, dsapubfree, dsaprivalloc, and dsaprivfree are provided to manage key storage.
Dsasign signs message m using a private key k yielding a
The routines dsasigalloc and dsasigfree are provided to manage
signature storage. |
SOURCE
/sys/src/libsec |
SEE ALSO
mp(2), aes(2), blowfish(2), des(2), rc4(2), rsa(2), sechash(2),
prime(2), rand(2) |