1

我正在研究 COOJA,并希望使用像散列这样的加密函数。所以,我需要像 libsodium 和 libtomcrypt 这样的库。我尝试了以下不同的可能解决方案:

  1. 在项目的 makefile 中包含库的链接。它给出了致命错误:sodium.h 没有这样的文件或目录。
  2. 在项目中制作库和标题。关于“sodium.h”没有错误,但是

    钠/crypto_pwhash_scryptsalsa208sha256.h:68:52:错误:预期的 ')' 在数字常量钠/crypto_pwhash_scryptsalsa208sha256.h:68:55 之前:错误:预期的';'。'。' 或 ')' 在 'uint32_t' 之前

  3. 使用 msp430-gcc 编译一个包含 libsodium 函数的文件。首先使用 2 号解决方案,然后将我自己的库添加到 Contiki OS和相同

    钠/crypto_pwhash_scryptsalsa208sha256.h:68:52:错误:预期的 ')' 在数字常量钠/crypto_pwhash_scryptsalsa208sha256.h:68:55 之前:错误:预期的';'。'。' 或 ')' 在 'uint32_t' 之前

由于我无法链接 libsodium,这里真正的问题是什么?我该如何解决这个问题?

4

0 回答 0