commit | aad1406df181f24461e0bbb56e57ddeea7447f77 | [log] [tgz] |
---|---|---|
author | Scott <scollyer@chromium.org> | Tue Oct 11 10:42:52 2016 -0700 |
committer | chrome-bot <chrome-bot@chromium.org> | Wed Oct 12 09:03:18 2016 -0700 |
tree | 67b48cfba91791177c3ba5904a94851ce31c5b7a | |
parent | cc08a97054435c8da283dffc0bf089b56862dc18 [diff] |
tpm2: Fixed error code return in TPM2_ECDH_KeyGen If the public key is restricted or it is not a decyption key, then TPM2_ECDH_KeyGen() should return TPM_RC_ATTRIBUTES as the error code. Previously, it was returning the error code TPM_RC_KEY BRANCH=none BUG=chrome-os-partner:55420 TEST=none Change-Id: Ie6beee8847c34030d2fd6adddfd08dedf1a0b86f Signed-off-by: Scott <scollyer@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/396388 Commit-Ready: Scott Collyer <scollyer@chromium.org> Tested-by: Scott Collyer <scollyer@chromium.org> Reviewed-by: Bill Richardson <wfrichar@chromium.org> Reviewed-by: Nagendra Modadugu <ngm@google.com>