OLD | NEW |
1 =pod | 1 =pod |
2 | 2 |
3 =head1 NAME | 3 =head1 NAME |
4 | 4 |
5 EVP_VerifyInit, EVP_VerifyUpdate, EVP_VerifyFinal - EVP signature verification f
unctions | 5 EVP_VerifyInit, EVP_VerifyUpdate, EVP_VerifyFinal - EVP signature verification f
unctions |
6 | 6 |
7 =head1 SYNOPSIS | 7 =head1 SYNOPSIS |
8 | 8 |
9 #include <openssl/evp.h> | 9 #include <openssl/evp.h> |
10 | 10 |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 | 60 |
61 Since only a copy of the digest context is ever finalized the context must | 61 Since only a copy of the digest context is ever finalized the context must |
62 be cleaned up after use by calling EVP_MD_CTX_cleanup() or a memory leak | 62 be cleaned up after use by calling EVP_MD_CTX_cleanup() or a memory leak |
63 will occur. | 63 will occur. |
64 | 64 |
65 =head1 BUGS | 65 =head1 BUGS |
66 | 66 |
67 Older versions of this documentation wrongly stated that calls to | 67 Older versions of this documentation wrongly stated that calls to |
68 EVP_VerifyUpdate() could not be made after calling EVP_VerifyFinal(). | 68 EVP_VerifyUpdate() could not be made after calling EVP_VerifyFinal(). |
69 | 69 |
| 70 Since the public key is passed in the call to EVP_SignFinal() any error |
| 71 relating to the private key (for example an unsuitable key and digest |
| 72 combination) will not be indicated until after potentially large amounts of |
| 73 data have been passed through EVP_SignUpdate(). |
| 74 |
| 75 It is not possible to change the signing parameters using these function. |
| 76 |
| 77 The previous two bugs are fixed in the newer EVP_VerifyDigest*() function. |
| 78 |
70 =head1 SEE ALSO | 79 =head1 SEE ALSO |
71 | 80 |
72 L<evp(3)|evp(3)>, | 81 L<evp(3)|evp(3)>, |
73 L<EVP_SignInit(3)|EVP_SignInit(3)>, | 82 L<EVP_SignInit(3)|EVP_SignInit(3)>, |
74 L<EVP_DigestInit(3)|EVP_DigestInit(3)>, L<err(3)|err(3)>, | 83 L<EVP_DigestInit(3)|EVP_DigestInit(3)>, L<err(3)|err(3)>, |
75 L<evp(3)|evp(3)>, L<hmac(3)|hmac(3)>, L<md2(3)|md2(3)>, | 84 L<evp(3)|evp(3)>, L<hmac(3)|hmac(3)>, L<md2(3)|md2(3)>, |
76 L<md5(3)|md5(3)>, L<mdc2(3)|mdc2(3)>, L<ripemd(3)|ripemd(3)>, | 85 L<md5(3)|md5(3)>, L<mdc2(3)|mdc2(3)>, L<ripemd(3)|ripemd(3)>, |
77 L<sha(3)|sha(3)>, L<dgst(1)|dgst(1)> | 86 L<sha(3)|sha(3)>, L<dgst(1)|dgst(1)> |
78 | 87 |
79 =head1 HISTORY | 88 =head1 HISTORY |
80 | 89 |
81 EVP_VerifyInit(), EVP_VerifyUpdate() and EVP_VerifyFinal() are | 90 EVP_VerifyInit(), EVP_VerifyUpdate() and EVP_VerifyFinal() are |
82 available in all versions of SSLeay and OpenSSL. | 91 available in all versions of SSLeay and OpenSSL. |
83 | 92 |
84 EVP_VerifyInit_ex() was added in OpenSSL 0.9.7 | 93 EVP_VerifyInit_ex() was added in OpenSSL 0.9.7 |
85 | 94 |
86 =cut | 95 =cut |
OLD | NEW |