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

Investigate AES GCM Mode #5

Open
wbond opened this issue Oct 27, 2015 · 5 comments
Open

Investigate AES GCM Mode #5

wbond opened this issue Oct 27, 2015 · 5 comments

Comments

@wbond
Copy link
Owner

wbond commented Oct 27, 2015

OpenSSL 1.0.x and CNG support AES GCM mode.

While not publicly documented on the Apple developer documentation, it appears that AES GCM is available via http://www.opensource.apple.com/source/CommonCrypto/CommonCrypto-60061/lib/CommonCryptorGCM.c. We need to figure out if these functions are exposed in /usr/lib/system/libcommonCrypto.dylib and for what versions of OS X they are available.

Unfortunately OpenSSL 0.9.8 does not support AES GCM, so there will never be a way to support it there. However, most Linux distros are on OpenSSL 1.0.x now, and OS X has its own native libraries.

@wbond
Copy link
Owner Author

wbond commented Nov 10, 2015

0.9.8 is EOL in just over a month, so that should not be a practical factor.

@wbond
Copy link
Owner Author

wbond commented Nov 13, 2015

OS X 10.7 does not support GCM mode. OS X 10.7 last received a security update in September 2014 (https://support.apple.com/en-us/HT201393). As of now, it seems to account for about 5% of internet traffic (https://www.gosquared.com/global/mac/el-capitan/#launch).

While ideally 10.7 would be supported, since the encryption mode is unavailable via CommonCrypto or OpenSSL 0.9.8, there would be no way to provide it.

@wbond
Copy link
Owner Author

wbond commented Jan 19, 2017

To update this with recent developments: GCM mode should be added, however the oldest version of each platform will be unsupported:

  • The winlegacy backend (aka Windows XP)
  • OS X 10.7
  • OpenSSL 0.9.8

Generally, AES GCM isn't required for any of the crypto protocols I've been working with. For developers who do require it, they just won't be able to support users on the oldest of the supported operating systems.

Currently none of Windows XP, OS X 10.7 or OpenSSL 0.9.8 are supported by any of the respective organizations, so I don't believe this will be much of an issue.

@frennkie
Copy link
Contributor

It would be great if AES GCM could be supported. RFC 8551 defines AES-128 GCM and AES-256 GCM as a MUST in section 2.7.

@wbond
Copy link
Owner Author

wbond commented Mar 28, 2020

I don’t currently have a need for GCM, nor time to work on it, but would be happy to review a PR if someone spent time working on it.

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

No branches or pull requests

2 participants