Struct onionsalt::OpenedOnionBox
[−]
[src]
pub struct OpenedOnionBox { // some fields omitted }
Methods
impl OpenedOnionBox
[src]
fn packet(&self) -> [u8; 1024]
The packet to be forwarded onwards to the next router.
fn routing(&self) -> [u8; 24]
The routing information for us.
fn key(&self) -> PublicKey
The payload public key of the sender (if we are the recipient).
fn payload(&self, response_key: &KeyPair) -> Result<[u8; 544], NaClError>
Attempt to decrypt and authenticate the payload.
fn respond(&mut self, response_key: &KeyPair, response: &[u8; 544])
Set response
to the response payload information. This is
only likely to work correctly if the sender intended to ask us
for a response.