summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man/EVP_PKEY_encrypt.3
diff options
context:
space:
mode:
authorjmc <>2016-11-21 22:19:15 +0000
committerjmc <>2016-11-21 22:19:15 +0000
commite05d97d2a0ec0063a0a11bf0b2ac2d04dfcf7798 (patch)
tree4f2ead661ef1282b4d3b9864c0b0a6c1f1509065 /src/lib/libcrypto/man/EVP_PKEY_encrypt.3
parent587118ed88ee457a42eede1b3f726da2f0a59f7c (diff)
downloadopenbsd-e05d97d2a0ec0063a0a11bf0b2ac2d04dfcf7798.tar.gz
openbsd-e05d97d2a0ec0063a0a11bf0b2ac2d04dfcf7798.tar.bz2
openbsd-e05d97d2a0ec0063a0a11bf0b2ac2d04dfcf7798.zip
various cleanup;
Diffstat (limited to 'src/lib/libcrypto/man/EVP_PKEY_encrypt.3')
-rw-r--r--src/lib/libcrypto/man/EVP_PKEY_encrypt.39
1 files changed, 5 insertions, 4 deletions
diff --git a/src/lib/libcrypto/man/EVP_PKEY_encrypt.3 b/src/lib/libcrypto/man/EVP_PKEY_encrypt.3
index 8edd53745d..0e1c72e270 100644
--- a/src/lib/libcrypto/man/EVP_PKEY_encrypt.3
+++ b/src/lib/libcrypto/man/EVP_PKEY_encrypt.3
@@ -1,6 +1,6 @@
1.\" $OpenBSD: EVP_PKEY_encrypt.3,v 1.2 2016/11/06 15:52:50 jmc Exp $ 1.\" $OpenBSD: EVP_PKEY_encrypt.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_ENCRYPT 3 4.Dt EVP_PKEY_ENCRYPT 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 encrypted data is written to 55buffer.
56If the call is successful the encrypted 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
77Encrypt data using OAEP (for RSA keys): 78Encrypt 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