summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man/EVP_PKEY_decrypt.3
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/man/EVP_PKEY_decrypt.3')
-rw-r--r--src/lib/libcrypto/man/EVP_PKEY_decrypt.39
1 files changed, 5 insertions, 4 deletions
diff --git a/src/lib/libcrypto/man/EVP_PKEY_decrypt.3 b/src/lib/libcrypto/man/EVP_PKEY_decrypt.3
index f8d29fbef2..15e44a6510 100644
--- a/src/lib/libcrypto/man/EVP_PKEY_decrypt.3
+++ b/src/lib/libcrypto/man/EVP_PKEY_decrypt.3
@@ -1,6 +1,6 @@
1.\" $OpenBSD: EVP_PKEY_decrypt.3,v 1.2 2016/11/06 15:52:50 jmc Exp $ 1.\" $OpenBSD: EVP_PKEY_decrypt.3,v 1.3 2016/11/21 22:19:15 jmc Exp $
2.\" 2.\"
3.Dd $Mdocdate: November 6 2016 $ 3.Dd $Mdocdate: November 21 2016 $
4.Dt EVP_PKEY_DECRYPT 3 4.Dt EVP_PKEY_DECRYPT 3
5.Os 5.Os
6.Sh NAME 6.Sh NAME
@@ -52,7 +52,8 @@ then before the call the
52.Fa outlen 52.Fa outlen
53parameter should contain the length of the 53parameter should contain the length of the
54.Fa out 54.Fa out
55buffer, if the call is successful the decrypted data is written to 55buffer.
56If the call is successful the decrypted data is written to
56.Fa out 57.Fa out
57and the amount of data written to 58and the amount of data written to
58.Fa outlen . 59.Fa outlen .
@@ -75,7 +76,7 @@ In particular, a return value of -2 indicates the operation is not
75supported by the public key algorithm. 76supported by the public key algorithm.
76.Sh EXAMPLES 77.Sh EXAMPLES
77Decrypt data using OAEP (for RSA keys): 78Decrypt data using OAEP (for RSA keys):
78.Bd -literal 79.Bd -literal -offset indent
79#include <openssl/evp.h> 80#include <openssl/evp.h>
80#include <openssl/rsa.h> 81#include <openssl/rsa.h>
81 82