commit | 969aa382ca37968eff1b45012ab870fdbb775d30 | [log] [tgz] |
---|---|---|
author | Shawn Willden <swillden@google.com> | Wed Apr 15 17:05:53 2015 -0700 |
committer | Shawn Willden <swillden@google.com> | Wed Apr 15 18:50:50 2015 -0600 |
tree | 64d9581d5eb6164760c7b2457f571e09b1ee1165 | |
parent | e998c13155f16b8a619d5b6b24a6b1705b6ebcc7 [diff] |
Generate nonce if caller doesn't provide one. If the key has KM_TAG_CALLER_NONCE, then the caller is allowed to provide a nonce. Previously the assumption was that the caller was _required_ to provide a nonce. But to play nicer with the Java crypto API, it's better to make the caller nonce optional if KM_TAG_CALLER_NONCE is true. Bug: 19919504 Change-Id: I6189e19017b9026b955f529c7267913de8b04a74