~ecryptfs/ecryptfs/trunk

  • Committer: Michal Hlavinka
  • Date: 2009-05-13 10:06:56 UTC
  • Revision ID: mhlavink@redhat.com-20090513100656-0hjbaxhk6ycwz559
refuse mounting with too small rsa key (key_mod_openssl)

We can't use small rsa keys. FEK is encrypted with RSA key.
RSA key allows encryption only rsa_key_bitsize/8. We use
41 B for padding and 3 B are used in message from kernel.
So we can encrypt only rsa_key_bitsize/8-41-3 B. But when
using 512 b rsa key, it gives us only 20 B, so we can't use
ecryptfs_key_bytes > 20. Don't allow mounting with
these values. See Red Hat bug #499175.

Signed-off-by: Michal Hlavinka <mhlavink@redhat.com>
Filename Latest Rev Last Changed Committer Comment Size
..
debian 309 16 years ago Dustin Kirkland debian/ubuntu packaging Initial checkin of the De Diff
doc 303 16 years ago Dustin Kirkland move the modprobe to a better place Move the modp Diff
m4 303 16 years ago Dustin Kirkland move the modprobe to a better place Move the modp Diff
rpm 303 16 years ago Dustin Kirkland move the modprobe to a better place Move the modp Diff
scripts 303 16 years ago Dustin Kirkland move the modprobe to a better place Move the modp Diff
src 303 16 years ago Dustin Kirkland move the modprobe to a better place Move the modp Diff
AUTHORS 303 16 years ago Dustin Kirkland move the modprobe to a better place Move the modp 535 bytes Diff Download File
ChangeLog 378 16 years ago Dustin Kirkland Changelogs updated. Signed-off-by: Dustin Kirklan 4 KB Diff Download File
configure.ac 379 16 years ago Dustin Kirkland bump version to 74 for rc testing Signed-off-by: 10.3 KB Diff Download File
COPYING 303 16 years ago Dustin Kirkland move the modprobe to a better place Move the modp 17.5 KB Diff Download File
INSTALL 303 16 years ago Dustin Kirkland move the modprobe to a better place Move the modp 7.8 KB Diff Download File
Makefile.am 316 16 years ago Dustin Kirkland typo in Makefile.am Missing ')'. Thanks Michal f 1 KB Diff Download File
NEWS 303 16 years ago Dustin Kirkland move the modprobe to a better place Move the modp 1.1 KB Diff Download File
README 303 16 years ago Dustin Kirkland move the modprobe to a better place Move the modp 12.5 KB Diff Download File
THANKS 303 16 years ago Dustin Kirkland move the modprobe to a better place Move the modp 601 bytes Diff Download File