16#ifndef HITLS_PKI_CERT_H
17#define HITLS_PKI_CERT_H
19#include "hitls_pki_types.h"
20#include "crypt_eal_pkey.h"
26typedef struct _HITLS_X509_Cert HITLS_X509_Cert;
80 HITLS_X509_Cert *cert);
151 const BSL_Buffer *encode, HITLS_X509_Cert **cert);
193 const BSL_Buffer *encode, HITLS_X509_List **certlist);
231 const char *path, HITLS_X509_Cert **cert);
269 const char *path, HITLS_X509_List **certlist);
CRYPT_MD_AlgId
定义 crypt_algid.h:68
struct EAL_PkeyCtx CRYPT_EAL_PkeyCtx
定义 crypt_eal_pkey.h:108
int32_t HITLS_X509_ProviderCertParseFile(HITLS_PKI_LibCtx *libCtx, const char *attrName, const char *format, const char *path, HITLS_X509_Cert **cert)
Parse a certificate file using the provider mechanism
int32_t HITLS_X509_CertParseFile(int32_t format, const char *path, HITLS_X509_Cert **cert)
Parse the CERT in the file.
HITLS_X509_Cert * HITLS_X509_ProviderCertNew(HITLS_PKI_LibCtx *libCtx, const char *attrName)
Create a new X509 certificate object using the provider mechanism
int32_t HITLS_X509_CertParseBundleBuff(int32_t format, const BSL_Buffer *encode, HITLS_X509_List **certlist)
Parse multiple certificates from a buffer.
int32_t HITLS_X509_CertCtrl(HITLS_X509_Cert *cert, int32_t cmd, void *val, uint32_t valLen)
Generic function to process certificate.
int32_t HITLS_X509_CertParseBuff(int32_t format, const BSL_Buffer *encode, HITLS_X509_Cert **cert)
Parse the CERT in the buffer.
int32_t HITLS_X509_CertGenFile(int32_t format, HITLS_X509_Cert *cert, const char *path)
Generate a certificate file.
int32_t HITLS_X509_ProviderCertParseBundleBuff(HITLS_PKI_LibCtx *libCtx, const char *attrName, const char *format, const BSL_Buffer *encode, HITLS_X509_List **certlist)
Parse multiple certificates from a buffer using the provider mechanism
void HITLS_X509_CertFree(HITLS_X509_Cert *cert)
Unallocate a certificate.
int32_t HITLS_X509_CertDigest(HITLS_X509_Cert *cert, CRYPT_MD_AlgId mdId, uint8_t *data, uint32_t *dataLen)
Compute the digest of the certificate.
int32_t HITLS_X509_CertParseBundleFile(int32_t format, const char *path, HITLS_X509_List **certlist)
Parse the CERTs in the file.
int32_t HITLS_X509_ProviderCertParseBuff(HITLS_PKI_LibCtx *libCtx, const char *attrName, const char *format, const BSL_Buffer *encode, HITLS_X509_Cert **cert)
Parse a certificate buffer using the provider mechanism
int32_t HITLS_X509_CertSign(int32_t mdId, const CRYPT_EAL_PkeyCtx *prvKey, const HITLS_X509_SignAlgParam *algParam, HITLS_X509_Cert *cert)
Sign a certificate.
HITLS_X509_Cert * HITLS_X509_CertNew(void)
Allocate a certificate.
int32_t HITLS_X509_CertGenBuff(int32_t format, HITLS_X509_Cert *cert, BSL_Buffer *buff)
Generates an encoded certificate.
int32_t HITLS_X509_ProviderCertParseBundleFile(HITLS_PKI_LibCtx *libCtx, const char *attrName, const char *format, const char *path, HITLS_X509_List **certlist)
Parse multiple certificates from a bundle file using the provider mechanism
HITLS_X509_Cert * HITLS_X509_CertDup(HITLS_X509_Cert *src)
Duplicate a certificate.
Signature algorithm parameters.
定义 hitls_pki_types.h:215