OSDN Git Service

Remove possibility of zero chars from passwords
authorPaul Lawrence <paullawrence@google.com>
Sat, 4 Oct 2014 22:32:29 +0000 (15:32 -0700)
committerPaul Lawrence <paullawrence@google.com>
Mon, 6 Oct 2014 21:39:31 +0000 (14:39 -0700)
commitfc61504166d4377a1f83211c236ca11260da1261
tree4a5948c8a378a1ecf0241e56340902539a168584
parent7639a6ab60426bbfa57c750c1ff0b4016cad0294
Remove possibility of zero chars from passwords

scrypt pads the password with zeros. Our patterns use 0 to represent
the top left dot. So patterns that end there are equivalent to ones
that end one short.

After much thought, the best solution is to change the way we
represent patterns in keyguard. This, however, is a big change.

The short term solution is to change the pattern representation in vold
so that we are storing the correct thing. Later we will change keyguard
to handle patterns correctly and remove quite a few hacks from vold
(use of hex, this code). b/17840293 created to track this.

Bug: 17751714
Change-Id: I30cdffb0f0db406d2e2b6c54d4153d120d975318
cryptfs.c