Bug 432955 - ecryptfs_cipher option doesn't work for des3_ede
ecryptfs_cipher option doesn't work for des3_ede
Status: CLOSED NOTABUG
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: ecryptfs-utils (Show other bugs)
5.2
All Linux
low Severity low
: rc
: ---
Assigned To: Karsten Hopp
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2008-02-15 07:58 EST by Jan Tluka
Modified: 2008-02-18 16:09 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-02-18 16:09:00 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Jan Tluka 2008-02-15 07:58:40 EST
Description of problem:
When I try to mount ecryptfs filesystem with option 'ecryptfs_cipher=des3_ede' i
get an error and filesystem is not mounted.

Version-Release number of selected component (if applicable):
ecryptfs-utils-38-1.el5
linux kernel 2.6.18-79.el5


How reproducible:
100% running mount.ecryptfs with appropriate options


Steps to Reproduce:
1.
as root run following command:
mount.ecryptfs .secret/ .secret/ -o
key=passphrase:passwd=secret,ecryptfs_key_bytes=16,ecryptfs_cipher=des3_ede,verbosity=0


Actual results:
- mount.ecryptfs output:
Attempting to mount with the following options:
  ecryptfs_cipher=des3_ede
  ecryptfs_sig=7a1719eb53966dd1
Error mounting eCryptfs; rc = [-22]; strerr = [Invalid argument]. Check your
system logs; visit <http://ecryptfs.sourceforge.net/ecryptfs-faq.html>.

- dmesg output:
ecryptfs_parse_options: eCryptfs: unrecognized option 'verbosity=0'
Error attempting to set key of size [16] for cipher [des3_ede]; rc = [-22]
Error attempting to initialize key TFM cipher with name = [des3_ede]; rc = [-22]
Error attempting to initialize cipher with name = [des3_ede] and key size =
[16]; rc = [-22]
Error parsing options; rc = [-22]


Expected results:
Filesystem is mounted with no error.


Additional info:
Mount will succeed if I use 'cipher=des3_ede' instead of 'ecryptfs_cipher=des3_ede'.
I don't see this error when mounting with other ciphers.
Comment 1 Michael Halcrow 2008-02-18 16:09:00 EST
ecryptfs_key_bytes=16 is not valid with des3_ede; des3_ede requires a 24 byte
key. The cipher failing to initialize with a key size of 16 is expected behavior.

Mike

Note You need to log in before you can comment on or make changes to this bug.