Skip to content

Commit 875f91d

Browse files
authored
Merge pull request #2372 from frncs-rss/set_rsa_oaep_md
make set_rsa_oaep_md visible to boringssl config
2 parents 1a16077 + 77de94f commit 875f91d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

openssl/src/encrypt.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ impl<'a> Encrypter<'a> {
148148
/// This corresponds to [`EVP_PKEY_CTX_set_rsa_oaep_md`].
149149
///
150150
/// [`EVP_PKEY_CTX_set_rsa_oaep_md`]: https://www.openssl.org/docs/manmaster/man3/EVP_PKEY_CTX_set_rsa_oaep_md.html
151-
#[cfg(any(ossl102, libressl310))]
151+
#[cfg(any(ossl102, libressl310, boringssl))]
152152
pub fn set_rsa_oaep_md(&mut self, md: MessageDigest) -> Result<(), ErrorStack> {
153153
unsafe {
154154
cvt(ffi::EVP_PKEY_CTX_set_rsa_oaep_md(
@@ -352,7 +352,7 @@ impl<'a> Decrypter<'a> {
352352
/// This corresponds to [`EVP_PKEY_CTX_set_rsa_oaep_md`].
353353
///
354354
/// [`EVP_PKEY_CTX_set_rsa_oaep_md`]: https://www.openssl.org/docs/manmaster/man3/EVP_PKEY_CTX_set_rsa_oaep_md.html
355-
#[cfg(any(ossl102, libressl310))]
355+
#[cfg(any(ossl102, libressl310, boringssl))]
356356
pub fn set_rsa_oaep_md(&mut self, md: MessageDigest) -> Result<(), ErrorStack> {
357357
unsafe {
358358
cvt(ffi::EVP_PKEY_CTX_set_rsa_oaep_md(
@@ -478,7 +478,7 @@ mod test {
478478
use hex::FromHex;
479479

480480
use crate::encrypt::{Decrypter, Encrypter};
481-
#[cfg(any(ossl102, libressl310))]
481+
#[cfg(any(ossl102, libressl310, boringssl))]
482482
use crate::hash::MessageDigest;
483483
use crate::pkey::PKey;
484484
use crate::rsa::{Padding, Rsa};
@@ -513,7 +513,7 @@ mod test {
513513
}
514514

515515
#[test]
516-
#[cfg(any(ossl102, libressl310))]
516+
#[cfg(any(ossl102, libressl310, boringssl))]
517517
fn rsa_encrypt_decrypt_with_sha256() {
518518
let key = include_bytes!("../test/rsa.pem");
519519
let private_key = Rsa::private_key_from_pem(key).unwrap();

0 commit comments

Comments
 (0)