commit | 92e41bf2bd80bb2fad14b31cf7f48c4eb0c12ec9 | [log] [tgz] |
---|---|---|
author | Adam Vartanian <flooey@google.com> | Mon May 22 15:37:27 2017 +0100 |
committer | Adam Vartanian <flooey@google.com> | Wed May 24 09:51:31 2017 +0000 |
tree | 14bbcdd784d44c9bd80fee049311c84aacdf26c9 | |
parent | 8395576a314bb9e81038199355dd78d577845882 [diff] |
Don't use algorithm parameters if missing salt or iteration count. The PBEKeySpec constructor doesn't allow an empty salt or iteration count, and throws an exception if it sees one. Bug: 38161557 Test: cts -m CtsLibcoreTestCases (cherry picked from commit 65832e311cb5fda062d79599b149232b47294fea) Change-Id: I69d05471af364f69793e83268c826d24ac82052e Merged-In: I23fa5d10003637584f856738940f54bddb0657dc Merged-In: I585d00f30e8848563d74d3f244f073d91d5db268