add sms4 module

This commit is contained in:
Zhi Guan
2017-02-14 23:14:06 +08:00
parent 4e49434209
commit 01c76aa6a0
33 changed files with 3036 additions and 6 deletions

View File

@@ -236,6 +236,10 @@ static FUNCTION functions[] = {
#ifndef OPENSSL_NO_BLAKE2
{ FT_md, "blake2s256", dgst_main},
#endif
{ FT_cipher, "sms4-cbc", enc_main, enc_options },
{ FT_cipher, "sms4-ecb", enc_main, enc_options },
{ FT_cipher, "sms4-ofb", enc_main, enc_options },
{ FT_cipher, "sms4-cfb", enc_main, enc_options },
{ FT_cipher, "aes-128-cbc", enc_main, enc_options },
{ FT_cipher, "aes-128-ecb", enc_main, enc_options },
{ FT_cipher, "aes-192-cbc", enc_main, enc_options },

View File

@@ -118,6 +118,7 @@ my %cipher_disabler = (
cast5 => "cast",
);
foreach my $cmd (
"sms4-cbc", "sms4-ecb", "sms4-ofb", "sms4-cfb",
"aes-128-cbc", "aes-128-ecb",
"aes-192-cbc", "aes-192-ecb",
"aes-256-cbc", "aes-256-ecb",