diff options
author | Alex Klyubin <klyubin@google.com> | 2015-05-05 12:57:50 -0700 |
---|---|---|
committer | Alex Klyubin <klyubin@google.com> | 2015-05-07 10:50:10 -0700 |
commit | a6e551c68c60f4319dc4a41f243b6369fcdefbd1 (patch) | |
tree | 7d806043753cba615286cc16a5eca90f3eee4e5d /native/android/sensor.cpp | |
parent | 14bc1c58d4b194ac201b0ed7d04d6f30890ff4a2 (diff) |
Check parameters in KeyGenerator.init.
KeyGenerator.init is supposed to check whether all provided parameters
are OK. This is because KeyGenerator.generateKey cannot throw checked
exceptions. This CL makes AndroidKeyStore KeyGenerator implementation
do just that. Unfortunately, keymaster/kestore doesn't provide a way
to check whether all the parameters are OK without actually generating
a key. Thus, this KeyGenerator does its best inside init method
(before Keymaster is called), and then surfaces any remaining issues
(flagged by Keymaster/keystore) as unchecked IllegalStateException.
Bug: 18088752
Change-Id: I9a04da880dcbe26c37f41d1477e41bdc74db04c9
Diffstat (limited to 'native/android/sensor.cpp')
0 files changed, 0 insertions, 0 deletions