commit | c77b7cc7e9be4fda8001f43aa9d26be3f8414a76 | [log] [tgz] |
---|---|---|
author | wcarthur <will.c.arthur@intel.com> | Mon Mar 21 09:51:04 2016 -0400 |
committer | wcarthur <will.c.arthur@intel.com> | Mon Mar 21 09:51:04 2016 -0400 |
tree | 55a787f91d6795eac7db18a492ea424e885ca97f | |
parent | b4b7e0316c67b8cc72922847098e762bf6bf9ac3 [diff] |
Fixed bug in SetEncryptParam: should be checking that encrypParamSize is not equal to the current encrypt param's size (was check <).
diff --git a/sysapi/sysapi/EncryptParam.c b/sysapi/sysapi/EncryptParam.c index 54cb1ed..50fe424 100644 --- a/sysapi/sysapi/EncryptParam.c +++ b/sysapi/sysapi/EncryptParam.c
@@ -86,7 +86,7 @@ if( rval == TSS2_RC_SUCCESS ) { - if( encryptParamSize < currEncryptParamSize ) + if( encryptParamSize != currEncryptParamSize ) { return TSS2_SYS_RC_BAD_SIZE; }