Openssl 编程
2
第一章 基础知识 ....................................................................................................................... 8
1.1 对称算法 ....................................................................................................................... 8
1.2 摘要算法 ....................................................................................................................... 9
1.3 公钥算法 ....................................................................................................................... 9
1.4 回调函数 ..................................................................................................................... 11
第二章 openssl 简介 ................................................................................................................ 13
2.1 openssl 简介 ................................................................................................................ 13
2.2 openssl 安装 ................................................................................................................ 13
2.2.1 linux 下的安装 ................................................................................................ 13
2.2.2 windows 编译与安装 ..................................................................................... 14
2.3 openssl 源代码 ............................................................................................................ 14
2.4 openssl 学习方法 ........................................................................................................ 16
第三章 堆栈 ............................................................................................................................. 17
3.1 openssl 堆栈 ................................................................................................................ 17
3.2 数据结构 ..................................................................................................................... 17
3.3 源码 ............................................................................................................................. 18
3.4 定义用户自己的堆栈函数 ......................................................................................... 18
3.5 编程示例 ..................................................................................................................... 19
第四章 哈希表 ......................................................................................................................... 21
4.1 哈希表 ......................................................................................................................... 21
4.2 哈希表数据结构 ......................................................................................................... 21
4.3 函数说明 ..................................................................................................................... 23
4.4 编程示例 ..................................................................................................................... 25
第五章 内存分配 ..................................................................................................................... 27
5.1 openssl 内存分配 ........................................................................................................ 27
5.2 内存数据结构 ............................................................................................................. 27
5.3 主要函数 ..................................................................................................................... 28
5.4 编程示例 ..................................................................................................................... 29
第六章 动态模块加载 ............................................................................................................. 30
6.1 动态库加载 ................................................................................................................. 30
6.2 DSO 概述 .................................................................................................................... 30
6.3 数据结构 ..................................................................................................................... 31
6.4 编程示例 ..................................................................................................................... 32
第七章 抽象 IO ....................................................................................................................... 34
7.1 openssl 抽象 IO .......................................................................................................... 34
7.2 数据结构 ..................................................................................................................... 34
7.3 BIO 函数 .................................................................................................................... 36
7.4 编程示例 ..................................................................................................................... 36
7.4.1 mem bio ........................................................................................................... 36
7.4.2 file bio ............................................................................................................. 37
7.4.3 socket bio ........................................................................................................ 38
7.4.4 md BIO ............................................................................................................ 39
7.4.5 cipher BIO ....................................................................................................... 40
7.4.6 ssl BIO ............................................................................................................. 41