小编Iai*_*inS的帖子

嵌入式系统文件加密库

我有一个项目,其中一部分是将加密技术融入FAT文件系统.

该项目的目标不是加密,所以我可以自由使用开源预先完成的库.

理想情况下,我所追求的是一个使用RSA的C库,它已经具有计算密钥和加密/解密文件的方法.

c filesystems encryption embedded

6
推荐指数
1
解决办法
4460
查看次数

strncpy导致LPC-2378挂起/死亡

我正在为Olimex LPC2378-STK做一些工作.

我有以下声明.

unsigned char buffer[256];
Run Code Online (Sandbox Code Playgroud)

然后我尝试做:

strncpy((char *)buffer, "CREATED_BY", 255);
Run Code Online (Sandbox Code Playgroud)

有谁知道这会导致问题的原因.

如果我注释掉它运行的代码行没有问题,但使用它似乎导致程序死亡.

有人有任何想法吗?

c embedded strncpy

1
推荐指数
1
解决办法
261
查看次数

make 运行时出错。冲突的类型和先前的声明

我为我正在做的项目找到了 AES 的实现。

但是,当我集成它时,我在构建过程中遇到以下错误。

In file included from ff.h:26:0,
             from disp.h:4,
             from main.c:14:
aes.h:14:3: error: conflicting types for 'AesCtx'
aes.h:14:3: note: previous declaration of 'AesCtx' was here
aes.h:28:5: error: conflicting types for 'AesCtxIni'
aes.h:28:5: note: previous declaration of 'AesCtxIni' was here
aes.h:29:5: error: conflicting types for 'AesEncrypt'
aes.h:29:5: note: previous declaration of 'AesEncrypt' was here
aes.h:30:5: error: conflicting types for 'AesDecrypt'
aes.h:30:5: note: previous declaration of 'AesDecrypt' was here
Run Code Online (Sandbox Code Playgroud)

头文件本身是:

// AES context structure
typedef struct {
 unsigned int Ek[60]; …
Run Code Online (Sandbox Code Playgroud)

c embedded

0
推荐指数
1
解决办法
1669
查看次数

标签 统计

c ×3

embedded ×3

encryption ×1

filesystems ×1

strncpy ×1