pub struct DataPacketCryptor { /* private fields */ }Implementations§
Source§impl DataPacketCryptor
impl DataPacketCryptor
pub fn encrypt_data_packet( &self, participant_id: String, key_index: u32, data: Vec<u8>, ) -> Result<EncryptedPacket, Exception>
pub fn decrypt_data_packet( &self, participant_id: String, encrypted_packet: &EncryptedPacket, ) -> Result<Vec<u8>, Exception>
Trait Implementations§
Source§impl ExternType for DataPacketCryptor
impl ExternType for DataPacketCryptor
impl Send for DataPacketCryptor
impl Sync for DataPacketCryptor
Auto Trait Implementations§
impl !Freeze for DataPacketCryptor
impl RefUnwindSafe for DataPacketCryptor
impl !Unpin for DataPacketCryptor
impl UnwindSafe for DataPacketCryptor
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