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

Added lightweight implementation of libgcrypt. #1444

Merged
merged 1 commit into from
Feb 20, 2022
Merged

Conversation

vel21ripn
Copy link
Contributor

Implementation borrowed from the
https://github.com/ARMmbed/mbedtls.git project (v3.1.0)

Speed testing (Xeon(R) CPU E3-1230 V2 @ 3.30GHz):

gcrypt-gnu Test md 2897 ms enc 2777 ms dec 942 ms
gcrypt-int Test md 3668 ms enc 1312 ms dec 2836 ms
gcrypt-int-noaesni Test md 3652 ms enc 1916 ms dec 4458 ms

gcrypt-gnu-nonopt Test md 3763 ms enc 4978 ms dec 3999 ms

gcrypt-gnu-nonopt - libgcrypt compiled without hardware acceleration
--disable-padlock-support --disable-aesni-support
--disable-shaext-support --disable-pclmul-support
--disable-sse41-support --disable-drng-support
--disable-avx-support --disable-avx2-support
--disable-neon-support --disable-arm-crypto-support
--disable-ppc-crypto-support
--disable-amd64-as-feature-detection

@vel21ripn vel21ripn force-pushed the gcrypt2 branch 2 times, most recently from aadcb88 to 8d2d936 Compare February 15, 2022 17:47
Implementation borrowed from the
https://github.com/ARMmbed/mbedtls.git project (v3.1.0)

Speed testing (Xeon(R) CPU E3-1230 V2 @ 3.30GHz):

gcrypt-gnu         Test md   2897 ms enc   2777 ms dec    942 ms
gcrypt-int         Test md   3668 ms enc   1312 ms dec   2836 ms
gcrypt-int-noaesni Test md   3652 ms enc   1916 ms dec   4458 ms

gcrypt-gnu-nonopt  Test md   3763 ms enc   4978 ms dec   3999 ms

gcrypt-gnu-nonopt - libgcrypt compiled without hardware acceleration
  --disable-padlock-support --disable-aesni-support \
  --disable-shaext-support --disable-pclmul-support \
  --disable-sse41-support --disable-drng-support \
  --disable-avx-support --disable-avx2-support \
  --disable-neon-support --disable-arm-crypto-support \
  --disable-ppc-crypto-support
  --disable-amd64-as-feature-detection
@sonarcloud
Copy link

sonarcloud bot commented Feb 15, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@lucaderi
Copy link
Member

If the apache license will not taint the nDPI code I am happy to merge. @IvanNardi @lnslbrty What do you think?

@IvanNardi
Copy link
Collaborator

If the apache license will not taint the nDPI code I am happy to merge. @IvanNardi @lnslbrty What do you think?

No idea about the license issue, but the overall code seems fine to me; this feature might really be handy in some enviroments

@lucaderi
Copy link
Member

I propose to merge this code as you also confirmed.

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

Successfully merging this pull request may close these issues.

3 participants