Struct onionsalt::OnionBox
[−]
[src]
pub struct OnionBox { // some fields omitted }
Methods
impl OnionBox
[src]
fn packet(&self) -> [u8; 1024]
The encrypted packet, to be sent to the first receiver.
fn read_return(&self, payload_key: KeyPair, msg: &[u8; 1024]) -> Result<[u8; 544], NaClError>
This function accepts a packet that has been sent to us, and decrypts it without authentication if it is the response to our original message.