@@ -148,7 +148,7 @@ impl<'a> Encrypter<'a> {
148
148
/// This corresponds to [`EVP_PKEY_CTX_set_rsa_oaep_md`].
149
149
///
150
150
/// [`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 ) ) ]
152
152
pub fn set_rsa_oaep_md ( & mut self , md : MessageDigest ) -> Result < ( ) , ErrorStack > {
153
153
unsafe {
154
154
cvt ( ffi:: EVP_PKEY_CTX_set_rsa_oaep_md (
@@ -352,7 +352,7 @@ impl<'a> Decrypter<'a> {
352
352
/// This corresponds to [`EVP_PKEY_CTX_set_rsa_oaep_md`].
353
353
///
354
354
/// [`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 ) ) ]
356
356
pub fn set_rsa_oaep_md ( & mut self , md : MessageDigest ) -> Result < ( ) , ErrorStack > {
357
357
unsafe {
358
358
cvt ( ffi:: EVP_PKEY_CTX_set_rsa_oaep_md (
@@ -478,7 +478,7 @@ mod test {
478
478
use hex:: FromHex ;
479
479
480
480
use crate :: encrypt:: { Decrypter , Encrypter } ;
481
- #[ cfg( any( ossl102, libressl310) ) ]
481
+ #[ cfg( any( ossl102, libressl310, boringssl ) ) ]
482
482
use crate :: hash:: MessageDigest ;
483
483
use crate :: pkey:: PKey ;
484
484
use crate :: rsa:: { Padding , Rsa } ;
@@ -513,7 +513,7 @@ mod test {
513
513
}
514
514
515
515
#[ test]
516
- #[ cfg( any( ossl102, libressl310) ) ]
516
+ #[ cfg( any( ossl102, libressl310, boringssl ) ) ]
517
517
fn rsa_encrypt_decrypt_with_sha256 ( ) {
518
518
let key = include_bytes ! ( "../test/rsa.pem" ) ;
519
519
let private_key = Rsa :: private_key_from_pem ( key) . unwrap ( ) ;
0 commit comments