Update Simulcrypt ECMg
This commit is contained in:
@@ -25,9 +25,10 @@ class SignerPublicKeyImpl : public SignerPublicKey {
|
||||
SignerPublicKeyImpl(const SignerPublicKeyImpl&) = delete;
|
||||
SignerPublicKeyImpl& operator=(const SignerPublicKeyImpl&) = delete;
|
||||
|
||||
bool VerifySignature(const std::string& message,
|
||||
bool VerifySignature(const std::string& message, HashAlgorithm hash_algorithm,
|
||||
const std::string& signature) const override {
|
||||
if (!signer_public_key_->VerifySignature(message, signature)) {
|
||||
if (!signer_public_key_->VerifySignature(message, hash_algorithm,
|
||||
signature)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user