simplify rsa decoding