Eric Biggers
385bfb3d22
fscrypt: add Adiantum support
...
Add support for the Adiantum encryption mode to fscrypt. Adiantum is a
tweakable, length-preserving encryption mode with security provably
reducible to that of XChaCha12 and AES-256, subject to a security bound.
It's also a true wide-block mode, unlike XTS. See the paper
"Adiantum: length-preserving encryption for entry-level processors"
(https://eprint.iacr.org/2018/720.pdf ) for more details. Also see
commit 059c2a4d8e16 ("crypto: adiantum - add Adiantum support").
On sufficiently long messages, Adiantum's bottlenecks are XChaCha12 and
the NH hash function. These algorithms are fast even on processors
without dedicated crypto instructions. Adiantum makes it feasible to
enable storage encryption on low-end mobile devices that lack AES
instructions; currently such devices are unencrypted. On ARM Cortex-A7,
on 4096-byte messages Adiantum encryption is about 4 times faster than
AES-256-XTS encryption; decryption is about 5 times faster.
In fscrypt, Adiantum is suitable for encrypting both file contents and
names. With filenames, it fixes a known weakness: when two filenames in
a directory share a common prefix of >= 16 bytes, with CTS-CBC their
encrypted filenames share a common prefix too, leaking information.
Adiantum does not have this problem.
Since Adiantum also accepts long tweaks (IVs), it's also safe to use the
master key directly for Adiantum encryption rather than deriving
per-file keys, provided that the per-file nonce is included in the IVs
and the master key isn't used for any other encryption mode. This
configuration saves memory and improves performance. A new fscrypt
policy flag is added to allow users to opt-in to this configuration.
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2019-04-03 15:25:20 -07:00
..
caching
fscache: Pass object size in rather than calling back for it
2018-04-06 14:05:14 +01:00
cifs
smb3: update readme to correct information about /proc/fs/cifs/Stats
2018-08-07 14:20:23 -05:00
configfs
fs: configfs: don't return anything from drop_link
2016-12-01 10:50:49 +01:00
ext4
docs: fix up the obviously obsolete bits in the new ext4 documentation
2018-07-29 16:35:23 -04:00
nfs
ipconfig: Write NTP server IPs to /proc/net/ipconfig/ntp_servers
2018-04-24 13:40:42 -04:00
pohmelfs
Documentation: fix common spelling mistakes
2016-04-28 07:51:59 -06:00
00-INDEX
Staging/IIO patches for 4.18-rc1
2018-06-09 10:32:39 -07:00
9p.txt
9p: update documentation
2014-01-24 10:55:21 -06:00
adfs.txt
adfs: add hexadecimal filetype suffix option
2011-03-22 17:44:17 -07:00
affs.txt
affs: add mount option to avoid filename truncates
2014-04-07 16:36:08 -07:00
afs.txt
afs: Implement @sys substitution handling
2018-04-09 21:12:31 +01:00
autofs-mount-control.txt
autofs: use autofs instead of autofs4 in documentation
2018-06-07 17:34:39 -07:00
autofs.txt
autofs: use autofs instead of autofs4 in documentation
2018-06-07 17:34:39 -07:00
automount-support.txt
autofs: use autofs instead of autofs4 in documentation
2018-06-07 17:34:39 -07:00
befs.txt
Documentation: befs.txt: no maintainer, orphaned
2011-08-13 18:34:03 -07:00
bfs.txt
Tigran has moved
2017-05-12 15:57:15 -07:00
btrfs.txt
Documentation: btrfs: remove usage specific information
2016-03-11 17:02:09 +01:00
ceph.txt
ceph: update description of some mount options
2018-06-04 20:46:02 +02:00
coda.txt
conf.py
docs-rst: convert filesystems book to ReST
2017-05-16 08:44:08 -03:00
cramfs.txt
cramfs: rehabilitate it
2017-10-15 00:47:23 -04:00
dax.txt
powerpc/cell: Remove axonram driver
2018-01-28 17:00:36 +11:00
debugfs.txt
debugfs: Pass bool pointer to debugfs_create_bool()
2015-10-04 11:36:07 +01:00
devpts.txt
devpts: Make each mount of devpts an independent filesystem.
2016-06-05 10:36:01 -07:00
directory-locking
vfs: remove unused i_op->rename
2016-09-27 11:03:58 +02:00
dlmfs.txt
ocfs2: update web page + git tree in documentation
2015-02-28 09:57:50 -08:00
dnotify.txt
Documentation: fix selftests related file refs
2017-10-19 12:58:21 -06:00
ecryptfs.txt
efivarfs.txt
efi: Make efivarfs entries immutable by default
2016-02-10 16:25:52 +00:00
exofs.txt
exofs: Add option to mount by osdname
2011-03-15 15:02:51 +02:00
ext2.txt
fs/*/Kconfig: drop links to 404-compliant http://acl.bestbits.at
2018-01-01 12:45:37 -07:00
ext3.txt
fs: Remove ext3 filesystem driver
2015-07-23 20:59:40 +02:00
f2fs.txt
f2fs: fix to document inline_xattr_size option
2019-02-04 10:17:29 -08:00
fiemap.txt
fsioctl.c: make generic_block_fiemap() signal-tolerant
2015-02-10 14:30:30 -08:00
files.txt
Wrap accesses to the fd_sets in struct fdtable
2012-02-19 10:30:52 -08:00
fscrypt.rst
fscrypt: add Adiantum support
2019-04-03 15:25:20 -07:00
fuse-io.txt
fuse: add writeback documentation
2018-03-20 17:11:45 +01:00
fuse.txt
Documentation/: it's -> its where appropriate
2010-04-23 02:09:52 +02:00
gfs2-glocks.txt
GFS2: Minor improvements to comments and documentation
2018-04-12 10:07:51 -07:00
gfs2-uevents.txt
Documentation: Fix multiple typo in Documentation
2012-03-07 16:08:24 +01:00
gfs2.txt
GFS2: Update main gfs2 doc
2012-05-10 11:45:31 +01:00
hfs.txt
Documentation: HFS is orphaned
2011-11-04 12:01:48 -07:00
hfsplus.txt
Documentation: update URL to hfsplus Technote 1150
2014-02-20 14:48:51 +01:00
hpfs.txt
Documentation/: it's -> its where appropriate
2010-04-23 02:09:52 +02:00
index.rst
docs: create filesystem internal section
2018-07-29 16:14:02 -04:00
inotify.txt
inotify: update documentation to reflect code changes
2015-02-10 14:30:28 -08:00
isofs.txt
Documentation: update broken web addresses.
2010-08-04 15:21:40 +02:00
jfs.txt
doc: fix misspellings with 'codespell' tool
2013-05-28 12:02:12 +02:00
Locking
overlayfs update for 4.19
2018-08-21 18:19:09 -07:00
locks.txt
docs: fix locations of several documents that got moved
2016-10-24 08:12:35 -02:00
mandatory-locking.txt
nilfs2.txt
MAINTAINERS, nilfs2: change project home URLs
2018-01-13 10:42:48 -08:00
ntfs.txt
NTFS: Remove changelog from Documentation/filesystems/ntfs.txt.
2014-10-16 12:43:57 +01:00
ocfs2-online-filecheck.txt
Doc: ocfs: Fix typo in filesystems/ocfs2-online-filecheck.txt
2016-07-01 16:17:15 -06:00
ocfs2.txt
ocfs2: update web page + git tree in documentation
2015-02-28 09:57:50 -08:00
omfs.txt
omfs: add filesystem documentation
2008-07-26 12:00:05 -07:00
orangefs.txt
Orangefs: documentation updates
2018-04-04 14:05:48 -04:00
overlayfs.txt
ovl: Provide a mount option metacopy=on/off for metadata copyup
2018-07-20 09:56:06 +02:00
path-lookup.md
autofs: use autofs instead of autofs4 in documentation
2018-06-07 17:34:39 -07:00
path-lookup.txt
Documentation: add new description of path-name lookup.
2015-11-02 18:18:25 -07:00
porting
document alloc_file() changes
2018-07-12 10:04:29 -04:00
proc.txt
/proc/meminfo: add percpu populated pages count
2018-08-22 10:52:45 -07:00
qnx6.txt
Documentation: fix common spelling mistakes
2016-04-28 07:51:59 -06:00
quota.txt
scripts/spelling.txt: add "an user" pattern and fix typo instances
2017-02-27 18:43:46 -08:00
ramfs-rootfs-initramfs.txt
initramfs: move gen_initramfs_list.sh from scripts/ to usr/
2018-08-22 23:21:44 +09:00
relay.txt
Documentation : Update relay function types
2018-07-10 15:11:00 -06:00
romfs.txt
Documentation/filesystems/romfs.txt: fixing link to genromfs
2011-02-17 22:04:46 +01:00
seq_file.txt
fs/seq_file.c: simplify seq_file iteration code and interface
2018-08-17 16:20:28 -07:00
sharedsubtree.txt
doc: fix grammar
2016-03-09 15:33:06 -07:00
spufs.txt
Fix typos in /Documentation : 'U-Z'
2006-11-30 04:58:40 +01:00
squashfs.txt
Squashfs: Add LZ4 compression configuration option
2014-11-27 18:48:44 +00:00
sysfs-pci.txt
PCI: Add pci_mmap_resource_range() and use it for ARM64
2017-04-20 08:47:47 -05:00
sysfs-tagging.txt
sysfs-tagging.txt: fix pre-kernfs references
2015-09-13 14:38:51 -06:00
sysfs.txt
kallsyms: remove print_symbol() function
2018-01-16 16:59:55 +01:00
sysv-fs.txt
tmpfs.txt
docs/vm: move numa_memory_policy.rst to Documentation/admin-guide/mm
2018-05-08 09:31:31 -06:00
ubifs.txt
UBIFS: switch self-check knobs to debugfs
2011-07-04 10:54:28 +03:00
udf.txt
udf: Remove never implemented mount options
2018-02-27 10:25:33 +01:00
ufs.txt
[PATCH] ufs2 write: mount as rw
2007-02-12 09:48:40 -08:00
vfat.txt
Documentation/filesystems/vfat.txt: fix a remark that implies UCS2
2017-12-21 13:39:28 -07:00
vfs.txt
vfs: add the fadvise() file operation
2018-08-30 17:08:35 +02:00
xfs-delayed-logging-design.txt
Fix common misspellings
2011-03-31 11:26:23 -03:00
xfs-self-describing-metadata.txt
xfs: add metadata CRC documentation
2013-04-27 13:27:43 -05:00
xfs.txt
xfs: remove deprecated barrier/nobarrier mount
2018-07-26 10:15:17 -07:00