verify_signature(key, hash, signature)
This new command verifies the signature which is returned by gernerate_signature command. For this it uses the public key as it is returned by get_key_info and the hashed message in bytes.
If the verification was sucessful then the function returns a boolean which is True. If not, a InvalidSignature exception gets passed by the cryptography wrapper.
verify_signature(key, hash, signature)
This new command verifies the signature which is returned bygernerate_signature
command. For this it uses the public key as it is returned byget_key_info
and the hashed message in bytes.If the verification was sucessful then the function returns a boolean which is True. If not, a
InvalidSignature
exception gets passed by the cryptography wrapper.