string encrypt(string s, function(int:string)|void r)
Pads the message s with rsa_pad type 2, signs it and returns the signature as a byte string.
Optional random function to be passed down to rsa_pad .