diff options
| author | bcook <> | 2016-03-13 18:06:47 +0000 |
|---|---|---|
| committer | bcook <> | 2016-03-13 18:06:47 +0000 |
| commit | 4370e6e15c5a4bc87266e9d098990dc0c7c2932d (patch) | |
| tree | c3b7faf0aa4859bb450c2a8e9930bcddc95cd68f | |
| parent | 0ff254bfb6289f6163d5eb805b19dd60ad3499cc (diff) | |
| download | openbsd-4370e6e15c5a4bc87266e9d098990dc0c7c2932d.tar.gz openbsd-4370e6e15c5a4bc87266e9d098990dc0c7c2932d.tar.bz2 openbsd-4370e6e15c5a4bc87266e9d098990dc0c7c2932d.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 '')
| -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 */ |
