Extend driver support with ecb(sm4), cbc(sm4), ofb(sm4), cfb(sm4) and
rfc3686(ctr(sm4)) skcipher algorithms.
Also add ofb(sm4), cfb(sm4) and rfc3686(ctr(sm4)) testvectors to testmgr.
The patchset has been tested with the eip197c_iewxkbc configuration
on the Xilinx VCU118 development board, including the crypto extra tests.
Note that this patchset applies on top of the earlier submitted
"Add support for (HMAC) SM3" series.
changes since v1:
- rebased on top of v2 of "Added support for the CHACHA20 skcipher",
fixing an issue that caused SM4 to no longer function
Pascal van Leeuwen (7):
crypto: inside-secure - Add support for the ecb(sm4) skcipher
crypto: inside-secure - Add support for the cbc(sm4) skcipher
crypto: inside-secure - Add support for the ofb(sm4) skcipher
crypto: testmgr - Added testvectors for the ofb(sm4) & cfb(sm4)
skciphers
crypto: inside-secure - Add support for the cfb(sm4) skcipher
crypto: inside-secure - Add support for the rfc3685(ctr(sm4)) skcipher
crypto: testmgr - Added testvectors for the rfc3686(ctr(sm4)) skcipher
crypto/testmgr.c | 18 ++
crypto/testmgr.h | 127 +++++++++++++
drivers/crypto/inside-secure/safexcel.c | 5 +
drivers/crypto/inside-secure/safexcel.h | 6 +
drivers/crypto/inside-secure/safexcel_cipher.c | 253 +++++++++++++++++++++++++
5 files changed, 409 insertions(+)
--
1.8.3.1