pub fn encrypt_hashed(
data: &[u8],
key: &Key,
random_bytes: &[u8; 224],
) -> Vec<u8> ⓘExpand description
RSA-encrypt data using the MTProto RSA-PAD scheme.
random_bytes must be exactly 224 bytes of secure random data.
data must be ≤ 144 bytes.