summaryrefslogtreecommitdiff
path: root/lib/libssl
diff options
context:
space:
mode:
authorBrent Cook <bcook@cvs.openbsd.org>2016-03-13 18:06:48 +0000
committerBrent Cook <bcook@cvs.openbsd.org>2016-03-13 18:06:48 +0000
commit75fa0eb8122706ad17c85d57032522d626af2129 (patch)
tree9ca4d334bf0bc7dfacfa92cae88bae049459f675 /lib/libssl
parent2c95e628bf12ac736a8508b15c2eaf16e02fcad5 (diff)
Fix examples for EVP_PKEY_CTX_set_rsa_padding.
Noted here, https://github.com/libressl-portable/portable/issues/161, we document a non-existent constant in the examples for EVP_PKEY_CTX_set_rsa_padding. ok deraadt@
Diffstat (limited to 'lib/libssl')
-rw-r--r--lib/libssl/src/doc/crypto/EVP_PKEY_decrypt.pod2
-rw-r--r--lib/libssl/src/doc/crypto/EVP_PKEY_encrypt.pod2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/libssl/src/doc/crypto/EVP_PKEY_decrypt.pod b/lib/libssl/src/doc/crypto/EVP_PKEY_decrypt.pod
index d22b900024e..a64ef12866c 100644
--- a/lib/libssl/src/doc/crypto/EVP_PKEY_decrypt.pod
+++ b/lib/libssl/src/doc/crypto/EVP_PKEY_decrypt.pod
@@ -60,7 +60,7 @@ Decrypt data using OAEP (for RSA keys):
/* Error occurred */
if (EVP_PKEY_decrypt_init(ctx) <= 0)
/* Error */
- if (EVP_PKEY_CTX_set_rsa_padding(ctx, RSA_OAEP_PADDING) <= 0)
+ if (EVP_PKEY_CTX_set_rsa_padding(ctx, RSA_PKCS1_OAEP_PADDING) <= 0)
/* Error */
/* Determine buffer length */
diff --git a/lib/libssl/src/doc/crypto/EVP_PKEY_encrypt.pod b/lib/libssl/src/doc/crypto/EVP_PKEY_encrypt.pod
index b0bfe5d5dc4..b3ca123df09 100644
--- a/lib/libssl/src/doc/crypto/EVP_PKEY_encrypt.pod
+++ b/lib/libssl/src/doc/crypto/EVP_PKEY_encrypt.pod
@@ -60,7 +60,7 @@ Encrypt data using OAEP (for RSA keys):
/* Error occurred */
if (EVP_PKEY_encrypt_init(ctx) <= 0)
/* Error */
- if (EVP_PKEY_CTX_set_rsa_padding(ctx, RSA_OAEP_PADDING) <= 0)
+ if (EVP_PKEY_CTX_set_rsa_padding(ctx, RSA_PKCS1_OAEP_PADDING) <= 0)
/* Error */
/* Determine buffer length */