1

I am working on COOJA and want to use cryptographic functions like hashing. So, I need libraries like libsodium and libtomcrypt. I have tried following different possible solutions:

  1. Including link of the library in the project's makefile. It gives fatal error: sodium.h no such file or directory.
  2. Making the library and headers inside the project. There is no error regarding "sodium.h" but is

    sodium/crypto_pwhash_scryptsalsa208sha256.h:68:52: error: expected ')' before numeric constant sodium/crypto_pwhash_scryptsalsa208sha256.h:68:55: error: expected ';'. '.' or ')' before 'uint32_t'

  3. Using msp430-gcc to compile a file contains libsodium functions. First used no.2 solution and then Adding my own library to Contiki OS and same

    sodium/crypto_pwhash_scryptsalsa208sha256.h:68:52: error: expected ')' before numeric constant sodium/crypto_pwhash_scryptsalsa208sha256.h:68:55: error: expected ';'. '.' or ')' before 'uint32_t'

What is real problem here due to which I can't link libsodium? How can I solve this?

James Z
  • 12,209
  • 10
  • 24
  • 44
saad0112
  • 11
  • 1

0 Answers0