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

Symmetric support #8

Merged
merged 15 commits into from
Oct 3, 2018
Merged

Symmetric support #8

merged 15 commits into from
Oct 3, 2018

Conversation

optnfast
Copy link
Contributor

@optnfast optnfast commented Aug 7, 2018

Support for AES/DES3, CBC, GCM, HMAC.

symmetric.go Show resolved Hide resolved
hmac.go Show resolved Hide resolved
Richard Kettlewell added 14 commits October 3, 2018 10:37
For testing with SoftHSM2 you need at least version 2.4.0, i.e. at least
Debian buster/sid or Ubuntu cosmic (or BYO).

This commit also updates our dependency on github.com/miekg/pkcs11 to
one with GCM support.

re #6
You can now have a crypto11.BlockModeCloser, and must call Close(),
or a cipher.BlockMode, but it has a finalizer.

re #6
This is rather an abuse of the cipher.AEAD interface as the name
and description both indicate it provides authenticated encryption,
which is not the case for CBC. The risk of using it in a context
where authentication is required is mitigated only by documentation.

re #6
@optnfast
Copy link
Contributor Author

optnfast commented Oct 3, 2018

Ugh. Travis's softhsm2 is too old. Hang on...

@optnfast optnfast merged commit f2a4754 into master Oct 3, 2018
@optnfast optnfast deleted the symmetric branch October 3, 2018 11:44
@dmjones dmjones added has issue Used to exclude PRs from release notes and removed bug enhancement labels Mar 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
has issue Used to exclude PRs from release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants