My Project
dsa.h
Go to the documentation of this file.
1 
21 int wc_InitDsaKey(DsaKey* key);
22 
42 void wc_FreeDsaKey(DsaKey* key);
43 
99 int wc_DsaSign(const byte* digest, byte* out,
100  DsaKey* key, WC_RNG* rng);
101 
162 int wc_DsaVerify(const byte* digest, const byte* sig,
163  DsaKey* key, int* answer);
164 
202 int wc_DsaPublicKeyDecode(const byte* input, word32* inOutIdx,
203  DsaKey* key, word32 inSz);
204 
243 int wc_DsaPrivateKeyDecode(const byte* input, word32* inOutIdx,
244  DsaKey* key, word32 inSz);
245 
279 int wc_DsaKeyToDer(DsaKey* key, byte* output, word32 inLen);
280 
310 int wc_MakeDsaKey(WC_RNG *rng, DsaKey *dsa);
311 
342 int wc_MakeDsaParameters(WC_RNG *rng, int modulus_size, DsaKey *dsa);
wc_FreeDsaKey
void wc_FreeDsaKey(DsaKey *key)
This function frees a DsaKey object after it has been used.
wc_DsaKeyToDer
int wc_DsaKeyToDer(DsaKey *key, byte *output, word32 inLen)
Convert DsaKey key to DER format, write to output (inLen), return bytes written.
wc_DsaPublicKeyDecode
int wc_DsaPublicKeyDecode(const byte *input, word32 *inOutIdx, DsaKey *key, word32 inSz)
This function decodes a DER formatted certificate buffer containing a DSA public key,...
wc_MakeDsaParameters
int wc_MakeDsaParameters(WC_RNG *rng, int modulus_size, DsaKey *dsa)
FIPS 186-4 defines valid for modulus_size values as (1024, 160) (2048, 256) (3072,...
wc_DsaSign
int wc_DsaSign(const byte *digest, byte *out, DsaKey *key, WC_RNG *rng)
This function signs the input digest and stores the result in the output buffer, out.
wc_MakeDsaKey
int wc_MakeDsaKey(WC_RNG *rng, DsaKey *dsa)
Create a DSA key.
wc_DsaPrivateKeyDecode
int wc_DsaPrivateKeyDecode(const byte *input, word32 *inOutIdx, DsaKey *key, word32 inSz)
This function decodes a DER formatted certificate buffer containing a DSA private key,...
wc_DsaVerify
int wc_DsaVerify(const byte *digest, const byte *sig, DsaKey *key, int *answer)
This function verifies the signature of a digest, given a private key. It stores whether the key prop...
wc_InitDsaKey
int wc_InitDsaKey(DsaKey *key)
This function initializes a DsaKey object in order to use it for authentication via the Digital Signa...