Add auxiliary methods for rsa