verify(self,
msg_hash,
signature)
|
|
Verify that a certain PKCS#1 v1.5 signature is valid.
This method checks if the message really originates from someone
that holds the RSA private key.
really signed the message.
This function is named RSASSA-PKCS1-V1_5-VERIFY;
it is specified in section 8.2.2 of RFC3447.
- Parameters:
msg_hash (hash object) - The hash that was carried out over the message. This is an object
belonging to the Cryptodome.Hash module.
signature (byte string) - The signature that needs to be validated.
- Raises:
ValueError - if the signature is not valid.
|