Skip to content

Commit

Permalink
Merge pull request #1987 from sfackler/alex-patch-1
Browse files Browse the repository at this point in the history
Expose PkeyCtx::set_rsa_oaep_md on BoringSSL
  • Loading branch information
sfackler authored Jun 29, 2023
2 parents 97a91b7 + 8ae5dcf commit 994e5ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openssl/src/pkey_ctx.rs
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ impl<T> PkeyCtxRef<T> {
///
/// This is only useful for RSA keys.
#[corresponds(EVP_PKEY_CTX_set_rsa_oaep_md)]
#[cfg(any(ossl102, libressl310))]
#[cfg(any(ossl102, libressl310, boringssl))]
#[inline]
pub fn set_rsa_oaep_md(&mut self, md: &MdRef) -> Result<(), ErrorStack> {
unsafe {
Expand Down Expand Up @@ -753,7 +753,7 @@ mod test {
}

#[test]
#[cfg(any(ossl102, libressl310))]
#[cfg(any(ossl102, libressl310, boringssl))]
fn rsa_oaep() {
let key = include_bytes!("../test/rsa.pem");
let rsa = Rsa::private_key_from_pem(key).unwrap();
Expand Down

0 comments on commit 994e5ff

Please sign in to comment.