Embedded systems file encryption library

谁说我不能喝 提交于 2020-01-12 08:09:09

问题


I've got a project and a part of it is incorporating encryption into a FAT file system.

The goal of the project is not the encryption, so I'm free to use open-source pre-done libraries.

Ideally what I'm after is a C library which uses RSA, that already has the methods for computing keys and encrypting/decrypting files.


回答1:


You might want to check out NaCl (pronounced as "salt"), especially since this is for an embedded system.

It has CPU-specific tunings and doesn't require any dynamic memory allocation.

As for licensing, the page (linked above) says "All of the NaCl software is in the public domain".




回答2:


Regarding library - check Cryptlib . It has dual license and includes quite a lot of functionality.

However, capability to encrypt files right depends on how you write the data and how you expect to do encryption.

Streaming encryption for streams with random access (i.e. when you need to encrypt-decrypt file data on the fly when it's written or read) is not a trivial task and requires certain knowledge of cryptography to employ correct encryption mode and do this right.

On the other hand if you have a file and want it encrypted, CryptLib has PKCS7/CMS implementation to do the job.




回答3:


You might want to give blowfish a try. It's royalty free and there are several open source C implementations. It was created by Bruce Schneier. Here is an article about using it with embedded systems.



来源:https://stackoverflow.com/questions/14124497/embedded-systems-file-encryption-library

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!