Openssl 如果我只是使用基于EVP的散列实现,是否需要调用SSL_library_init?
我的系统上的Openssl 如果我只是使用基于EVP的散列实现,是否需要调用SSL_library_init?,openssl,Openssl,我的系统上的SSL\u library\u init()文档说明: NOTES SSL_library_init() must be called before any other action takes place. SSL_library_init() is not reentrant. 我对使用EVP哈希函数套件感兴趣。例如EVP\u DigestInit\u ex,EVP\u DigestUpdate和EVP\u digestinal\u ex EVP_DigestIn
SSL\u library\u init()
文档说明:
NOTES
SSL_library_init() must be called before any other action takes place.
SSL_library_init() is not reentrant.
我对使用EVP哈希函数套件感兴趣。例如EVP\u DigestInit\u ex
,EVP\u DigestUpdate
和EVP\u digestinal\u ex
EVP_DigestInit_ex
和其余的在libcrypto
中,而SSL\u library\u init()
在libssl
中。我想尽量减少链接库的数量。如果我不使用SSL,是否需要调用SSL\u library\u init()
为此,您需要致电
OpenSSL_add_all_algorithms ();
它将加载所有加密和摘要算法
我想你对密码更感兴趣
如果您对使用SSL相关功能感兴趣,则需要调用SSL\u library\u init
由于您对哈希算法感兴趣,请使用
OpenSSL_add_all_digests();
谢谢实际上,我只是对摘要算法感兴趣,而不是密码。