16#ifndef HITLS_PKI_CSR_H
17#define HITLS_PKI_CSR_H
19#include "hitls_pki_types.h"
20#include "crypt_eal_pkey.h"
26typedef struct _HITLS_X509_Csr HITLS_X509_Csr;
struct EAL_PkeyCtx CRYPT_EAL_PkeyCtx
定义 crypt_eal_pkey.h:108
int32_t HITLS_X509_CsrParseBuff(int32_t format, const BSL_Buffer *encode, HITLS_X509_Csr **csr)
Parse the csr in the buffer.When the parameter is BSL_FORMAT_PEM and BSL_FORMAT_UNKNOWN,...
int32_t HITLS_X509_CsrVerify(HITLS_X509_Csr *csr)
Csr verify function
HITLS_X509_Csr * HITLS_X509_ProviderCsrNew(HITLS_PKI_LibCtx *libCtx, const char *attrName)
Create a new csr object using the provider mechanism
int32_t HITLS_X509_CsrGenBuff(int32_t format, HITLS_X509_Csr *csr, BSL_Buffer *buff)
Generate csr to store in buffer
HITLS_X509_Csr * HITLS_X509_CsrNew(void)
Allocate a pkcs10 csr.
int32_t HITLS_X509_CsrCtrl(HITLS_X509_Csr *csr, int32_t cmd, void *val, uint32_t valLen)
Generic function to process csr function
void HITLS_X509_CsrFree(HITLS_X509_Csr *csr)
Release the pkcs10 csr.
int32_t HITLS_X509_CsrSign(int32_t mdId, const CRYPT_EAL_PkeyCtx *prvKey, const HITLS_X509_SignAlgParam *algParam, HITLS_X509_Csr *csr)
Sign a CSR (Certificate Signing Request).
int32_t HITLS_X509_CsrParseFile(int32_t format, const char *path, HITLS_X509_Csr **csr)
Parse the csr in the file
int32_t HITLS_X509_CsrGenFile(int32_t format, HITLS_X509_Csr *csr, const char *path)
Generate csr to store in file
Signature algorithm parameters.
定义 hitls_pki_types.h:215