加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
gost_prov.h 1.13 KB
一键复制 编辑 原始数据 按行查看 历史
/**********************************************************************
* gost_prov.h - The provider itself *
* *
* Copyright (c) 2021 Richard Levitte <richard@levitte.org> *
* This file is distributed under the same license as OpenSSL *
* *
* Requires OpenSSL 3.0 for compilation *
**********************************************************************/
#include <openssl/core.h>
#include <openssl/engine.h>
struct provider_ctx_st {
OSSL_LIB_CTX *libctx;
const OSSL_CORE_HANDLE *core_handle;
struct proverr_functions_st *proverr_handle;
/*
* "internal" GOST engine, which is the implementation that all the
* provider functions will use to access the crypto functionality.
* This is pure hackery, but allows us to quickly wrap all the ENGINE
* function with provider wrappers. There is no other supported way
* to do this.
*/
ENGINE *e;
};
typedef struct provider_ctx_st PROV_CTX;
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化