Function prio::encrypt::encrypt_share [−][src]
pub fn encrypt_share(
share: &[u8],
key: &PublicKey
) -> Result<Vec<u8>, EncryptError>
Expand description
Encrypt a bytestring using the public key
This uses ECIES with X9.63 key derivation function and AES-GCM for the symmetic encryption and MAC.