Skip to content

Commit bdfecc5

Browse files
committed
more doc updates
1 parent d64880e commit bdfecc5

2 files changed

Lines changed: 11 additions & 7 deletions

File tree

src/pk/dh/dh_set.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,7 @@ int dh_set_pg_dhparam(const unsigned char *dhparam, unsigned long dhparamlen, dh
9393
/**
9494
Import DH key parts p and g from built-in DH groups
9595
96-
@param dhparam The DH param DER encoded data
97-
@param dhparamlen The length of dhparam data
96+
@param groupsize The size of the DH group to use
9897
@param key [out] Where the newly created DH key will be stored
9998
@return CRYPT_OK if successful, note: on error all allocated memory will be freed automatically.
10099
*/

src/pk/dsa/dsa_set.c

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,13 @@
1414
/**
1515
Import DSA's p, q & g from raw numbers
1616
@param p DSA's p in binary representation
17+
@param plen The length of p
1718
@param q DSA's q in binary representation
19+
@param qlen The length of q
1820
@param g DSA's g in binary representation
21+
@param glen The length of g
1922
@param key [out] the destination for the imported key
20-
@return CRYPT_OK if successful, upon error allocated memory is freed
23+
@return CRYPT_OK if successful.
2124
*/
2225
int dsa_set_pqg(const unsigned char *p, unsigned long plen,
2326
const unsigned char *q, unsigned long qlen,
@@ -68,7 +71,7 @@ int dsa_set_pqg(const unsigned char *p, unsigned long plen,
6871
@param dsaparam The DSA param DER encoded data
6972
@param dsaparamlen The length of dhparam data
7073
@param key [out] the destination for the imported key
71-
@return CRYPT_OK if successful, upon error allocated memory is freed
74+
@return CRYPT_OK if successful.
7275
*/
7376
int dsa_set_pqg_dsaparam(const unsigned char *dsaparam, unsigned long dsaparamlen,
7477
dsa_key *key)
@@ -113,10 +116,12 @@ int dsa_set_pqg_dsaparam(const unsigned char *dsaparam, unsigned long dsaparamle
113116

114117
/**
115118
Import DSA public or private key from raw numbers
116-
@param x DSA's x in binary representation (only private key, NULL for public key)
117-
@param y DSA's y in binary representation
119+
@param pub DSA's y (public key) in binary representation
120+
@param publen The length of pub
121+
@param priv DSA's x (private key) in binary representation (can be NULL when importing public key)
122+
@param privlen The length of priv
118123
@param key [out] the destination for the imported key
119-
@return CRYPT_OK if successful, upon error allocated memory is freed
124+
@return CRYPT_OK if successful.
120125
*/
121126
int dsa_set_key(const unsigned char *pub, unsigned long publen,
122127
const unsigned char *priv, unsigned long privlen,

0 commit comments

Comments
 (0)