We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 78af717 commit 4316e03Copy full SHA for 4316e03
aws-lc-rs/src/evp_pkey.rs
@@ -491,7 +491,7 @@ impl LcPtr<EVP_PKEY> {
491
}
492
493
pub(crate) fn agree(&self, peer_key: &Self) -> Result<Box<[u8]>, Unspecified> {
494
- let mut pctx = LcPtr::new(unsafe { EVP_PKEY_CTX_new(*self.as_mut_unsafe(), null_mut()) })?;
+ let mut pctx = self.create_EVP_PKEY_CTX()?;
495
496
if 1 != unsafe { EVP_PKEY_derive_init(*pctx.as_mut()) } {
497
return Err(Unspecified);
0 commit comments