VC编译OpenSSL的一些问题记录

来源:互联网 发布:云计算平台架构图 编辑:程序博客网 时间:2024/06/06 17:14
  1. 编译步骤:

    • perl Configure VC-WIN32
    • ms\do_nasm
    • nmake -f ms\nt.mak
  2. 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
  3. 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 sm3type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytessm3              14218.01k    33801.09k    62067.54k    78617.60k    85390.68k>openssl speed sm4type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytessm4-128 cbc      58246.93k    58208.21k    58142.39k    58227.37k    58247.85k
0 0
原创粉丝点击