]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: testmgr - Add GCM/CCM mode test of SM4 algorithm
authorTianjia Zhang <tianjia.zhang@linux.alibaba.com>
Fri, 13 Aug 2021 07:55:07 +0000 (15:55 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Sat, 21 Aug 2021 07:44:57 +0000 (15:44 +0800)
commitbfefbbe971f2156fa58297673cdced3a4a7c7399
tree1f37204297096029a4827c0d505f6244a581a9ea
parentda67e25ee733f87ac5d2b85c4a6f4a3d22beef39
crypto: testmgr - Add GCM/CCM mode test of SM4 algorithm

The GCM/CCM mode of the SM4 algorithm is defined in the rfc 8998
specification, and the test case data also comes from rfc 8998.

Signed-off-by: Tianjia Zhang <tianjia.zhang@linux.alibaba.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/testmgr.c
crypto/testmgr.h