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

AES-GCM support #12

Open
spencescu opened this issue Feb 19, 2020 · 3 comments
Open

AES-GCM support #12

spencescu opened this issue Feb 19, 2020 · 3 comments

Comments

@spencescu
Copy link

We are trying to implement AES-GCM via this ruby gem and we are running into issues. Is this algorithm supported?

@larskanis
Copy link
Owner

Yes the gem supports AES-GCM. But your PKCS11 library must support it as well. You need to use PKCS11::CKM_AES_GCM and CK_GCM_PARAMS.

If your library doesn't support GCM, then it's still possible to implement it based on AES-CBC. I did this for an HSM supporting only older algorithms. If it helps, I can provide the code.

@larskanis
Copy link
Owner

@spencescu Is this issue solved?

@spencescu
Copy link
Author

spencescu commented Mar 10, 2020 via email

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