您的位置:首页 > 运维架构

VC编译OpenSSL的一些问题记录

2016-05-05 16:46 375 查看
编译步骤:

perl Configure VC-WIN32

ms\do_nasm

nmake -f ms\nt.mak

crypto/object目录下的头文件动态更新:

perl objects.pl objects.txt obj_mac.num obj_mac.h

perl obj_dat.pl obj_mac.h obj_dat.h

perl objxref.pl obj_mac.num obj_xref.txt > obj_xref.h

wincows系统下一些算法性能(Intel i5 M520 @2.40GHz windows8.1 X64):

>openssl.exe speed sm2enc
encrypt   decrypt   encrypt/s  decrypt/s
256 bit sm2enc (sm2)   0.0014s   0.0012s    710.8      867.8
>openssl.exe speed sm2dsa
sign    verify    sign/s    verify/s
256 bit sm2dsa (sm2)   0.0004s   0.0013s   2785.8    747.1
>openssl.exe speed sm3
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
sm3              11021.38k    27150.18k    53155.24k    70118.03k    77303.66k
>openssl.exe speed sm4
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
sm4-128 cbc      41475.63k    42321.60k    43208.06k    42854.06k    43106.90k

#同机器Ubuntu 16.04 X64系统测试结果:

>openssl speed sm2enc
encrypt   decrypt   encrypt/s  decrypt/s
256 bit sm2enc (sm2)   0.0007s   0.0006s   1368.0     1665.6
>openssl speed sm2dsa
sign    verify    sign/s    verify/s
256 bit sm2dsa (sm2)   0.0002s   0.0007s   5036.7   1447.0
>openssl speed sm3
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
sm3              14218.01k    33801.09k    62067.54k    78617.60k    85390.68k
>openssl speed sm4
type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
sm4-128 cbc      58246.93k    58208.21k    58142.39k    58227.37k    58247.85k
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  openssl