提交 6f413ef4 编写于 作者: D Dr. Stephen Henson

fix doc typos

上级 85171f83
...@@ -69,7 +69,7 @@ Verify signature using PKCS#1 and SHA256 digest: ...@@ -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: ...@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册