diff options
Diffstat (limited to 'src/lib/libcrypto/man/EVP_PKEY_encrypt.3')
| -rw-r--r-- | src/lib/libcrypto/man/EVP_PKEY_encrypt.3 | 9 |
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 |
| 53 | parameter should contain the length of the | 53 | parameter should contain the length of the |
| 54 | .Fa out | 54 | .Fa out |
| 55 | buffer, if the call is successful the encrypted data is written to | 55 | buffer. |
| 56 | If the call is successful the encrypted data is written to | ||
| 56 | .Fa out | 57 | .Fa out |
| 57 | and the amount of data written to | 58 | and 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 | |||
| 75 | supported by the public key algorithm. | 76 | supported by the public key algorithm. |
| 76 | .Sh EXAMPLES | 77 | .Sh EXAMPLES |
| 77 | Encrypt data using OAEP (for RSA keys): | 78 | Encrypt 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 | ||
