Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 546226

Summary: app-crypt/mcrypt-2.6.8-r2 fails with enigmatic error message
Product: Gentoo Linux Reporter: Yanestra <Yanestra>
Component: Current packagesAssignee: Robin Johnson <robbat2>
Status: RESOLVED INVALID    
Severity: normal CC: alonbl, crypto+disabled
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: output of emerge --info
output of mcrypt --list

Description Yanestra 2015-04-10 22:18:44 UTC
Created attachment 401004 [details]
output of emerge --info

When using an encryption algorithm (apparently it does not matter, which one), mcrypt refuses and wants to use a different one because the original one be "not available in OpenPGP encryption".

I did not set nor want OpenPGP encryption.

Then, mcrypt chooses an algorithm that is NOT in the list of available algorithms (mcrypt --list). This obviously must fail.


$ mcrypt -b -a rijndael-192 -m cbc testfile 
Enter the passphrase (maximum of 512 characters)
Please use a combination of upper and lower case letters and numbers.
Enter passphrase: 
Enter passphrase: 

Algorithm rijndael-192 is not available in OpenPGP encryption.
cast-128 will be used instead.
Could not open module
Comment 1 Yanestra 2015-04-10 22:19:56 UTC
Created attachment 401006 [details]
output of mcrypt --list
Comment 2 Yanestra 2015-04-19 01:58:35 UTC
Can someone please verify this?
Comment 3 Alon Bar-Lev (RETIRED) gentoo-dev 2015-04-19 18:30:01 UTC
please try adding --no-openpgp
Comment 4 Yanestra 2015-04-21 12:43:36 UTC
--no-openpgp makes mcrypt work. A pity this option is not documented (at least I can't find it at the first glance).
Comment 5 Alon Bar-Lev (RETIRED) gentoo-dev 2015-04-21 12:45:32 UTC
Good.

You can suggest upstream to document/improve error message, although error message makes sense.
Comment 6 Yanestra 2015-04-22 03:20:13 UTC
May I suggest at least compiling in the required encrypted schemes for the default setting?

It's no use pointing to upstream and keeping a dysfunctional tool.

If you close this again, pls use VERIFIED/UPSTREAM.

Thx.
Comment 7 Yanestra 2015-04-22 06:34:07 UTC
Lazy sunofabitch