Function loco_protocol::secure::codec::encode::to_encrypted_packet[][src]

pub fn to_encrypted_packet(
    crypto: &CryptoStore,
    data: &[u8]
) -> Result<Vec<u8>, SecureError>
Expand description

Encrypt data using provided CryptoStore and make it packet