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