pub async fn decrypt<T, K, U>(
data: &mut T,
key: &K,
output: &mut U,
) -> Result<usize, Error>where
T: AsyncRead + Unpin + ?Sized,
K: PrivateKey + ?Sized,
U: AsyncWrite + Unpin + ?Sized,
<K as PublicKey>::KeyType: HasPrivate,Expand description
Decrypt a stream data into output with key. Return the number of bytes read.