mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-19 23:06:28 +08:00
add sms4 module
This commit is contained in:
@@ -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 },
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user