commit | 3a2f7db477288c181c5450a22e089dd2dbaf637c | [log] [tgz] |
---|---|---|
author | Eric Biggers <ebiggers@google.com> | Wed Jan 16 13:05:34 2019 -0800 |
committer | Eric Biggers <ebiggers@google.com> | Fri Jan 18 13:26:08 2019 -0800 |
tree | 3c5bb2d55ada1d1e5f15f4e9ba470928885f26b2 | |
parent | 0ef7bfd59c0a97b39b2e1152da30db4e96e3a915 [diff] |
cryptfs: check for errors in create_encrypted_random_key() When generating the key and salt we weren't checking for an error opening or reading from /dev/urandom. Switch to the helper function ReadRandomBytes() and start checking for errors. Test: Booted device with FDE. As a extra sanity check I also temporarily added log messages that dump the key and salt, and I verified they still appear random. Change-Id: I01ccee4f1f9910bf9508c8f02a918157393b0e68