Updated to the latest changes in libparc 07/11807/1
authorDevel <[email protected]>
Mon, 16 Apr 2018 08:31:55 +0000 (10:31 +0200)
committerDevel <[email protected]>
Mon, 16 Apr 2018 08:31:55 +0000 (10:31 +0200)
Change-Id: I273cba1750bf810e16694ff2a273ad1625b6ab10
Signed-off-by: Devel <[email protected]>
libccnx-common/ccnx/common/codec/schema_v1/ccnxCodecSchemaV1_CryptoSuite.c
libccnx-common/ccnx/common/codec/schema_v1/ccnxCodecSchemaV1_ValidationEncoder.c
libccnx-common/ccnx/common/codec/schema_v1/test/test_ccnxCodecSchemaV1_CryptoSuite.c
libccnx-common/ccnx/common/validation/ccnxValidation_CRC32C.c

index 588694b..ca9c4e5 100755 (executable)
@@ -119,7 +119,7 @@ ccnxCodecSchemaV1CryptoSuite_SignAndHashToTlv(PARCSigningAlgorithm signAlgorithm
             break;
         }
 
-        case PARCSigningAlgortihm_NULL: {
+        case PARCSigningAlgorithm_NULL: {
             switch (hashType) {
                 case PARCCryptoHashType_CRC32C:
                     *outputValue = CCNxCodecSchemaV1TlvDictionary_CryptoSuite_CRC32C;
index f7ad00a..4e9ecd1 100755 (executable)
@@ -113,7 +113,7 @@ _encodeSignatureTime(CCNxCodecTlvEncoder *encoder, CCNxTlvDictionary *packetDict
         PARCSigner *signer = ccnxCodecTlvEncoder_GetSigner(encoder);
         if (signer) {
             PARCSigningAlgorithm alg = parcSigner_GetSigningAlgorithm(signer);
-            if (alg != PARCSigningAlgortihm_NULL && alg != PARCSigningAlgorithm_UNKNOWN) {
+            if (alg != PARCSigningAlgorithm_NULL && alg != PARCSigningAlgorithm_UNKNOWN) {
                 // We will generate a signature, so generate a signing time
 
                 struct timeval tv;
index 10bc24d..021fccc 100644 (file)
@@ -126,10 +126,10 @@ LONGBOW_TEST_CASE(Global, ccnxCodecSchemaV1CryptoSuite_SignAndHashToTlv)
     } vectors[] = {
         { .signAlg = PARCSigningAlgorithm_RSA,  .hashType = PARCCryptoHashType_SHA256, .output = CCNxCodecSchemaV1TlvDictionary_CryptoSuite_RsaSha256,  .success = true,  .sentinel = false },
         { .signAlg = PARCSigningAlgorithm_HMAC, .hashType = PARCCryptoHashType_SHA256, .output = CCNxCodecSchemaV1TlvDictionary_CryptoSuite_HmacSha256, .success = true,  .sentinel = false },
-        { .signAlg = PARCSigningAlgortihm_NULL, .hashType = PARCCryptoHashType_CRC32C, .output = CCNxCodecSchemaV1TlvDictionary_CryptoSuite_CRC32C,     .success = true,  .sentinel = false },
+        { .signAlg = PARCSigningAlgorithm_NULL, .hashType = PARCCryptoHashType_CRC32C, .output = CCNxCodecSchemaV1TlvDictionary_CryptoSuite_CRC32C,     .success = true,  .sentinel = false },
         { .signAlg = PARCSigningAlgorithm_RSA,  .hashType = 12345,                     .output = 0,                                                     .success = false, .sentinel = false },
         { .signAlg = PARCSigningAlgorithm_HMAC, .hashType = 12345,                     .output = 0,                                                     .success = false, .sentinel = false },
-        { .signAlg = PARCSigningAlgortihm_NULL, .hashType = 12345,                     .output = 0,                                                     .success = false, .sentinel = false },
+        { .signAlg = PARCSigningAlgorithm_NULL, .hashType = 12345,                     .output = 0,                                                     .success = false, .sentinel = false },
         { .signAlg = 12345,                     .hashType = 12345,                     .output = 0,                                                     .success = false, .sentinel = false },
         { .signAlg = 0,                         .hashType = 0,                         .output = 0,                                                     .success = false, .sentinel = true  },
     };
index f8ff7ba..3625982 100644 (file)
@@ -109,14 +109,14 @@ static PARCSignature *
 _crc32Signer_SignDigest(_CRC32Signer *interfaceContext, const PARCCryptoHash *cryptoHash)
 {
     PARCSignature *signature =
-        parcSignature_Create(PARCSigningAlgortihm_NULL, PARCCryptoHashType_CRC32C, parcCryptoHash_GetDigest(cryptoHash));
+        parcSignature_Create(PARCSigningAlgorithm_NULL, PARCCryptoHashType_CRC32C, parcCryptoHash_GetDigest(cryptoHash));
     return signature;
 }
 
 static PARCSigningAlgorithm
 _crc32Signer_GetSigningAlgorithm(_CRC32Signer *interfaceContext)
 {
-    return PARCSigningAlgortihm_NULL;
+    return PARCSigningAlgorithm_NULL;
 }
 
 static PARCCryptoHashType