Unverified Commit 8ae5dcf4 authored by Alex Gaynor's avatar Alex Gaynor Committed by GitHub
Browse files

Expose PkeyCtx::set_rsa_oaep_md on BoringSSL

parent 97a91b78
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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 {
@@ -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();