Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide error messaging around AAD mismatch detection #135

Open
piotr-roslaniec opened this issue Jun 29, 2023 · 2 comments
Open

Provide error messaging around AAD mismatch detection #135

piotr-roslaniec opened this issue Jun 29, 2023 · 2 comments

Comments

@piotr-roslaniec
Copy link

  • ferveo API users have trouble debugging cases where CiphertextVerificationFailed is thrown in tpke
  • This error is thrown by check_ciphertext_validity(ciphertext, aad, g_inv)
  • Currently, we return ThresholdEncryptionError from the ferveo API, which is a catch-all for all tpke errors, including CiphertextVerificationFailed
  • Since g_inv is invariant (higher-level ferveo API provided a hardcoded default), this error is only thrown when ciphertext and aad are mismatched
  • Knowing this we can re-interpret the CiphertextVerificationFailed error and provide more concrete error messaging instead of ThresholdEncryptionError, for example: AADMismatchDuringCiphertextVerification
@arjunhassard
Copy link
Member

Is this done?

@piotr-roslaniec
Copy link
Author

@arjunhassard, no, but it's also not urgent IMHO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants