update saf

This commit is contained in:
Zhi Guan
2017-02-22 18:21:02 +08:00
parent c966a3a3d1
commit b683fd00e0
11 changed files with 1488 additions and 39 deletions

View File

@@ -51,9 +51,9 @@
#include <openssl/cmac.h>
#include <openssl/gmsdf.h>
#include <openssl/gmsaf.h>
#include <openssl/engine.h>
typedef struct {
typedef struct saf_app_st {
const char *config_path;
ENGINE *engine;
} SAF_APP;
@@ -75,6 +75,8 @@ typedef struct {
typedef struct {
SAF_SYMMKEYOBJ obj;
unsigned char key[64];
int keylen;
const EVP_CIPHER *cipher;
EVP_CIPHER_CTX *cipher_ctx;
CMAC_CTX *cmac_ctx;
} SAF_KEY;