more doc updates
This commit is contained in:
parent
d64880eeb1
commit
bdfecc5f3c
@ -93,8 +93,7 @@ LBL_ERR:
|
|||||||
/**
|
/**
|
||||||
Import DH key parts p and g from built-in DH groups
|
Import DH key parts p and g from built-in DH groups
|
||||||
|
|
||||||
@param dhparam The DH param DER encoded data
|
@param groupsize The size of the DH group to use
|
||||||
@param dhparamlen The length of dhparam data
|
|
||||||
@param key [out] Where the newly created DH key will be stored
|
@param key [out] Where the newly created DH key will be stored
|
||||||
@return CRYPT_OK if successful, note: on error all allocated memory will be freed automatically.
|
@return CRYPT_OK if successful, note: on error all allocated memory will be freed automatically.
|
||||||
*/
|
*/
|
||||||
|
@ -14,10 +14,13 @@
|
|||||||
/**
|
/**
|
||||||
Import DSA's p, q & g from raw numbers
|
Import DSA's p, q & g from raw numbers
|
||||||
@param p DSA's p in binary representation
|
@param p DSA's p in binary representation
|
||||||
|
@param plen The length of p
|
||||||
@param q DSA's q in binary representation
|
@param q DSA's q in binary representation
|
||||||
|
@param qlen The length of q
|
||||||
@param g DSA's g in binary representation
|
@param g DSA's g in binary representation
|
||||||
|
@param glen The length of g
|
||||||
@param key [out] the destination for the imported key
|
@param key [out] the destination for the imported key
|
||||||
@return CRYPT_OK if successful, upon error allocated memory is freed
|
@return CRYPT_OK if successful.
|
||||||
*/
|
*/
|
||||||
int dsa_set_pqg(const unsigned char *p, unsigned long plen,
|
int dsa_set_pqg(const unsigned char *p, unsigned long plen,
|
||||||
const unsigned char *q, unsigned long qlen,
|
const unsigned char *q, unsigned long qlen,
|
||||||
@ -68,7 +71,7 @@ LBL_ERR:
|
|||||||
@param dsaparam The DSA param DER encoded data
|
@param dsaparam The DSA param DER encoded data
|
||||||
@param dsaparamlen The length of dhparam data
|
@param dsaparamlen The length of dhparam data
|
||||||
@param key [out] the destination for the imported key
|
@param key [out] the destination for the imported key
|
||||||
@return CRYPT_OK if successful, upon error allocated memory is freed
|
@return CRYPT_OK if successful.
|
||||||
*/
|
*/
|
||||||
int dsa_set_pqg_dsaparam(const unsigned char *dsaparam, unsigned long dsaparamlen,
|
int dsa_set_pqg_dsaparam(const unsigned char *dsaparam, unsigned long dsaparamlen,
|
||||||
dsa_key *key)
|
dsa_key *key)
|
||||||
@ -113,10 +116,12 @@ LBL_ERR:
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
Import DSA public or private key from raw numbers
|
Import DSA public or private key from raw numbers
|
||||||
@param x DSA's x in binary representation (only private key, NULL for public key)
|
@param pub DSA's y (public key) in binary representation
|
||||||
@param y DSA's y in binary representation
|
@param publen The length of pub
|
||||||
|
@param priv DSA's x (private key) in binary representation (can be NULL when importing public key)
|
||||||
|
@param privlen The length of priv
|
||||||
@param key [out] the destination for the imported key
|
@param key [out] the destination for the imported key
|
||||||
@return CRYPT_OK if successful, upon error allocated memory is freed
|
@return CRYPT_OK if successful.
|
||||||
*/
|
*/
|
||||||
int dsa_set_key(const unsigned char *pub, unsigned long publen,
|
int dsa_set_key(const unsigned char *pub, unsigned long publen,
|
||||||
const unsigned char *priv, unsigned long privlen,
|
const unsigned char *priv, unsigned long privlen,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user