Note that secure padding schemes such as RSA-PSS are as essential for the security of message signing as they are for message encryption , and that the same key should never be used for both encryption and signing purposes . Secure padding schemes such as RSA-PSS are as essential for the security of message signing as they are for message encryption . The same key should never be used for both encryption and signing .