Add ECDHE-SM2-WITH-SMS4-GCM-SM3

This commit is contained in:
Yiming Jing
2018-12-11 18:51:32 -08:00
parent 1c00e47681
commit ece7d87413
2 changed files with 16 additions and 1 deletions

View File

@@ -440,7 +440,7 @@ static int sms4_gcm_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
#define SMS4_GCM_FLAGS (EVP_CIPH_FLAG_DEFAULT_ASN1 \
| EVP_CIPH_CUSTOM_IV | EVP_CIPH_FLAG_CUSTOM_CIPHER \
| EVP_CIPH_ALWAYS_CALL_INIT | EVP_CIPH_CTRL_INIT \
| EVP_CIPH_CUSTOM_COPY \
| EVP_CIPH_CUSTOM_COPY | EVP_CIPH_GCM_MODE \
| EVP_CIPH_FLAG_AEAD_CIPHER)
static const EVP_CIPHER sms4_gcm = {