commit | b59b92d97c0a560d0012f27cd65e24bee8556dde | [log] [tgz] |
---|---|---|
author | Scott <scollyer@chromium.org> | Tue Oct 11 10:57:04 2016 -0700 |
committer | chrome-bot <chrome-bot@chromium.org> | Wed Oct 12 09:03:18 2016 -0700 |
tree | 87a399756219274cee0cb32d3e80d30043b457fc | |
parent | aad1406df181f24461e0bbb56e57ddeea7447f77 [diff] |
tpm2: Fixed error return in TPM2_ECDH_ZGen When the public key is either restrictued or is not a decrypt key, then the error return code should be TPM_RC_ATTRIBUTES. Previously, the funtion was returning TPM_RC_KEY for this case. BRANCH=none BUG=chrome-os-partner:55421 TEST=none Change-Id: I7cbce04ae0a3d3c724b127df25c01e1c403b516f Signed-off-by: Scott <scollyer@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/396389 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>