OSDN Git Service

Fix cryptfs to work with a raw block device for key storage
authorKen Sumrall <ksumrall@android.com>
Wed, 14 Sep 2011 23:53:46 +0000 (16:53 -0700)
committerKen Sumrall <ksumrall@android.com>
Wed, 14 Sep 2011 23:53:46 +0000 (16:53 -0700)
commit3be890f59c04f94537f2f66f1d2841ed591f1a6e
treeb49a70ba4b452eef4df9cb8e457ae2a0d20444d5
parent0b8b59719357fb80c330442787f7d5b1e332263b
Fix cryptfs to work with a raw block device for key storage

If a raw block is specified for key storage, do not try to force the size
of the file to 16 Kbytes when writing the keys, and do not complain if
the size is not 16 Kbytes when reading the keys.  Only do them if the
keyfile is a regular file.

Change-Id: I4de1cb7c3614479d93289d4f2767ca6ce1bbbc73
cryptfs.c