• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Quick Start
2
3Welcome to the openHiTLS tutorial. This tutorial will guide you through installing, integrating, and using openHiTLS.
4
5## What Is openHiTLS?
6
7openHiTLS is a C/C++ library for building cryptographic security capabilities. It provides cryptographic algorithms and TLS protocol stacks that comply with public standards.
8
9## Installing openHiTLS
10
111. Download related codes.
12   openHiTLS download address: https://gitee.com/openhitls/openhitls.git
13
14   libboundscheck download address: https://gitee.com/openeuler/libboundscheck.git
15
16   Note: Download libboundscheck to the **openHiTLS/platform/Secure_C** directory.
172. To build and install openHiTLS, run the following commands in the openHiTLS root directory:
18
19```~~~~
20mkdir build
21cd build
22cmake ..
23make && make install
24```
25
26## Integrate openHiTLS in your C/C++ project.
27
281. Call the APIs provided by openHiTLS in your project code according to the API manual.
292. Add the header file and library path of openHiTLS to your project dependency. The following uses the gcc compiler as an example:
30
31```
32# Use **-I** to specify the path of the header file and **-L** to specify the path of the dynamic library.
33gcc application.c -lhitls_crypto -lhitls_tls -lhitls_bsl -lboundscheck -I <openHiTLS header file installation path> -L <openHiTLS dynamic library installation path>
34```
35
36## Getting Started with openHiTLS
37
38After the preceding operations are performed, the security capabilities provided by openHiTLS can be used.
39