diff options
author | bcook <> | 2016-03-13 18:06:47 +0000 |
---|---|---|
committer | bcook <> | 2016-03-13 18:06:47 +0000 |
commit | ab3ae8f97f04e92c32ecd62b8d9baf270a635ab7 (patch) | |
tree | c3b7faf0aa4859bb450c2a8e9930bcddc95cd68f | |
parent | 84ad4abc945651758ccaec50eaeafff9ffe582ee (diff) | |
download | openbsd-ab3ae8f97f04e92c32ecd62b8d9baf270a635ab7.tar.gz openbsd-ab3ae8f97f04e92c32ecd62b8d9baf270a635ab7.tar.bz2 openbsd-ab3ae8f97f04e92c32ecd62b8d9baf270a635ab7.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@
-rw-r--r-- | src/lib/libcrypto/doc/EVP_PKEY_decrypt.pod | 2 | ||||
-rw-r--r-- | src/lib/libcrypto/doc/EVP_PKEY_encrypt.pod | 2 | ||||
-rw-r--r-- | src/lib/libssl/src/doc/crypto/EVP_PKEY_decrypt.pod | 2 | ||||
-rw-r--r-- | src/lib/libssl/src/doc/crypto/EVP_PKEY_encrypt.pod | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/doc/EVP_PKEY_decrypt.pod b/src/lib/libcrypto/doc/EVP_PKEY_decrypt.pod index d22b900024..a64ef12866 100644 --- a/src/lib/libcrypto/doc/EVP_PKEY_decrypt.pod +++ b/src/lib/libcrypto/doc/EVP_PKEY_decrypt.pod | |||
@@ -60,7 +60,7 @@ Decrypt data using OAEP (for RSA keys): | |||
60 | /* Error occurred */ | 60 | /* Error occurred */ |
61 | if (EVP_PKEY_decrypt_init(ctx) <= 0) | 61 | if (EVP_PKEY_decrypt_init(ctx) <= 0) |
62 | /* Error */ | 62 | /* Error */ |
63 | if (EVP_PKEY_CTX_set_rsa_padding(ctx, RSA_OAEP_PADDING) <= 0) | 63 | if (EVP_PKEY_CTX_set_rsa_padding(ctx, RSA_PKCS1_OAEP_PADDING) <= 0) |
64 | /* Error */ | 64 | /* Error */ |
65 | 65 | ||
66 | /* Determine buffer length */ | 66 | /* Determine buffer length */ |
diff --git a/src/lib/libcrypto/doc/EVP_PKEY_encrypt.pod b/src/lib/libcrypto/doc/EVP_PKEY_encrypt.pod index b0bfe5d5dc..b3ca123df0 100644 --- a/src/lib/libcrypto/doc/EVP_PKEY_encrypt.pod +++ b/src/lib/libcrypto/doc/EVP_PKEY_encrypt.pod | |||
@@ -60,7 +60,7 @@ Encrypt data using OAEP (for RSA keys): | |||
60 | /* Error occurred */ | 60 | /* Error occurred */ |
61 | if (EVP_PKEY_encrypt_init(ctx) <= 0) | 61 | if (EVP_PKEY_encrypt_init(ctx) <= 0) |
62 | /* Error */ | 62 | /* Error */ |
63 | if (EVP_PKEY_CTX_set_rsa_padding(ctx, RSA_OAEP_PADDING) <= 0) | 63 | if (EVP_PKEY_CTX_set_rsa_padding(ctx, RSA_PKCS1_OAEP_PADDING) <= 0) |
64 | /* Error */ | 64 | /* Error */ |
65 | 65 | ||
66 | /* Determine buffer length */ | 66 | /* Determine buffer length */ |
diff --git a/src/lib/libssl/src/doc/crypto/EVP_PKEY_decrypt.pod b/src/lib/libssl/src/doc/crypto/EVP_PKEY_decrypt.pod index d22b900024..a64ef12866 100644 --- a/src/lib/libssl/src/doc/crypto/EVP_PKEY_decrypt.pod +++ b/src/lib/libssl/src/doc/crypto/EVP_PKEY_decrypt.pod | |||
@@ -60,7 +60,7 @@ Decrypt data using OAEP (for RSA keys): | |||
60 | /* Error occurred */ | 60 | /* Error occurred */ |
61 | if (EVP_PKEY_decrypt_init(ctx) <= 0) | 61 | if (EVP_PKEY_decrypt_init(ctx) <= 0) |
62 | /* Error */ | 62 | /* Error */ |
63 | if (EVP_PKEY_CTX_set_rsa_padding(ctx, RSA_OAEP_PADDING) <= 0) | 63 | if (EVP_PKEY_CTX_set_rsa_padding(ctx, RSA_PKCS1_OAEP_PADDING) <= 0) |
64 | /* Error */ | 64 | /* Error */ |
65 | 65 | ||
66 | /* Determine buffer length */ | 66 | /* Determine buffer length */ |
diff --git a/src/lib/libssl/src/doc/crypto/EVP_PKEY_encrypt.pod b/src/lib/libssl/src/doc/crypto/EVP_PKEY_encrypt.pod index b0bfe5d5dc..b3ca123df0 100644 --- a/src/lib/libssl/src/doc/crypto/EVP_PKEY_encrypt.pod +++ b/src/lib/libssl/src/doc/crypto/EVP_PKEY_encrypt.pod | |||
@@ -60,7 +60,7 @@ Encrypt data using OAEP (for RSA keys): | |||
60 | /* Error occurred */ | 60 | /* Error occurred */ |
61 | if (EVP_PKEY_encrypt_init(ctx) <= 0) | 61 | if (EVP_PKEY_encrypt_init(ctx) <= 0) |
62 | /* Error */ | 62 | /* Error */ |
63 | if (EVP_PKEY_CTX_set_rsa_padding(ctx, RSA_OAEP_PADDING) <= 0) | 63 | if (EVP_PKEY_CTX_set_rsa_padding(ctx, RSA_PKCS1_OAEP_PADDING) <= 0) |
64 | /* Error */ | 64 | /* Error */ |
65 | 65 | ||
66 | /* Determine buffer length */ | 66 | /* Determine buffer length */ |