OSDN Git Service

cryptfs: Don't hardcode ascii buffer size
authorGreg Kaiser <gkaiser@google.com>
Sat, 10 Feb 2018 00:11:38 +0000 (16:11 -0800)
committerGreg Kaiser <gkaiser@google.com>
Sat, 10 Feb 2018 00:11:38 +0000 (16:11 -0800)
commit1452b27d4e445d71863d2bc2afce2825b9f68f13
tree944f298f796ec74582be82fc7bec741b65e18c7c
parentf45a70c416e74437bfc10e7a1dab55746f3edf25
cryptfs: Don't hardcode ascii buffer size

We're removing hardcoded buffer sizes in anticipation of allowing
different keysizes.  In this case, our buffer was sufficiently
large for all current cases.  But if we ever changed the
crypt_mnt_ftr struct to allow larger keys, this code will adjust
with the change.

Bug: 73079191
Test: Flashed an encrypted sailfish and it booted.
Change-Id: I261e729a77b351e287fbb55327564fe512a23d47
cryptfs.cpp