加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > Linux > 正文

linux – Broadcom引擎的Openssl速度测试

发布时间:2020-12-14 02:02:19 所属栏目:Linux 来源:网络整理
导读:我正在使用OpenSSL 1.0.1e. OpenSSL引擎ubsec需要包含实际实现的附加库. 实现库是/usr/lib/libvendor_ubsec.so. 要从ubsec OpenSSL引擎中指示我们从代码中加载哪些实现: ENGINE_ctrl_cmd_string (engine,"SO_PATH",vendor_ubsec,0); 我想运行openssl速度测
我正在使用OpenSSL 1.0.1e.

OpenSSL引擎ubsec需要包含实际实现的附加库.
实现库是/usr/lib/libvendor_ubsec.so.

要从ubsec OpenSSL引擎中指示我们从代码中加载哪些实现:

ENGINE_ctrl_cmd_string (&engine,"SO_PATH",vendor_ubsec,0);

我想运行openssl速度测试如下:

openssl speed rsa1024 -engine ubsec

但它失败了,因为openssl不加载libvendor_ubsec.so.

我知道这与OpenSSL动态引擎有关,并且加载实现我需要使用类似的东西:

openssl engine ubsec -pre SO_PATH:vendor_ubsec

我的问题是如何“结合”两个comamnd openssl speed和openssl引擎来运行ubsec引擎的速度测试>

解决方法

交互式使用openssl命令解释器而不是发送单个命令,这样,在同一个执行上下文中,您可以加载引擎然后运行命令.此 site还提供有关定义库加载路径的有用信息

gmurphy@interloper:~$openssl
OpenSSL> engine dynamic
(dynamic) Dynamic engine loading support
OpenSSL> speed rsa1024                                   
Doing 1024 bit private rsa's for 10s: 32226 1024 bit private RSA's in 9.96s
Doing 1024 bit public rsa's for 10s: 542409 1024 bit public RSA's in 9.96s

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读