|
14 | 14 | /** |
15 | 15 | Import DSA's p, q & g from raw numbers |
16 | 16 | @param p DSA's p in binary representation |
| 17 | + @param plen The length of p |
17 | 18 | @param q DSA's q in binary representation |
| 19 | + @param qlen The length of q |
18 | 20 | @param g DSA's g in binary representation |
| 21 | + @param glen The length of g |
19 | 22 | @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. |
21 | 24 | */ |
22 | 25 | int dsa_set_pqg(const unsigned char *p, unsigned long plen, |
23 | 26 | const unsigned char *q, unsigned long qlen, |
@@ -68,7 +71,7 @@ int dsa_set_pqg(const unsigned char *p, unsigned long plen, |
68 | 71 | @param dsaparam The DSA param DER encoded data |
69 | 72 | @param dsaparamlen The length of dhparam data |
70 | 73 | @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. |
72 | 75 | */ |
73 | 76 | int dsa_set_pqg_dsaparam(const unsigned char *dsaparam, unsigned long dsaparamlen, |
74 | 77 | dsa_key *key) |
@@ -113,10 +116,12 @@ int dsa_set_pqg_dsaparam(const unsigned char *dsaparam, unsigned long dsaparamle |
113 | 116 |
|
114 | 117 | /** |
115 | 118 | 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 |
118 | 123 | @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. |
120 | 125 | */ |
121 | 126 | int dsa_set_key(const unsigned char *pub, unsigned long publen, |
122 | 127 | const unsigned char *priv, unsigned long privlen, |
|
0 commit comments