pub(crate) type LcPtr<T> = ManagedPointer<*mut T>;
Aliased Type§
struct LcPtr<T> {
pointer: *mut T,
}
Fields§
§pointer: *mut T
Implementations
Source§impl ManagedPointer<*mut EVP_PKEY>
impl ManagedPointer<*mut EVP_PKEY>
pub(crate) fn validate_as_ed25519(&self) -> Result<(), KeyRejected>
pub(crate) fn id(&self) -> i32
pub(crate) fn key_size_bytes(&self) -> usize
pub(crate) fn key_size_bits(&self) -> usize
pub(crate) fn signature_size_bytes(&self) -> usize
pub(crate) fn get_ec_key(&self) -> Result<ConstPointer<EC_KEY>, KeyRejected>
pub(crate) fn get_rsa(&self) -> Result<ConstPointer<RSA>, KeyRejected>
pub(crate) fn marshal_rfc5280_public_key(&self) -> Result<Vec<u8>, Unspecified>
pub(crate) fn parse_rfc5280_public_key( bytes: &[u8], evp_pkey_type: c_int, ) -> Result<Self, KeyRejected>
pub(crate) fn marshal_rfc5208_private_key( &self, version: Version, ) -> Result<Vec<u8>, Unspecified>
pub(crate) fn parse_rfc5208_private_key( bytes: &[u8], evp_pkey_type: c_int, ) -> Result<Self, KeyRejected>
pub(crate) fn create_EVP_PKEY_CTX( &self, ) -> Result<ManagedPointer<*mut EVP_PKEY_CTX>, ()>
pub(crate) fn marshal_raw_private_key(&self) -> Result<Vec<u8>, Unspecified>
pub(crate) fn marshal_raw_private_to_buffer( &self, buffer: &mut [u8], ) -> Result<usize, Unspecified>
pub(crate) fn marshal_raw_public_key(&self) -> Result<Vec<u8>, Unspecified>
pub(crate) fn marshal_raw_public_to_buffer( &self, buffer: &mut [u8], ) -> Result<usize, Unspecified>
pub(crate) fn parse_raw_private_key( bytes: &[u8], evp_pkey_type: c_int, ) -> Result<Self, KeyRejected>
pub(crate) fn parse_raw_public_key( bytes: &[u8], evp_pkey_type: c_int, ) -> Result<Self, KeyRejected>
pub(crate) fn sign<F>(
&self,
message: &[u8],
digest: Option<&'static Algorithm>,
padding_fn: Option<F>,
) -> Result<Box<[u8]>, Unspecified>where
F: EVP_PKEY_CTX_consumer,
pub(crate) fn verify<F>(
&self,
msg: &[u8],
digest: Option<&'static Algorithm>,
padding_fn: Option<F>,
signature: &[u8],
) -> Result<(), Unspecified>where
F: EVP_PKEY_CTX_consumer,
pub(crate) fn generate<F>(
pkey_type: c_int,
params_fn: Option<F>,
) -> Result<Self, Unspecified>where
F: EVP_PKEY_CTX_consumer,
Source§impl<P: Pointer> ManagedPointer<P>
impl<P: Pointer> ManagedPointer<P>
Source§impl<P: Pointer> ManagedPointer<P>
impl<P: Pointer> ManagedPointer<P>
pub fn as_const(&self) -> ConstPointer<P::T>
pub unsafe fn as_mut_unsafe(&self) -> MutPointer<P::T>
pub fn as_mut(&mut self) -> MutPointer<P::T>
Trait Implementations
Source§impl<P: Pointer> Drop for ManagedPointer<P>
impl<P: Pointer> Drop for ManagedPointer<P>
Source§impl<P: Pointer> From<DetachablePointer<P>> for ManagedPointer<P>
impl<P: Pointer> From<DetachablePointer<P>> for ManagedPointer<P>
Source§fn from(dptr: DetachablePointer<P>) -> Self
fn from(dptr: DetachablePointer<P>) -> Self
Converts to this type from the input type.