From 12801adec23e5bef79871575a340e918dbd61f42 Mon Sep 17 00:00:00 2001 From: Sun Yimin Date: Sat, 20 Mar 2021 21:53:07 +0800 Subject: [PATCH] =?UTF-8?q?Updated=20SM4=E6=80=A7=E8=83=BD=E4=BC=98?= =?UTF-8?q?=E5=8C=96=20(markdown)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SM4性能优化.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/SM4性能优化.md b/SM4性能优化.md index a925c48..5f52051 100644 --- a/SM4性能优化.md +++ b/SM4性能优化.md @@ -85,5 +85,8 @@ asm部分改造自aes的实现,优化结果很惊人! BenchmarkSM4GCMSeal8K-6 35432 33863 ns/op 241.92 MB/s 0 B/op 0 allocs/op BenchmarkSM4GCMOpen8K-6 35214 33940 ns/op 241.36 MB/s 0 B/op 0 allocs/op +# CCM及CMAC +CMAC使用CBC模式加密来生成MAC,基于CBC模式的串行化特定以及block加密的性能,其性能必定没有GCM模式好。 + # CFB和OFB Golang没提供这两种模式的优化接口,可能这两种模式不怎么推荐使用了,况且也就CFB解密可以并行。 \ No newline at end of file