From a769886aa39c944b633b049ad9ddb2cc82ce7e4b Mon Sep 17 00:00:00 2001 From: Zhi Guan Date: Mon, 25 Apr 2016 19:22:36 +0200 Subject: [PATCH] =?UTF-8?q?Updated=20SM4=E5=88=86=E7=BB=84=E5=AF=86?= =?UTF-8?q?=E7=A0=81=20(markdown)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SM4分组密码.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/SM4分组密码.md b/SM4分组密码.md index 3957082..6349125 100644 --- a/SM4分组密码.md +++ b/SM4分组密码.md @@ -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 ```