summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2013-08-20 16:33:02 +0100
committerDr. Stephen Henson <steve@openssl.org>2013-08-20 17:31:53 +0100
commite7e4d506d6f7cf1e2b2f750291eea7c72d02e20e (patch)
tree998256c27318aa4f01cc6c1d130ba5cc2814c0ad /doc
parent9204e7ef0d186ed5005794ae0d6b14ad42ba274d (diff)
Correct ECDSA example.
(cherry picked from commit 3a918ea2bbf4175d9461f81be1403d3781b2c0dc)
Diffstat (limited to 'doc')
-rw-r--r--doc/crypto/ecdsa.pod10
1 files changed, 3 insertions, 7 deletions
diff --git a/doc/crypto/ecdsa.pod b/doc/crypto/ecdsa.pod
index 49b10f2249..9c81bf8cfd 100644
--- 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
-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>
@@ -131,16 +131,12 @@ specific)
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 */
}
- key->group = EC_GROUP_new_by_nid(NID_secp192k1);
- if (key->group == NULL)
- {
- /* error */
- }
if (!EC_KEY_generate_key(eckey))
{
/* error */