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

Consider exposing AesGcm::compute_tag #586

Closed
bryceberger opened this issue Mar 21, 2024 · 3 comments
Closed

Consider exposing AesGcm::compute_tag #586

bryceberger opened this issue Mar 21, 2024 · 3 comments

Comments

@bryceberger
Copy link

(and, to make it usable, AesGcm::init_ctr())

It is useful to be able to generate a hash without caring about the encrypted text, and it would be nice to just use the implementations in the aes_gcm crate directly.

@newpavlov
Copy link
Member

Do you mean GMAC? It's better to introduce a separate crate for it in the MACs repository.

@tarcieri
Copy link
Member

GMAC is an option, although you can also get similar properties out of AES-GCM itself by using an empty plaintext/ciphertext and passing only the additional associated data to be authenticated

@newpavlov
Copy link
Member

Going to close this in favor of RustCrypto/MACs#1

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

3 participants