课设第一周进展(babassl)

一、安装babassl

babassl简介

BabaSSL是一款轻巧、灵活且靠谱的密码学和TLS协议工具集。BabaSSL是蚂蚁集团和阿里集团的各主要业务中所使用的底层密码库,现在开源出来供业界使用。BabaSSL广泛的应用在包括网络、存储、移动端App等场景中。

BabaSSL的安装

  • 首先在github网站上下载资源包和其对应签名

BabaSSL下载处

对所下载的资源包进行验证

  • 公钥
-----BEGIN PGP PUBLIC KEY BLOCK-----

mQINBGC5xZkBEAC/f09tTFF6g4YfGkEFH3igrsiBxPDe9h9BLABa922G9vuLGT71
BHH1fVAxVOWvDsD8NA+cjEgqDTEZfT3dLbbeK3ZDtq2ntz6SZZGyXuKZ2kmYeRvK
rZytAyPv9a441wFde/wWEnYxoC2CGGPAXoEq40W4G9gGtWguGJq5+0JrzeP/48P4
7Bx1XJwIieuxMd24Dv7QLEBqITvmURvAaxTsbwji3pdcHNpGpy/oDjlWF9XJJoaR
L/AzycOxmK4+FT8jpj8GbkSLjQ/3dqfgEjSmLAf1MgJt+ximeTTz4/iV8CQ+0Bu7
KH8y2lrSNdVN2H/yqnp2YMvsoeTcfwno5PJbSUUXSPfH7yMWZy+dHpLgLxuCwC8w
lKvv9Xbtbm/bH4VYkXs4SOSeHNXx+FjOdOQ7QZUg9miU0bZun8WmR+FgARzyqNr7
j+84i6eNrIRrwvPsu4mwDqCk4AhGOaLsRFWkZHrPO/BoXMfCuY9Aeec/BRLwmlWg
oBO4Fk16aDRVEselDowWMXn9h5s14Uq6enJf7jGq7oa0i84RhQWBR6Tpv/Blk1ub
wpMUMIsDxzmB0kpRoOYpH1Mpb64C12LIYY3kygttD7kPklPABdlwpRP2tastq3g8
Ib0WgK15S1F0LwVujIPFCQH8GcswNEY3ziZQhn06xmOsqM7yfXfzKpxT8wARAQAB
tFhCYWJhU1NMIFByb2plY3QgVGVhbSAoVGhlIGtleSB1c2VkIHRvIHNpZ24gQmFi
YVNTbCByZWxlYXNlIGZpbGUpIDxrYWlzaGVuLnl5QGFsaXB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AOEatXhgw
5wmbDGZbZYYmtBonWh4KvzQMBQFGfSH9tZIy64SE/nIGnuQXzq8XZn0ztiTOkLRy
ZHCIz+FVERKc6Z3V7R8q+OfxdnkF2glJ3FFbT+OSKWb2yX4DL6HRSV1WCK2HZ3CO
0r7KG+pwj3+3Xs4KTTwtpw==
=n+IJ
-----END PGP PUBLIC KEY BLOCK-----

将这个公钥存入一个名叫BabaSSL-public.key的文件

随后使用以下命令进行验证签名

gpg --verify --default-key "BabaSSL Project Team" BabaSSL-8.3.1.tar.gz.asc Tongsuo-8.3.1.tar.gz

验证通过,所下的资源包没有出现篡改或者丢包情况

随后使用tar -xzf Tongsuo-8.3.1.tar.gz指令进行解压压缩包

生成一个Tongsuo-8.3.1文件夹

cd Tongsuo-8.3.1进入文件夹

  • 使用./config对其进行编译

  • 使用make进行安装

  • 使用sudo make install将其安装到/usr/local/tongsuo--debug

此时就已安装成功啦。

此库为OpenSSL的一个代替品,其归根结底其实和OpenSSL相差不多,在此不过多赘述

posted @ 2022-11-20 17:53  20201325my  阅读(1114)  评论(0编辑  收藏  举报