pub struct HpkeKey(/* private fields */);Implementations§
Source§impl HpkeKey
impl HpkeKey
Sourcepub fn dhkem_p256_sha256(pkey: &[u8]) -> Result<HpkeKey, ErrorStack>
pub fn dhkem_p256_sha256(pkey: &[u8]) -> Result<HpkeKey, ErrorStack>
Allocates and initializes a key with the EVP_HPKE_KEY type using the
EVP_hpke_x25519_hkdf_sha256 KEM algorithm.
Trait Implementations§
Source§impl AsMut<HpkeKeyRef> for HpkeKey
impl AsMut<HpkeKeyRef> for HpkeKey
Source§fn as_mut(&mut self) -> &mut HpkeKeyRef
fn as_mut(&mut self) -> &mut HpkeKeyRef
Converts this type into a mutable reference of the (usually inferred) input type.
Source§impl AsRef<HpkeKeyRef> for HpkeKey
impl AsRef<HpkeKeyRef> for HpkeKey
Source§fn as_ref(&self) -> &HpkeKeyRef
fn as_ref(&self) -> &HpkeKeyRef
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl Borrow<HpkeKeyRef> for HpkeKey
impl Borrow<HpkeKeyRef> for HpkeKey
Source§fn borrow(&self) -> &HpkeKeyRef
fn borrow(&self) -> &HpkeKeyRef
Immutably borrows from an owned value. Read more
Source§impl BorrowMut<HpkeKeyRef> for HpkeKey
impl BorrowMut<HpkeKeyRef> for HpkeKey
Source§fn borrow_mut(&mut self) -> &mut HpkeKeyRef
fn borrow_mut(&mut self) -> &mut HpkeKeyRef
Mutably borrows from an owned value. Read more
Source§impl Deref for HpkeKey
impl Deref for HpkeKey
Source§type Target = HpkeKeyRef
type Target = HpkeKeyRef
The resulting type after dereferencing.
Source§fn deref(&self) -> &HpkeKeyRef
fn deref(&self) -> &HpkeKeyRef
Dereferences the value.
Source§impl DerefMut for HpkeKey
impl DerefMut for HpkeKey
Source§fn deref_mut(&mut self) -> &mut HpkeKeyRef
fn deref_mut(&mut self) -> &mut HpkeKeyRef
Mutably dereferences the value.
Source§impl ForeignType for HpkeKey
impl ForeignType for HpkeKey
Source§type CType = evp_hpke_key_st
type CType = evp_hpke_key_st
The raw C type.
Source§type Ref = HpkeKeyRef
type Ref = HpkeKeyRef
The type representing a reference to this type.
Source§unsafe fn from_ptr(ptr: *mut EVP_HPKE_KEY) -> HpkeKey
unsafe fn from_ptr(ptr: *mut EVP_HPKE_KEY) -> HpkeKey
Constructs an instance of this type from its raw type. Read more
Source§fn as_ptr(&self) -> *mut EVP_HPKE_KEY
fn as_ptr(&self) -> *mut EVP_HPKE_KEY
Returns a raw pointer to the wrapped value.
impl Send for HpkeKey
impl Sync for HpkeKey
Auto Trait Implementations§
impl Freeze for HpkeKey
impl RefUnwindSafe for HpkeKey
impl Unpin for HpkeKey
impl UnsafeUnpin for HpkeKey
impl UnwindSafe for HpkeKey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more