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