mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-08-11 16:33:40 +08:00
version 2.5.3
new sms4 api, go api and ciphersuites
This commit is contained in:
@@ -62,12 +62,12 @@
|
||||
#include <openssl/crypto.h>
|
||||
#include <openssl/objects.h>
|
||||
#include "evp_locl.h"
|
||||
# include "internal/evp_int.h"
|
||||
#include "../modes/modes_lcl.h"
|
||||
#include "internal/evp_int.h"
|
||||
#include "modes_lcl.h"
|
||||
|
||||
#ifndef OPENSSL_NO_SMS4
|
||||
|
||||
#include <openssl/sms4.h>
|
||||
# include <openssl/sms4.h>
|
||||
|
||||
typedef struct {
|
||||
union {
|
||||
@@ -434,10 +434,10 @@ static int sms4_gcm_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
|
||||
|
||||
}
|
||||
|
||||
#define SMS4_GCM_BLOCK_SIZE 1
|
||||
#define SMS4_GCM_IV_LENGTH 12
|
||||
# define SMS4_GCM_BLOCK_SIZE 1
|
||||
# define SMS4_GCM_IV_LENGTH 12
|
||||
|
||||
#define SMS4_GCM_FLAGS (EVP_CIPH_FLAG_DEFAULT_ASN1 \
|
||||
# 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_GCM_MODE \
|
||||
|
||||
Reference in New Issue
Block a user