rsa_public_encrypt_blocks

Function rsa_public_encrypt_blocks 

Source
pub fn rsa_public_encrypt_blocks(
    pem_private_key: &str,
    data: &[u8],
) -> Result<Vec<u8>, FutuError>
Expand description

使用 RSA 公钥分块加密(支持任意长度数据)

RSA 1024-bit: 每块最多 117 字节明文 → 128 字节密文 RSA 2048-bit: 每块最多 245 字节明文 → 256 字节密文 对应 C++ FutuOpenD 的 RSA 分块加密逻辑