⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 osppkcs7.h

📁 mgcp协议源代码。支持多种编码:g711
💻 H
字号:
/**########################################################################*########################################################################*########################################################################*                                                               *   COPYRIGHT (c) 1998, 1999 by TransNexus, LLC                          *                                                                    *   This software contains proprietary and confidential information  *   of TransNexus, LLC. Except as may be set forth in the license    *   agreement under which this software is supplied, use, disclosure, *   or reproduction is prohibited without the prior, express, written*   consent of TransNexus, LLC.                                      *                                     *******#########################################################################*#########################################################################*#########################################################################*//* * osppkcs7.h - Constants and prototypes for PKCS#7 cryptographic messages */#ifndef _OSP_PKCS7_H#define _OSP_PKCS7_H#include "osp.h"#include "ospasn1.h"#include "ospx500.h"#include "ospx509.h"#include "osppkcs1.h"/*-------------------------------------------*//* SIGNED DATA typedef                                           *//*-------------------------------------------*/ #define OSPC_SIGNERINFO_MAX_ATTRIBUTES  10#define OSPC_PKCS7_SIGNERINFO_VERSION   1#define OSPC_PKCS7_SIGNEDDATA_VERSION   1#ifdef __cplusplusextern "C" {#endif    /*     * Member functions     */    int     OSPPPKCS7SignerInfosCreate(    OSPTASN1OBJECT      **ospvSignerInfos,    OSPTASN1OBJECT      *ospvSignerInfo);    int    OSPPPKCS7SignerInfoCreate(    OSPTASN1OBJECT      **ospvSignerInfo,    OSPTASN1OBJECT      *ospvDataContent,    OSPTASN1OBJECT      *ospvDigestAlgorithm,    OSPTASN1OBJECT      *ospvSignerCertInfo,    OSPTASN1OBJECT      *ospvSignerPrivateKey);    int    OSPPPKCS7CertificatesCreate(    OSPTASN1OBJECT      **ospvCertificates,    OSPTASN1OBJECT      * ospvCertificate);    int    OSPPPKCS7DigestAlgorithmsCreate(    OSPTASN1OBJECT      **ospvDigestAlgorithms,    OSPTASN1OBJECT      *ospvDigestAlgorithm);    int    OSPPPKCS7SignedDataCreate(    OSPTASN1OBJECT  **ospvSignedData,    OSPTASN1OBJECT  *ospvContentInfo,       OSPTASN1OBJECT  *ospvSignerCertificates,     OSPTASN1OBJECT  *ospvSignerInfos,           OSPTASN1OBJECT  *ospvDigestAlgorithms);    int    OSPPPKCS7ContentInfoCreate(     OSPTASN1OBJECT **ospvContentInfo,    OSPTASN1OBJECT *ospvContent,    OSPEASN1ID ospvContentTypeId,     int ospvSignatureOnly);    int    OSPPPKCS7SignatureCreate(    unsigned char   *ospvContent,           /* In - data to signed */    unsigned        ospvContentLength,      /* In - length of data to sign */    OSPTASN1OBJECT  *ospvDigestAlgorithm,   /* In - ptr to digest Algorithm */    OSPTASN1OBJECT  *ospvSignerCertInfo,    /* In - ptr to signer cert info */    OSPTASN1OBJECT  *ospvSignerPrivateKeyInfo,                                            /* In - ptr to private key struct */    int             ospvSignatureOnly,      /* In - TRUE - no content in sig                                            FALSE- content included in sig */    unsigned char   **ospvSignature,        /* Out - ptr to ptr to sig store */    unsigned        *ospvSignatureLength);  /* Out - length of signature */    int     OSPPPKCS7SignatureParse(    OSPTASN1OBJECT **ospvSignatureObject,    unsigned char *ospvSignature,    unsigned int  ospvSignatureLength);    int    OSPPPKCS7SignatureGetContent(    OSPTASN1OBJECT *ospvSignatureObject,    unsigned char **ospvContent,     unsigned int  *ospvContentLength,    OSPTASN1ELEMENTINFO **);    int     OSPPPKCS7SignatureVerify(    OSPTASN1OBJECT *ospvSignatureObject,    unsigned char  *ospvContent,     unsigned int   ospvContentLength,    OSPTASN1OBJECT **ospvAuthorityCertificates,    unsigned int   ospvNumberOfAuthorityCertificates);    int    OSPPPKCS7DigestInfoCreate(    OSPTASN1OBJECT  **ospvDigestInfo,    OSPTASN1OBJECT  *ospvDigestAlgorithm,        unsigned char *ospvContent,         unsigned int ospvContentLength);    /*     * Non-Member functions     */#ifdef __cplusplus}#endif#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -