mirror of
https://github.com/openssl/openssl.git
synced 2025-02-11 14:22:43 +08:00
fix doc typos
This commit is contained in:
parent
85171f83b8
commit
6f413ef406
@ -69,7 +69,7 @@ Verify signature using PKCS#1 and SHA256 digest:
|
|||||||
/* Error */
|
/* Error */
|
||||||
|
|
||||||
/* Perform operation */
|
/* Perform operation */
|
||||||
ret = EVP_PKEY_verify(ctx, md, mdlen, sig, siglen);
|
ret = EVP_PKEY_verify(ctx, sig, siglen, md, mdlen);
|
||||||
|
|
||||||
/* ret == 1 indicates success, 0 verify failure and < 0 for some
|
/* ret == 1 indicates success, 0 verify failure and < 0 for some
|
||||||
* other error.
|
* other error.
|
||||||
|
@ -74,7 +74,7 @@ Recover digest originally signed using PKCS#1 and SHA256 digest:
|
|||||||
/* Error */
|
/* Error */
|
||||||
|
|
||||||
/* Determine buffer length */
|
/* Determine buffer length */
|
||||||
if (EVP_PKEY_verifyrecover(ctx, rout, &routlen, sig, siglen) <= 0)
|
if (EVP_PKEY_verifyrecover(ctx, NULL, &routlen, sig, siglen) <= 0)
|
||||||
/* Error */
|
/* Error */
|
||||||
|
|
||||||
rout = OPENSSL_malloc(routlen);
|
rout = OPENSSL_malloc(routlen);
|
||||||
|
Loading…
Reference in New Issue
Block a user