aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Sardara <msardara+fdio@cisco.com>2018-04-15 00:06:40 +0200
committerMauro Sardara <msardara+fdio@cisco.com>2018-04-15 00:06:40 +0200
commitd609ef19bac231a47b65cf5a6a797c142ebc625d (patch)
tree9a7229d7d45439243ed11e481e269e5cb6dce74b
parente4fcd260cb99434033a8ccfba12eee12dab190b9 (diff)
Fixed bug in parcCryptoSuite_GetFromSigningHash()
Change-Id: I809091ebef73c00e6062620045d5419e721945b9 Signed-off-by: Mauro Sardara <msardara+fdio@cisco.com>
-rwxr-xr-xlibparc/parc/security/parc_CryptoSuite.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libparc/parc/security/parc_CryptoSuite.c b/libparc/parc/security/parc_CryptoSuite.c
index 32b1431e..7bd0a7bf 100755
--- a/libparc/parc/security/parc_CryptoSuite.c
+++ b/libparc/parc/security/parc_CryptoSuite.c
@@ -97,11 +97,11 @@ PARCCryptoSuite parcCryptoSuite_GetFromSigningHash(PARCSigningAlgorithm signAlgo
switch (signAlgo) {
case PARCSigningAlgorithm_DSA:
- return PARCCryptoSuite_DSA_SHA256 + hash -1;
+ return PARCCryptoSuite_DSA_SHA256 + hash;
case PARCSigningAlgorithm_RSA:
- return PARCCryptoSuite_RSA_SHA256 + hash -1;
+ return PARCCryptoSuite_RSA_SHA256 + hash;
case PARCSigningAlgorithm_ECDSA:
- return PARCCryptoSuite_ECDSA_SHA256 + hash -1;
+ return PARCCryptoSuite_ECDSA_SHA256 + hash;
case PARCSigningAlgorithm_NULL:
return PARCCryptoSuite_NULL_CRC32C;
default: