Updated SM4分组密码 (markdown)

Zhi Guan
2016-04-25 19:22:36 +02:00
parent 270b0b6d0f
commit a769886aa3

@@ -6,6 +6,12 @@ SMS4算法存在一定的性能问题。由于SMS4设计时的预计应用领域
GmSSL提供了SMS4的实现。
## SMS4的工作模式
## 在命令行中使用SMS4
调用SMS4的命令行例子如下
```
@@ -13,7 +19,7 @@ $ echo hello | gmssl enc -sms4-cbc > ciphertext.bin
enter sms4-cbc encryption password:********
Verifying - enter sms4-cbc encryption password:********
$ cat cipehrtext.bin | gems enc -sms4-cbc -d
$ cat cipehrtext.bin | gmssl enc -sms4-cbc -d
enter sms4-cbc decryption password:********
hello
```