11
11
* are met:
12
12
*
13
13
* 1. Redistributions of source code must retain the above copyright
14
- * notice, this list of conditions and the following disclaimer.
14
+ * notice, this list of conditions and the following disclaimer.
15
15
*
16
16
* 2. Redistributions in binary form must reproduce the above copyright
17
17
* notice, this list of conditions and the following disclaimer in
@@ -95,12 +95,12 @@ void ECDSA_SIG_free(ECDSA_SIG* sig);
95
95
* (*pp += length of the DER encoded signature)).
96
96
* \param sig pointer to the ECDSA_SIG object
97
97
* \param pp pointer to a ubyte pointer for the output or NULL
98
- * \return the length of the DER encoded ECDSA_SIG object or 0
98
+ * \return the length of the DER encoded ECDSA_SIG object or 0
99
99
*/
100
100
int i2d_ECDSA_SIG (const (ECDSA_SIG )* sig, ubyte ** pp);
101
101
102
102
/* * Decodes a DER encoded ECDSA signature (note: this function changes* pp
103
- * (*pp += len)).
103
+ * (*pp += len)).
104
104
* \param sig pointer to ECDSA_SIG pointer (may be NULL)
105
105
* \param pp memory buffer with the DER encoded signature
106
106
* \param len length of the buffer
@@ -122,12 +122,12 @@ ECDSA_SIG* ECDSA_do_sign(const(ubyte)* dgst,int dgst_len,EC_KEY* eckey);
122
122
* \param dgst pointer to the hash value to sign
123
123
* \param dgstlen length of the hash value
124
124
* \param kinv BIGNUM with a pre-computed inverse k (optional)
125
- * \param rp BIGNUM with a pre-computed rp value (optioanl),
125
+ * \param rp BIGNUM with a pre-computed rp value (optioanl),
126
126
* see ECDSA_sign_setup
127
127
* \param eckey EC_KEY object containing a private EC key
128
128
* \return pointer to a ECDSA_SIG structure or NULL if an error occurred
129
129
*/
130
- ECDSA_SIG * ECDSA_do_sign_ex (const (ubyte )* dgst, int dgstlen,
130
+ ECDSA_SIG * ECDSA_do_sign_ex (const (ubyte )* dgst, int dgstlen,
131
131
const (BIGNUM )* kinv, const (BIGNUM )* rp, EC_KEY * eckey);
132
132
133
133
/* * Verifies that the supplied signature is a valid ECDSA
@@ -157,7 +157,7 @@ const(ECDSA_METHOD)* ECDSA_get_default_method();
157
157
/* * Sets method to be used for the ECDSA operations
158
158
* \param eckey EC_KEY object
159
159
* \param meth new method
160
- * \return 1 on success and 0 otherwise
160
+ * \return 1 on success and 0 otherwise
161
161
*/
162
162
int ECDSA_set_method (EC_KEY * eckey, const (ECDSA_METHOD )* meth);
163
163
@@ -174,7 +174,7 @@ int ECDSA_size(const(EC_KEY)* eckey);
174
174
* \param rp BIGNUM pointer for x coordinate of k* generator
175
175
* \return 1 on success and 0 otherwise
176
176
*/
177
- int ECDSA_sign_setup (EC_KEY * eckey, BN_CTX * ctx, BIGNUM ** kinv,
177
+ int ECDSA_sign_setup (EC_KEY * eckey, BN_CTX * ctx, BIGNUM ** kinv,
178
178
BIGNUM ** rp);
179
179
180
180
/* * Computes ECDSA signature of a given hash value using the supplied
@@ -187,7 +187,7 @@ int ECDSA_sign_setup(EC_KEY* eckey, BN_CTX* ctx, BIGNUM** kinv,
187
187
* \param eckey EC_KEY object containing a private EC key
188
188
* \return 1 on success and 0 otherwise
189
189
*/
190
- int ECDSA_sign (int type, const (ubyte )* dgst, int dgstlen,
190
+ int ECDSA_sign (int type, const (ubyte )* dgst, int dgstlen,
191
191
ubyte * sig, uint * siglen, EC_KEY * eckey);
192
192
193
193
@@ -199,31 +199,31 @@ int ECDSA_sign(int type, const(ubyte)* dgst, int dgstlen,
199
199
* \param sig buffer to hold the DER encoded signature
200
200
* \param siglen pointer to the length of the returned signature
201
201
* \param kinv BIGNUM with a pre-computed inverse k (optional)
202
- * \param rp BIGNUM with a pre-computed rp value (optioanl),
202
+ * \param rp BIGNUM with a pre-computed rp value (optioanl),
203
203
* see ECDSA_sign_setup
204
204
* \param eckey EC_KEY object containing a private EC key
205
205
* \return 1 on success and 0 otherwise
206
206
*/
207
- int ECDSA_sign_ex (int type, const (ubyte )* dgst, int dgstlen,
207
+ int ECDSA_sign_ex (int type, const (ubyte )* dgst, int dgstlen,
208
208
ubyte * sig, uint * siglen, const (BIGNUM )* kinv,
209
209
const (BIGNUM )* rp, EC_KEY * eckey);
210
210
211
211
/* * Verifies that the given signature is valid ECDSA signature
212
212
* of the supplied hash value using the specified public key.
213
213
* \param type this parameter is ignored
214
- * \param dgst pointer to the hash value
214
+ * \param dgst pointer to the hash value
215
215
* \param dgstlen length of the hash value
216
216
* \param sig pointer to the DER encoded signature
217
217
* \param siglen length of the DER encoded signature
218
218
* \param eckey EC_KEY object containing a public EC key
219
219
* \return 1 if the signature is valid, 0 if the signature is invalid
220
220
* and -1 on error
221
221
*/
222
- int ECDSA_verify (int type, const (ubyte )* dgst, int dgstlen,
222
+ int ECDSA_verify (int type, const (ubyte )* dgst, int dgstlen,
223
223
const (ubyte )* sig, int siglen, EC_KEY * eckey);
224
224
225
225
/* the standard ex_data functions */
226
- int ECDSA_get_ex_new_index (c_long argl, void * argp, CRYPTO_EX_new
226
+ int ECDSA_get_ex_new_index (c_long argl, void * argp, CRYPTO_EX_new
227
227
* new_func, CRYPTO_EX_dup* dup_func, CRYPTO_EX_free* free_func);
228
228
int ECDSA_set_ex_data (EC_KEY * d, int idx, void * arg);
229
229
void * ECDSA_get_ex_data (EC_KEY * d, int idx);
0 commit comments