[−][src]Function cashweb_relay::encrypt_payload
pub fn encrypt_payload(shared_key: &[u8], plaintext: &[u8]) -> Vec<u8>
Encrypt a payload using a shared key.
Typically the shared key is HMAC(sdG, salt)
created using the create_shared_key
method.