如果查看设备是否支持国密加密卡
如果设备上插了国密卡,那么有几点需要判断:
1)、国密卡是否存在,查看隧道的算法选择,如果读取到了国密卡,那么算法可以选择国密办算法;如果读取不到国密卡,那么算法选择的国密办算法是灰色的。
2)、在命令行debug目录中运行hectest命令查看加密卡运行情况:General代表正常;如果是unknown,那么说明加密卡有问题。
RG-WALL login: debug
[debug@RG-WALL]# hectest
Hard Encrypt Card Test
Card Model: SJY115E
# Openning Card...Success!
# SM1 Test:
## ECB Algorithm: Algorithm Type:
General(SM1)
## ECB Speed:
Encrypted 1024 bytes data 10000 times in 1314399us, speed = 62325064.000(59.438M)bps
## ECB ErrorRate:
Encrypted and decrypted 1024 bytes data 10000 times, error 0 times
## CBC Algorithm:
Algorithm Type: General(SM1)
## CBC Speed:
Encrypted 1024 bytes data 10000 times in 1419820us, speed = 57697456.000(55.025M)bps
## CBC ErrorRate:
Encrypted and decrypted 1024 bytes data 10000 times, error 0 times
# Closing card...finished!
Test Completed!
[debug@RG-WALL]#