The GCM/CCM mode of SM4 is defined in the RFC 8998 specification: https://datatracker.ietf.org/doc/html/rfc8998 At the same time, a minor issue in tcrypt is fixed. Tianjia Zhang (3): crypto: tcrypt - Fix the wrong position of return value test statement crypto: testmgr - Add GCM/CCM mode test of SM4 algorithm crypto: tcrypt: add GCM/CCM mode test for SM4 algorithm crypto/tcrypt.c | 58 ++++++++++++++++--- crypto/testmgr.c | 29 ++++++++++ crypto/testmgr.h | 148 +++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 228 insertions(+), 7 deletions(-) -- 2.19.1.3.ge56e4f7