aboutsummaryrefslogtreecommitdiff
path: root/ECDH_KeyGen.c
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2015-10-16 09:35:42 -0700
committerchrome-bot <chrome-bot@chromium.org>2015-10-16 19:46:20 +0000
commit065e0d7552ad876e067e56dcd8cc2a8f84bd8cc4 (patch)
tree6e19781e4d2dc07a8e127a72c655499007ca963e /ECDH_KeyGen.c
parent06134407fe531c7c0169e8f90ae84a2bf1a546d4 (diff)
downloadtpm2-065e0d7552ad876e067e56dcd8cc2a8f84bd8cc4.tar.gz
Replace TPM_RCS_xxx with TPM_RC_xxx
The code scraped from the TPM2 library uses return code names prefixed with TPM_RC_. But in a few places in the code the TPM_RCS_ prefix is used. TPM_RCS_ prefixed values are not defined anywhere, form the code logic they are equivalent to the corresponding TPM_RC_ prefixed values. This patch makes sure the consistent naming is used. BUG=chrome-os-partner:44608 TEST=the tests still pass. Change-Id: I342de9bdc6dd1e70e3c8268d38f02c9429980cfc Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/306650 Reviewed-by: Utkarsh Sanghi <usanghi@chromium.org>
Diffstat (limited to 'ECDH_KeyGen.c')
-rw-r--r--ECDH_KeyGen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ECDH_KeyGen.c b/ECDH_KeyGen.c
index 6d67d92..9a7e50e 100644
--- a/ECDH_KeyGen.c
+++ b/ECDH_KeyGen.c
@@ -30,7 +30,7 @@ TPM2_ECDH_KeyGen(
// Input key must be a non-restricted, decrypt ECC key
if( eccKey->publicArea.type != TPM_ALG_ECC)
- return TPM_RCS_KEY + RC_ECDH_KeyGen_keyHandle;
+ return TPM_RC_KEY + RC_ECDH_KeyGen_keyHandle;
if( eccKey->publicArea.objectAttributes.restricted == SET
|| eccKey->publicArea.objectAttributes.decrypt != SET