Election-Tech-Initiative / electionguard-cpp

A C++ implementation of ElectionGuard specification focused on encryption components.
https://www.electionguard.vote/
MIT License
23 stars 26 forks source link

🐞 EncryptionMediator should verify inputs #304

Closed SteveMaier-IRT closed 2 years ago

SteveMaier-IRT commented 2 years ago

Is there an existing issue for this?

Current Behavior

EncryptionMediator does not check that the context that is used was setup to be used with a particular manifest or with a different manifest.

Expected Behavior

If the context contains a manifest_hash value that is different than the manifest_hash in the manifest, then it should throw an error and not be allowed to continue.

Steps To Reproduce

No response

Environment

- OS:

Anything else?

No response