I am not able to find much information how how to verify RSA signatures.
I have three values.
Message = "Launch a missile."
public key:
e = 010001 (this hex value equals to decimal 65537)
n = AE1CD4DC432798D933779FBD46C6E1247F0CF1233595113AA51B450F18116115
I want to verify if the signature below is the correct signature.
S = 643D6F34902D9C7EC90CB0B2BCA36C47FA37165C0005CAB026C0542CBDB6802F
The only formula I was able to find is
$S^e = \operatorname{Pad}(\operatorname{Hash}(M))\pmod N$
Is this the correct verification algorithm? If so, I am unclear about the Pad() and Hash() functions. How can I calculate the hash and pad functions?