当前位置:网站首页>金仓数据库KingbaseES安全指南--5.2. 数据完整性保护
金仓数据库KingbaseES安全指南--5.2. 数据完整性保护
2022-07-28 03:59:00 【沉舟侧畔千帆过_】
5.2. 数据完整性保护
5.2.1. 传输完整性保护
数据库通过SSL通信进行传输完整性保护,配置方法同SSL传输加密。
5.2.2. 用户数据完整性保护
通过在每个数据块头增加"数据水印",KingbaseES实现了数据存储过程中的完整性校验和保护。每次读磁盘时,自动进行数据水印校验。每次写磁盘时,自动更新数据水印。
数据校验支持CRC、SM3、SM3_HMAC算法,可以在初始化数据目录时指定使用的校验算法。此外,KingbaseES还支持国密算法校验。
initdb -a sm3 -D datadir
也可以使用 sys_checksums 工具来启用或切换使用的校验算法。
sys_checksums -d -D datadir sys_checksums -e -a sm3 -D datadir
使用 sys_controldata 工具可查看已指定的校验算法。
sys_controldata -D datadir
输出 Data page checksum version 信息标识当前使用的算法。可能取值为0、1、2、3。 0表示未开启完整性保护功能,非0表示已开启功能。1表示使用CRC校验,2表示使用SM3校验,3表示SM3_HMAC校验。
KingbaseES 提供配置参数zero_damaged_pages,若设置为true,在读取数据发现页面错误时,服务器将页面初始化为初始状态,继续处理。这个设置适用于对数据一致性要求不高,允许数据部分丢失的场合。
对于在透明加密需要做校验的情况下,写出数据时会先判断页面所属的表空间是否加密,如果表空间是加密的那么会先加密数据然后对加密完成后的数据计算校验值并写出,非加密表空间则直接计算校验值并写出。读入数据时也是先对读进来的页面判断所属表空间是否加密,如果表空间是加密的先计算校验值,校验通过后再解密数据,表空间非加密则跳过解密过程。
边栏推荐
- Do you regret doing automated testing?
- [leetcode] 34. Find the first and last positions of elements in the sorted array
- C language: realize the exchange of two numbers without creating temporary variables
- Greed - 55. Jumping game
- Super easy to use PC end long screenshot tool
- [untitled]
- Common weak network testing tools
- Experience sharing of automatic test for students with monthly salary of 28K
- 2022.7.13-----leetcode.735
- Leetcode58. 最后一个单词的长度
猜你喜欢

Experience sharing of automatic test for students with monthly salary of 28K

Qt:qmessagebox message box, custom signal and slot

Protocols in swift

Differences among BRD, MRD and PRD
![[force deduction] 1337. Row K with the weakest combat effectiveness in the matrix](/img/6c/b5fd3350886fd74557439f5361e7f8.png)
[force deduction] 1337. Row K with the weakest combat effectiveness in the matrix

After 95, Alibaba P7 published the payroll: it's really heartbreaking

Dynamic planning - 62. Different paths

Selenium--WEB自动化测试工具

Common weak network testing tools

Implementation of online rental system based on SSM
随机推荐
Leetcode58. 最后一个单词的长度
Summary and interpretation of CONDA virtual environment
Appnium -- app automated test tool
In depth introduction to sap ui5 fileuploader control - why do you need a hidden iframe trial
Input upload file and echo FileReader and restrict the type of file selection
Greedy - 53. Maximum subarray sum
Push chart written by helm to harbor warehouse
LightPicture – 精致图床系统
Jumping game II in question 45 of C language power deduction. Ergodic jump
C language: find the number of 1 in binary stored in memory as an integer
Fourier series
Skillfully use stack backtracking to help you quickly locate problems
Dynamic programming - 474. One and zero
Prefix-Tuning: Optimizing Continuous Prompts for Generation
security异常处理机制
【luogu P4590】游园会(DP套DP)
Detailed explanation of string + memory function (C language)
Advanced Mathematics (Seventh Edition) Tongji University exercises 3-4 personal solutions (the last 8 questions)
CV2. Threshold(), CV2. Findcontours(), CV2. Findcontours image contour processing
Protocols in swift