![]() |
API参考
|
CMS public APIs. 更多...
#include "hitls_pki_types.h"#include "bsl_params.h"#include "hitls_pki_cert.h"#include "crypt_eal_pkey.h"
类型定义 | |
| typedef struct _HITLS_CMS | HITLS_CMS |
函数 | |
| HITLS_CMS * | HITLS_CMS_ProviderNew (HITLS_PKI_LibCtx *libCtx, const char *attrName, int32_t dataType) |
| Create a new CMS handle | |
| void | HITLS_CMS_Free (HITLS_CMS *cms) |
| Free CMS structure | |
| int32_t | HITLS_CMS_ProviderParseBuff (HITLS_PKI_LibCtx *libCtx, const char *attrName, const BSL_Param *param, const BSL_Buffer *encode, HITLS_CMS **cms) |
| cms parse | |
| int32_t | HITLS_CMS_ProviderParseFile (HITLS_PKI_LibCtx *libCtx, const char *attrName, const BSL_Param *param, const char *path, HITLS_CMS **cms) |
| cms parse file | |
| int32_t | HITLS_CMS_DataSign (HITLS_CMS *cms, CRYPT_EAL_PkeyCtx *prvKey, HITLS_X509_Cert *cert, BSL_Buffer *msg, const BSL_Param *optionalParam) |
| Create signer information and optionally perform one-shot signing. | |
| int32_t | HITLS_CMS_DataVerify (HITLS_CMS *cms, BSL_Buffer *msg, const BSL_Param *inputParam, BSL_Buffer *output) |
| Verify CMS SignedData signatures | |
| int32_t | HITLS_CMS_DataInit (int32_t option, HITLS_CMS *cms, const BSL_Param *param) |
| Initialize streaming operation for CMS SignedData (unified interface) | |
| int32_t | HITLS_CMS_DataUpdate (HITLS_CMS *cms, const BSL_Buffer *input) |
| Update streaming operation with input data chunk (unified interface) | |
| int32_t | HITLS_CMS_DataFinal (HITLS_CMS *cms, const BSL_Param *param) |
| Finalize streaming operation (unified interface) | |
| int32_t | HITLS_CMS_Ctrl (HITLS_CMS *cms, int32_t cmd, void *val, uint32_t valLen) |
| Control and modify CMS auxiliary data (certificates, CRLs, etc.) | |
CMS public APIs.