diff options
author | 2016-03-13 18:06:47 +0000 | |
---|---|---|
committer | 2016-03-13 18:06:47 +0000 | |
commit | b195bd2cef03981b2813d692032ab91231ae9683 (patch) | |
tree | c4682d58a5fbf05ad9bf397a3c9d9b58884f67d6 /lib/libssl/src | |
parent | reenable wl_paths (whitelisted-paths) in pledge(2) (diff) | |
download | wireguard-openbsd-b195bd2cef03981b2813d692032ab91231ae9683.tar.xz wireguard-openbsd-b195bd2cef03981b2813d692032ab91231ae9683.zip |
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/src')
-rw-r--r-- | lib/libssl/src/doc/crypto/EVP_PKEY_decrypt.pod | 2 | ||||
-rw-r--r-- | lib/libssl/src/doc/crypto/EVP_PKEY_encrypt.pod | 2 |
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 */ |