Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

gcrypt vs. openssl

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
NightMonkey
Guru
Guru
User avatar
Posts: 360
Joined: Fri Mar 21, 2003 10:07 am
Location: Philadelphia, PA

gcrypt vs. openssl

  • Quote

Post by NightMonkey » Thu Jun 01, 2017 6:29 pm

Howdy. There are a lot of packages which make use of these flags, many of which are installed on my system. Apparently, there is a new app-admin/sudo released which requires an either/or choice between these two flags. What is the Gentoo community consensus on which one is generally appropriate? Thanks in advance.

Code: Select all

!!! The ebuild selected to satisfy "app-admin/sudo" has unmet requirements.
- app-admin/sudo-1.8.20_p1::gentoo USE="gcrypt ldap nls offensive openssl pam se
ndmail (-selinux) -skey" ABI_X86="64"

  The following REQUIRED_USE flag constraints are unsatisfied:
    at-most-one-of ( gcrypt openssl )

  The above constraints are a subset of the following complete expression:
    pam? ( !skey ) skey? ( !pam ) at-most-one-of ( gcrypt openssl )

(dependency required by "net-print/fax4cups-1.29-r1::gentoo" [installed])
(dependency required by "@selected" [set])
(dependency required by "@world" [argument])
:D
Top
Sadako
Advocate
Advocate
User avatar
Posts: 3792
Joined: Thu Aug 05, 2004 5:50 pm
Location: sleeping in the bathtub
Contact:
Contact Sadako
Website

  • Quote

Post by Sadako » Thu Jun 01, 2017 9:28 pm

From /usr/portage/profiles/use.local.desc;

Code: Select all

app-admin/sudo:gcrypt - Use SHA2 from dev-libs/libgcrypt instead of sudo's internal SHA2.
app-admin/sudo:openssl - Use SHA2 from dev-libs/openssl instead of sudo's internal SHA2.
These were only added as options in 1.8.20, you can probably disable both with no ill effects, the "best" choice would prob be the fastest if you feel like running some benchmarks ( ;) ), but if it`s just for simple password hashing then real-world differences between the three would likely be negligable.

I'd go with gcrypt as potentially the most "secure" of the three, but I don't have much to base that on.
"You have to invite me in"
Top
NightMonkey
Guru
Guru
User avatar
Posts: 360
Joined: Fri Mar 21, 2003 10:07 am
Location: Philadelphia, PA

  • Quote

Post by NightMonkey » Thu Jun 01, 2017 9:32 pm

Sadly... when I flip off openssl:

Code: Select all

!!! Problem resolving dependencies for dev-db/mariadb from @selected
... done!

!!! The ebuild selected to satisfy "dev-db/mariadb" has unmet requirements.
- dev-db/mariadb-10.0.30::gentoo USE="odbc pam server systemtap xml -bindist -debug -embedded -extraengine -jdbc -jemalloc -latin1 (-libressl) -openssl -oqgraph -perl -profiling (-selinux) -sphinx -static -static-libs -tcmalloc -test -tokudb -yassl" ABI_X86="32 64 -x32"

  The following REQUIRED_USE flag constraints are unsatisfied:
    exactly-one-of ( yassl openssl libressl )

  The above constraints are a subset of the following complete expression:
    server? ( tokudb? ( jemalloc ) ) static? ( !pam ) jdbc? ( extraengine server !static ) exactly-one-of ( yassl openssl libressl ) !server? ( !extraengine !embedded ) at-most-one-of ( tcmalloc jemalloc ) static? ( !libressl !openssl yassl )

(dependency required by "@selected" [set])
(dependency required by "@world" [argument])
I think this is gonna get ugly. :/
:D
Top
Sadako
Advocate
Advocate
User avatar
Posts: 3792
Joined: Thu Aug 05, 2004 5:50 pm
Location: sleeping in the bathtub
Contact:
Contact Sadako
Website

  • Quote

Post by Sadako » Thu Jun 01, 2017 9:40 pm

Uhm, did you disable the openssl USE flag globally?

Yeah, don't do that. :P

You'll get a ton of conflicts just like that if you do, and what I said about disabling those flags having no ill effects was about sudo specifically, other packages would lose some real and potentially important functionality without ssl.
"You have to invite me in"
Top
NightMonkey
Guru
Guru
User avatar
Posts: 360
Joined: Fri Mar 21, 2003 10:07 am
Location: Philadelphia, PA

  • Quote

Post by NightMonkey » Thu Jun 01, 2017 9:46 pm

Sadako wrote:Uhm, did you disable the openssl USE flag globally?

Yeah, don't do that. :P

You'll get a ton of conflicts just like that if you do, and what I said about disabling those flags having no ill effects was about sudo specifically, other packages would lose some real and potentially important functionality without ssl.
I just really hate to make more swiss cheese out of Portage with global USE flag exceptions for base packages. And I likely make my system more brittle that way.

Am I the only one to see this problem atm? :/
:D
Top
pigeon768
l33t
l33t
Posts: 683
Joined: Mon Jan 02, 2006 1:13 pm

  • Quote

Post by pigeon768 » Fri Jun 02, 2017 9:19 pm

Disabling the openssl USE flag globally is a really really really bad idea. I guarantee you that you're making your system more brittle by disabling it globally.

You should leave both openssl and gcrypt out of your USE= line in /etc/portage/make.conf. It's fine to leave them at their default values. sudo uses neither gcrypt nor openssl by default, and that's fine.

Usually when a package requires exactly-one-of or at-most-one-of a given list of packages, the package maintainer's recommendation will be selected by default, allowing you to override the default if you wish. It's generally advisable to have as few global flags set in make.conf as possible.
Top
toralf
Developer
Developer
User avatar
Posts: 3944
Joined: Sun Feb 01, 2004 2:58 pm
Location: Hamburg
Contact:
Contact toralf
Website

  • Quote

Post by toralf » Fri Jun 02, 2017 9:24 pm

pigeon768 wrote:Disabling the openssl USE flag globally is a really really really bad idea.
Nope - as long as you have libressl in place - it works fine - at least at a server.
At a desktop there are however more packages which don't compile with libressl.
Top
Leio
Developer
Developer
User avatar
Posts: 494
Joined: Thu Feb 27, 2003 3:41 pm
Location: Estonia

  • Quote

Post by Leio » Fri Jun 02, 2017 9:30 pm

Disabling USE=ssl globally sounds like a bad idea. Enabling openssl globally might be a bad idea too - it's not even a global USE flag, so doesn't have a concrete meaning across the board.
Though generally it's used to select what library to use for hash functions or such. Also the case with sudo - if neither is given, an internal implementation of SHA2 is used, if gcrypt is given, then the one in libgcrypt is used, if USE=openssl is given, then from openssl. libressl support there is currently missing.
Usually libressl is chosen by USE=libressl and openssl by the lack of that; for real SSL purposes anyway, as opposed to just hash functions.
The benefit of having one of them on sudo is to not use the internal SHA2 code that might not be so security audited as those in openssl or libgcrypt, I suppose.

Because I don't like at-most-one-of and exactly-one-of things there that give such deptree errors when more things are there, I had already filed [bug=620362]bug 620362[/bug] earlier to consider changing that. But as neither is global flags, I won't be disappointed if the maintainers deem it fine as-is.
GNOME team lead; GStreamer; MIPS/ARM64
Top
Post Reply

8 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy