Commit cce396c9 authored by garciay's avatar garciay
Browse files

Add HMAC class

parent 1bb95b8a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -296,10 +296,10 @@ namespace LibItsSecurity__Functions
    }
    // Encrypt the symmetric encryption key using existing nonce and symmetric encryption key
    std::vector<unsigned char> enc_eph_key;
    /* TODO if (ec.encrypt(encryption_algotithm::aes_128_ccm, ec_ecies.ephemeral_key(), ec.symmetric_encryption_key(), enc_eph_key) == -1) {
    if (ec.encrypt(encryption_algotithm::aes_128_ccm, ec_ecies.ephemeral_key(), ec.nonce(), ec.symmetric_encryption_key(), enc_eph_key) == -1) {
      loggers::get_instance().warning("fx__encryptWithEciesNistp256WithSha256: Failed to encrypt message");
      return OCTETSTRING();
      }*/
    }
    p__ephKey = OCTETSTRING(enc_eph_key.size(), enc_eph_key.data());
    loggers::get_instance().log_to_hexa("fx__encryptWithEciesNistp256WithSha256: p__ephKey: ", ec.ephemeral_key().data(), ec.ephemeral_key().size());
    loggers::get_instance().log_to_hexa("fx__encryptWithEciesNistp256WithSha256: Encrypted p__ephKey: ", p__ephKey);
+0 −1
Original line number Diff line number Diff line
@@ -11,6 +11,5 @@
#pragma once

using namespace std; // Required for isnan()

#include "LibItsBtp_TypesAndValues.hh"
#include "LibItsBtp_TestSystem.hh"
+0 −1
Original line number Diff line number Diff line
@@ -11,6 +11,5 @@
#pragma once

using namespace std; // Required for isnan()

#include "LibItsCam_TypesAndValues.hh"
#include "LibItsCam_TestSystem.hh"
+0 −1
Original line number Diff line number Diff line
@@ -11,6 +11,5 @@
#pragma once

using namespace std; // Required for isnan()

#include "LibItsDenm_TypesAndValues.hh"
#include "LibItsDenm_TestSystem.hh"
+0 −1
Original line number Diff line number Diff line
@@ -2,7 +2,6 @@
#define IVIMTYPES_H

using namespace std; // Required for isnan()

#include "LibItsIvim_TypesAndValues.hh"
#include "LibItsIvim_TestSystem.hh"

Loading