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

libroach: ensure CryptoPP is built with hardware detection enabled #26383

Closed
mberhault opened this issue Jun 4, 2018 · 0 comments
Closed

libroach: ensure CryptoPP is built with hardware detection enabled #26383

mberhault opened this issue Jun 4, 2018 · 0 comments
Assignees

Comments

@mberhault
Copy link
Contributor

As seen in #26261 the release-linux-gnu build seems to have hardware detection turned off, so CryptoPP doesn't even try to see if the AES instruction set is supported. We should make sure we build it correctly.

@mberhault mberhault self-assigned this Jun 4, 2018
mberhault pushed a commit to mberhault/cockroach that referenced this issue Jun 13, 2018
Fixes cockroachdb#26383

Set appropriate `-m` flags for cryptopp to enable AES runtime detection
checks (without those, it does not even try).

Add a `UsesAESNI()` function in CryptoPP which returns true iff:
* AES-NI runtime detection is compiled in
* AES-NI instruction is available

Add a warning to stdout (normal logging requires `vmodule=rocksdb=3`) if
encryption is requested but AES-NI is not available.

Add a test to make sure our builds always have AES-NI enabled.

Release note (core): build release binaries with runtime AES detection.
craig bot pushed a commit that referenced this issue Jun 14, 2018
26649: libroach: make CryptoPP build with runtime AES-NI detection. r=mberhault a=mberhault

Fixes #26383

Set appropriate `-m` flags for cryptopp to enable AES runtime detection
checks (without those, it does not even try).

Add a `UsesAESNI()` function in CryptoPP which returns true iff:
* AES-NI runtime detection is compiled in
* AES-NI instruction is available

Add a warning to stdout (normal logging requires `vmodule=rocksdb=3`) if
encryption is requested but AES-NI is not available.

Add a test to make sure our builds always have AES-NI enabled.

Release note (core): build release binaries with runtime AES detection.

Co-authored-by: marc <[email protected]>
@craig craig bot closed this as completed in #26649 Jun 14, 2018
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