Add HMAC
[iotcloud.git] / version2 / src / C / CloudComm.cc
index b91fa4ad45d0542c2eb3fc1bbbccb14ea27a34ee..d1ba7cacb099dd2cb5eac26969c692302b383366 100644 (file)
@@ -97,7 +97,7 @@ void CloudComm::initCrypt() {
        try {
                key = initKey();
                password = NULL;// drop password
-               mac = Mac_getInstance("HmacSHA256");
+               mac = new Mac();
                mac->init(key);
        } catch (Exception *e) {
                throw new Error("Failed To Initialize Ciphers");