[WIP] RSA Encrypt

Depends on #888. Will be rebased when it lands.