Struct s2n_quic_tls::callbacks::PrivateKeyOperation
source · pub struct PrivateKeyOperation { /* private fields */ }
Implementations§
source§impl PrivateKeyOperation
impl PrivateKeyOperation
sourcepub fn kind(&self) -> Result<&OperationType, Error>
pub fn kind(&self) -> Result<&OperationType, Error>
Do we need to sign or decrypt with the private key?
sourcepub fn input_size(&self) -> Result<usize, Error>
pub fn input_size(&self) -> Result<usize, Error>
The size of the slice returned by [input()
]
sourcepub fn input(&self, buf: &mut [u8]) -> Result<(), Error>
pub fn input(&self, buf: &mut [u8]) -> Result<(), Error>
Provides the input for the operation.
If this is an OperationType::Sign
operation, then this input has
already been hashed and is the resultant digest.
sourcepub fn set_output(self, conn: &mut Connection, buf: &[u8]) -> Result<(), Error>
pub fn set_output(self, conn: &mut Connection, buf: &[u8]) -> Result<(), Error>
Sets the output of the operation
Trait Implementations§
source§impl Drop for PrivateKeyOperation
impl Drop for PrivateKeyOperation
impl Send for PrivateKeyOperation
§Safety
Safety: s2n_async_pkey_op objects can be sent across threads
impl Sync for PrivateKeyOperation
§Safety
Safety: All C methods that mutate the s2n_async_pkey_op are wrapped in Rust methods that require a mutable reference.
Auto Trait Implementations§
impl Freeze for PrivateKeyOperation
impl RefUnwindSafe for PrivateKeyOperation
impl Unpin for PrivateKeyOperation
impl UnwindSafe for PrivateKeyOperation
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