GMSSL open source library (1) - GMSSL installation under Windows10

2021SC@SDUSC

1. Installation and compilation of GMSSL library

1. Compilation tools

①VS2019

Due to the previous learning needs, I have downloaded it, and there are many online installation tutorials, so I won’t go into details

②ActivePerl

Installation source official website Download & Install Perl - ActiveState

1. After registering an account and logging in, the project will be fork

2. Select windows download

3. Select copy, open cmd, enter the target installation folder, and paste this paragraph.

Note: I need to connect to a VPN on my computer, otherwise it will appear

In the case of not being able to connect to GitHub, after I used the VPN, the download was over in two minutes.

4. Enter in the installation directory

perl -v

 Check the version to make sure the installation was successful.

③NASM

NAME-2.15.05 download address https://www.nasm.us/pub/nasm/releasebuilds/2.15.05/win64/

The source blogger  installs GmSSL under Windows_Bailiyang's Blog-CSDN Blog

2. Source code

The source code can be downloaded directly from GitHub. GitHub - guanzhi/GmSSL: OpenSSL branch that supports SM2/SM3/SM4/SM9/ZUC/SSL

3. compile

My compilation process is relatively smooth, but some problems occur.

1. Select this VS folder and open it in administrator mode

 Enter the installation address of the source code.

2. My computer is 64-bit, enter

perl Configure VC-WIN64A

3.

nmake

Enter nmake to compile, and an error will appear in this step.

I mainly have two forms of error reporting

错误:"glob" is not exported by the File::Glob module Can't continue after import……

The solution I searched for at the time:  BUG_Langeldep's column about the collapse of the State Secret Library - CSDN Blog

 The simple solution is to change the source code.

 This error was reported by me and my partner during the installation

Solution: Install GmSSL under Windows_Baili Yang's blog-CSDN blog is at the end of this blog.

4. Enter nmake install to install

nmake install

5. Add the GmSSL command line tool path C:\Program Files\GmSSL\bin to the environment variable.

6. Enter gmssl version in cmd to view the installed version

gmssl version

2. Project introduction

GmSSL is a cryptographic open source library based on OpenSSL, which supports SM2/SM3/SM4/SM9/ZUC and other national secret (national commercial cipher) algorithms, SM2 national secret digital certificate and SSL/TLS secure communication protocol based on SM2 certificate. The programming interface and command-line tool of encryption specification can be used to build PKI/CA, secure communication, data encryption and other security applications that meet national encryption standards.

The GmSSL project is a fork of the OpenSSL project and maintains interface compatibility with OpenSSL. Therefore, GmSSL can replace the OpenSSL component in the application, and make the application automatically have security capabilities based on national secrets. The GmSSL project adopts a BSD-like open source license that is friendly to commercial applications. It is open source and can be used for closed source commercial applications.

3. Division of labor

Under the guidance of the teacher, we learned that the SM2 and SM9 algorithms in the national secret algorithm are the two core algorithms of GMSSL. After the division of labor in the group, next I will mainly analyze the SM2 elliptic curve public key cryptography, including code analysis of some national secret algorithms and new cryptographic algorithms that OPENSSL does not support, and learn SSL/TLS and other related cryptographic protocols. In the process of coding, experience the developer's GMSSL coding style and the encryption industry standard of the People's Republic of China.
 

Guess you like

Origin blog.csdn.net/vincy_yeha/article/details/120572903