如何从OpenSSL源代码中禁用/删除特定的OpenSSL加密算法?

问题描述:

如何添加/创建具有特定加密算法的c/C++ OpenSSL静态库?假设我不想md5执行。我如何创建一个没有md5的库?如何从OpenSSL源代码中禁用/删除特定的OpenSSL加密算法?

在配置脚本,你可以指定no-<cipher>选项,指定将建设的OpenSSL没有密码,你可以参考安装从OpenSSL软件包文件

no-<cipher> Build without the specified cipher (bf, cast, des, dh, dsa, 
       hmac, md2, md5, mdc2, rc2, rc4, rc5, rsa, sha). 
       The crypto/<cipher> directory can be removed after running 
       "make depend". 
+0

是否减少编译库的大小? –

+0

我认为它会跳过密码的代码 – Pras