如题,推荐一个密码算法库PolarSSL,官方网址。
官网的描述是这样说的:
PolarSSL makes it trivially easy for developers toinclude cryptographic and SSL/TLS capabilities in their (embedded) products, facilitating this functionality with aminimal coding footprint.
维基上是这样说的:
The PolarSSL library expresses a focus on readability of the code, documentation, automated regression tests, a loosely coupled design and portable code.
我没有深究,但我估计此言不假,看它的代码说明页面(https://polarssl.org/source-code)就可以看出,模块之间耦合较少,比较清晰,十分有利于将相关代码嵌入到自己的项目中;而且代码自身带着很多注释,在函数定义处对参数很好的描述。