projects
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d560569
)
Correct ECDSA example.
author
Dr. Stephen Henson
<steve@openssl.org>
Tue, 20 Aug 2013 15:33:02 +0000
(16:33 +0100)
committer
Dr. Stephen Henson
<steve@openssl.org>
Wed, 21 Aug 2013 12:43:00 +0000
(13:43 +0100)
doc/crypto/ecdsa.pod
patch
|
blob
|
history
diff --git
a/doc/crypto/ecdsa.pod
b/doc/crypto/ecdsa.pod
index 123784ee16dbeb5193ba07af2a4d593c0ac67c95..46c071b73308784a86d8f2511c70f6f9b169b19e 100644
(file)
--- a/
doc/crypto/ecdsa.pod
+++ b/
doc/crypto/ecdsa.pod
@@
-95,7
+95,7
@@
is ignored.
ECDSA_verify() verifies that the signature in B<sig> of size
B<siglen> is a valid ECDSA signature of the hash value
ECDSA_verify() verifies that the signature in B<sig> of size
B<siglen> is a valid ECDSA signature of the hash value
-
value
B<dgst> of size B<dgstlen> using the public key B<eckey>.
+B<dgst> of size B<dgstlen> using the public key B<eckey>.
The parameter B<type> is ignored.
ECDSA_do_sign() is wrapper function for ECDSA_do_sign_ex with B<kinv>
The parameter B<type> is ignored.
ECDSA_do_sign() is wrapper function for ECDSA_do_sign_ex with B<kinv>
@@
-131,16
+131,12
@@
specific)
int ret;
ECDSA_SIG *sig;
int ret;
ECDSA_SIG *sig;
- EC_KEY *eckey = EC_KEY_new();
+ EC_KEY *eckey;
+ eckey = EC_KEY_new_by_curve_name(NID_secp192k1);
if (eckey == NULL)
{
/* error */
}
if (eckey == NULL)
{
/* error */
}
- key->group = EC_GROUP_new_by_nid(NID_secp192k1);
- if (key->group == NULL)
- {
- /* error */
- }
if (!EC_KEY_generate_key(eckey))
{
/* error */
if (!EC_KEY_generate_key(eckey))
{
/* error */