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

📄 cryptlib.cs

📁 老外写的加密库cryptlib(版本3.1)
💻 CS
📖 第 1 页 / 共 5 页
字号:
	public const int CERTINFO_NS_BASEURL                         = 2302; // netscape-base-url	public const int CERTINFO_NS_REVOCATIONURL                   = 2303; // netscape-revocation-url	public const int CERTINFO_NS_CAREVOCATIONURL                 = 2304; // netscape-ca-revocation-url	public const int CERTINFO_NS_CERTRENEWALURL                  = 2305; // netscape-cert-renewal-url	public const int CERTINFO_NS_CAPOLICYURL                     = 2306; // netscape-ca-policy-url	public const int CERTINFO_NS_SSLSERVERNAME                   = 2307; // netscape-ssl-server-name	public const int CERTINFO_NS_COMMENT                         = 2308; // netscape-comment	public const int CERTINFO_SET_HASHEDROOTKEY                  = 2309;	public const int CERTINFO_SET_ROOTKEYTHUMBPRINT              = 2310; // rootKeyThumbPrint	public const int CERTINFO_SET_CERTIFICATETYPE                = 2311; // 2 23 42 7 2 SET merchantData	public const int CERTINFO_SET_MERCHANTDATA                   = 2312;	public const int CERTINFO_SET_MERID                          = 2313; // merID	public const int CERTINFO_SET_MERACQUIRERBIN                 = 2314; // merAcquirerBIN	public const int CERTINFO_SET_MERCHANTLANGUAGE               = 2315; // merNames.language	public const int CERTINFO_SET_MERCHANTNAME                   = 2316; // merNames.name	public const int CERTINFO_SET_MERCHANTCITY                   = 2317; // merNames.city	public const int CERTINFO_SET_MERCHANTSTATEPROVINCE          = 2318; // merNames.stateProvince	public const int CERTINFO_SET_MERCHANTPOSTALCODE             = 2319; // merNames.postalCode	public const int CERTINFO_SET_MERCHANTCOUNTRYNAME            = 2320; // merNames.countryName	public const int CERTINFO_SET_MERCOUNTRY                     = 2321; // merCountry	public const int CERTINFO_SET_MERAUTHFLAG                    = 2322; // merAuthFlag	public const int CERTINFO_SET_CERTCARDREQUIRED               = 2323; // 2 23 42 7 4 SET tunneling	public const int CERTINFO_SET_TUNNELING                      = 2324;	public const int CERTINFO_SET_TUNNELLING                     = 2324;	public const int CERTINFO_SET_TUNNELINGFLAG                  = 2325; // tunneling	public const int CERTINFO_SET_TUNNELLINGFLAG                 = 2325;	public const int CERTINFO_SET_TUNNELINGALGID                 = 2326; // tunnelingAlgID	public const int CERTINFO_SET_TUNNELLINGALGID                = 2326; // S/MIME attributes	public const int CERTINFO_CMS_CONTENTTYPE                    = 2500; // 1 2 840 113549 1 9 4 messageDigest	public const int CERTINFO_CMS_MESSAGEDIGEST                  = 2501; // 1 2 840 113549 1 9 5 signingTime	public const int CERTINFO_CMS_SIGNINGTIME                    = 2502; // 1 2 840 113549 1 9 6 counterSignature	public const int CERTINFO_CMS_COUNTERSIGNATURE               = 2503; // counterSignature	public const int CERTINFO_CMS_SMIMECAPABILITIES              = 2504;	public const int CERTINFO_CMS_SMIMECAP_3DES                  = 2505; // 3DES encryption	public const int CERTINFO_CMS_SMIMECAP_AES                   = 2506; // AES encryption	public const int CERTINFO_CMS_SMIMECAP_CAST128               = 2507; // CAST-128 encryption	public const int CERTINFO_CMS_SMIMECAP_IDEA                  = 2508; // IDEA encryption	public const int CERTINFO_CMS_SMIMECAP_RC2                   = 2509; // RC2 encryption (w.128 key)	public const int CERTINFO_CMS_SMIMECAP_RC5                   = 2510; // RC5 encryption (w.128 key)	public const int CERTINFO_CMS_SMIMECAP_SKIPJACK              = 2511; // Skipjack encryption	public const int CERTINFO_CMS_SMIMECAP_DES                   = 2512; // DES encryption	public const int CERTINFO_CMS_SMIMECAP_PREFERSIGNEDDATA      = 2513; // preferSignedData	public const int CERTINFO_CMS_SMIMECAP_CANNOTDECRYPTANY      = 2514; // canNotDecryptAny	public const int CERTINFO_CMS_RECEIPTREQUEST                 = 2515;	public const int CERTINFO_CMS_RECEIPT_CONTENTIDENTIFIER      = 2516; // contentIdentifier	public const int CERTINFO_CMS_RECEIPT_FROM                   = 2517; // receiptsFrom	public const int CERTINFO_CMS_RECEIPT_TO                     = 2518; // receiptsTo	public const int CERTINFO_CMS_SECURITYLABEL                  = 2519;	public const int CERTINFO_CMS_SECLABEL_CLASSIFICATION        = 2520; // securityClassification	public const int CERTINFO_CMS_SECLABEL_POLICY                = 2521; // securityPolicyIdentifier	public const int CERTINFO_CMS_SECLABEL_PRIVACYMARK           = 2522; // privacyMark	public const int CERTINFO_CMS_SECLABEL_CATTYPE               = 2523; // securityCategories.securityCategory.type	public const int CERTINFO_CMS_SECLABEL_CATVALUE              = 2524; // securityCategories.securityCategory.value	public const int CERTINFO_CMS_MLEXPANSIONHISTORY             = 2525;	public const int CERTINFO_CMS_MLEXP_ENTITYIDENTIFIER         = 2526; // mlData.mailListIdentifier.issuerAndSerialNumber	public const int CERTINFO_CMS_MLEXP_TIME                     = 2527; // mlData.expansionTime	public const int CERTINFO_CMS_MLEXP_NONE                     = 2528; // mlData.mlReceiptPolicy.none	public const int CERTINFO_CMS_MLEXP_INSTEADOF                = 2529; // mlData.mlReceiptPolicy.insteadOf.generalNames.generalName	public const int CERTINFO_CMS_MLEXP_INADDITIONTO             = 2530; // mlData.mlReceiptPolicy.inAdditionTo.generalNames.generalName	public const int CERTINFO_CMS_CONTENTHINTS                   = 2531;	public const int CERTINFO_CMS_CONTENTHINT_DESCRIPTION        = 2532; // contentDescription	public const int CERTINFO_CMS_CONTENTHINT_TYPE               = 2533; // contentType	public const int CERTINFO_CMS_EQUIVALENTLABEL                = 2534;	public const int CERTINFO_CMS_EQVLABEL_POLICY                = 2535; // securityPolicyIdentifier	public const int CERTINFO_CMS_EQVLABEL_CLASSIFICATION        = 2536; // securityClassification	public const int CERTINFO_CMS_EQVLABEL_PRIVACYMARK           = 2537; // privacyMark	public const int CERTINFO_CMS_EQVLABEL_CATTYPE               = 2538; // securityCategories.securityCategory.type	public const int CERTINFO_CMS_EQVLABEL_CATVALUE              = 2539; // securityCategories.securityCategory.value	public const int CERTINFO_CMS_SIGNINGCERTIFICATE             = 2540;	public const int CERTINFO_CMS_SIGNINGCERT_ESSCERTID          = 2541; // certs.essCertID	public const int CERTINFO_CMS_SIGNINGCERT_POLICIES           = 2542; // policies.policyInformation.policyIdentifier	public const int CERTINFO_CMS_SIGTYPEIDENTIFIER              = 2543;	public const int CERTINFO_CMS_SIGTYPEID_ORIGINATORSIG        = 2544; // originatorSig	public const int CERTINFO_CMS_SIGTYPEID_DOMAINSIG            = 2545; // domainSig	public const int CERTINFO_CMS_SIGTYPEID_ADDITIONALATTRIBUTES = 2546; // additionalAttributesSig	public const int CERTINFO_CMS_SIGTYPEID_REVIEWSIG            = 2547; // reviewSig	public const int CERTINFO_CMS_NONCE                          = 2548; // randomNonce	public const int CERTINFO_SCEP_MESSAGETYPE                   = 2549; // messageType	public const int CERTINFO_SCEP_PKISTATUS                     = 2550; // pkiStatus	public const int CERTINFO_SCEP_FAILINFO                      = 2551; // failInfo	public const int CERTINFO_SCEP_SENDERNONCE                   = 2552; // senderNonce	public const int CERTINFO_SCEP_RECIPIENTNONCE                = 2553; // recipientNonce	public const int CERTINFO_SCEP_TRANSACTIONID                 = 2554; // transID	public const int CERTINFO_CMS_SPCAGENCYINFO                  = 2555;	public const int CERTINFO_CMS_SPCAGENCYURL                   = 2556; // spcAgencyInfo.url	public const int CERTINFO_CMS_SPCSTATEMENTTYPE               = 2557;	public const int CERTINFO_CMS_SPCSTMT_INDIVIDUALCODESIGNING  = 2558; // individualCodeSigning	public const int CERTINFO_CMS_SPCSTMT_COMMERCIALCODESIGNING  = 2559; // commercialCodeSigning	public const int CERTINFO_CMS_SPCOPUSINFO                    = 2560;	public const int CERTINFO_CMS_SPCOPUSINFO_NAME               = 2561; // spcOpusInfo.name	public const int CERTINFO_CMS_SPCOPUSINFO_URL                = 2562; // spcOpusInfo.url	public const int CERTINFO_LAST                               = 2563;	public const int KEYINFO_FIRST                               = 3000; // *******************	public const int KEYINFO_QUERY                               = 3001; // Keyset query	public const int KEYINFO_QUERY_REQUESTS                      = 3002; // Query of requests in cert store	public const int KEYINFO_LAST                                = 3003;	public const int DEVINFO_FIRST                               = 4000; // *******************	public const int DEVINFO_INITIALISE                          = 4001; // Initialise device for use	public const int DEVINFO_INITIALIZE                          = 4001;	public const int DEVINFO_AUTHENT_USER                        = 4002; // Authenticate user to device	public const int DEVINFO_AUTHENT_SUPERVISOR                  = 4003; // Authenticate supervisor to dev.	public const int DEVINFO_SET_AUTHENT_USER                    = 4004; // Set user authent.value	public const int DEVINFO_SET_AUTHENT_SUPERVISOR              = 4005; // Set supervisor auth.val.	public const int DEVINFO_ZEROISE                             = 4006; // Zeroise device	public const int DEVINFO_ZEROIZE                             = 4006;	public const int DEVINFO_LOGGEDIN                            = 4007; // Whether user is logged in	public const int DEVINFO_LABEL                               = 4008; // Device/token label	public const int DEVINFO_LAST                                = 4009;	public const int ENVINFO_FIRST                               = 5000; // *********************	public const int ENVINFO_DATASIZE                            = 5001; // Data size information	public const int ENVINFO_COMPRESSION                         = 5002; // Compression information	public const int ENVINFO_CONTENTTYPE                         = 5003; // Inner CMS content type	public const int ENVINFO_DETACHEDSIGNATURE                   = 5004; // Generate CMS detached signature	public const int ENVINFO_SIGNATURE_RESULT                    = 5005; // Signature check result	public const int ENVINFO_MAC                                 = 5006; // Use MAC instead of encrypting	public const int ENVINFO_CURRENT_COMPONENT                   = 5007; // Cursor management: Relative pos.	public const int ENVINFO_PASSWORD                            = 5008; // User password	public const int ENVINFO_KEY                                 = 5009; // Conventional encryption key	public const int ENVINFO_SIGNATURE                           = 5010; // Signature/signature check key	public const int ENVINFO_SIGNATURE_EXTRADATA                 = 5011; // Extra information added to CMS sigs	public const int ENVINFO_RECIPIENT                           = 5012; // Recipient email address	public const int ENVINFO_PUBLICKEY                           = 5013; // PKC encryption key	public const int ENVINFO_PRIVATEKEY                          = 5014; // PKC decryption key	public const int ENVINFO_PRIVATEKEY_LABEL                    = 5015; // Label of PKC decryption key	public const int ENVINFO_ORIGINATOR                          = 5016; // Originator info/key	public const int ENVINFO_SESSIONKEY                          = 5017; // Session key	public const int ENVINFO_HASH                                = 5018; // Hash value	public const int ENVINFO_TIMESTAMP_AUTHORITY                 = 5019; // Timestamp authority	public const int ENVINFO_KEYSET_SIGCHECK                     = 5020; // Signature check keyset	public const int ENVINFO_KEYSET_ENCRYPT                      = 5021; // PKC encryption keyset	public const int ENVINFO_KEYSET_DECRYPT                      = 5022; // PKC decryption keyset	public const int ENVINFO_LAST                                = 5023;	public const int SESSINFO_FIRST                              = 6000; // ********************	public const int SESSINFO_ACTIVE                             = 6001; // Whether session is active	public const int SESSINFO_CONNECTIONACTIVE                   = 6002; // Whether network connection is active	public const int SESSINFO_USERNAME                           = 6003; // User name	public const int SESSINFO_PASSWORD                           = 6004; // Password	public const int SESSINFO_PRIVATEKEY                         = 6005; // Server/client private key	public const int SESSINFO_KEYSET                             = 6006; // Certificate store	public const int SESSINFO_SERVER_NAME                        = 6007; // Server name	public const int SESSINFO_SERVER_PORT                        = 6008; // Server port number	public const int SESSINFO_SERVER_FINGERPRINT                 = 6009; // Server key fingerprint	public const int SESSINFO_CLIENT_NAME                        = 6010; // Client name	public const int SESSINFO_CLIENT_PORT                        = 6011; // Client port number	public const int SESSINFO_SESSION                            = 6012; // Transport mechanism	public const int SESSINFO_NETWORKSOCKET                      = 6013; // User-supplied network socket	public const int SESSINFO_VERSION                            = 6014; // Protocol version	public const int SESSINFO_REQUEST                            = 6015; // Cert.request object	public const int SESSINFO_RESPONSE                           = 6016; // Cert.response object	public const int SESSINFO_CACERTIFICATE                      = 6017; // Issuing CA certificate	public const int SESSINFO_TSP_MSGIMPRINT                     = 6018; // TSP message imprint	public const int SESSINFO_CMP_REQUESTTYPE                    = 6019; // Request type	public const int SESSINFO_CMP_PKIBOOT                        = 6020; // Enable PKIBoot facility	public const int SESSINFO_CMP_PRIVKEYSET                     = 6021; // Private-key keyset	public const int SESSINFO_SSH_SUBSYSTEM                      = 6022; // SSH subsystem	public const int SESSINFO_SSH_PORTFORWARD                    = 6023; // SSH port forwarding	public const int SESSINFO_LAST                               = 6024;	public const int USERINFO_FIRST                              = 7000; // ********************	public const int USERINFO_PASSWORD                           = 7001; // Password	public const int USERINFO_CAKEY_CERTSIGN                     = 7002; // CA cert signing key	public const int USERINFO_CAKEY_CRLSIGN                      = 7003; // CA CRL signing key	public const int USERINFO_CAKEY_RTCSSIGN                     = 7004; // CA RTCS signing key	public const int USERINFO_CAKEY_OCSPSIGN                     = 7005; // CA OCSP signing key	public const int USERINFO_LAST                               = 7006;	public const int ATTRIBUTE_LAST                              = 7006;		/****************************************************************************	*																			*	*						Attribute Subtypes and Related Values				*	*																			*	****************************************************************************/		/* Flags for the X.509 keyUsage extension */		public const int KEYUSAGE_NONE                            = 0x000;	public const int KEYUSAGE_DIGITALSIGNATURE                = 0x001;	public const int KEYUSAGE_NONREPUDIATION                  = 0x002;	public const int KEYUSAGE_KEYENCIPHERMENT                 = 0x004;	public const int KEYUSAGE_DATAENCIPHERMENT                = 0x008;	public const int KEYUSAGE_KEYAGREEMENT                    = 0x010;	public const int KEYUSAGE_KEYCERTSIGN                     = 0x020;	public const int KEYUSAGE_CRLSIGN                         = 0x040;	public const int KEYUSAGE_ENCIPHERONLY                    = 0x080;	public const int KEYUSAGE_DECIPHERONLY                    = 0x100;	public const int KEYUSAGE_LAST                            = 0x200; // Last possible value		/* X.509 cRLReason and cryptlib cRLExtReason codes */		public const int CRLREASON_UNSPECIFIED          = 0 ;	public const int CRLREASON_KEYCOMPROMISE        = 1 ;	public const int CRLREASON_CACOMPROMISE         = 2 ;	public const int CRLREASON_AFFILIATIONCHANGED   = 3 ;	public const int CRLREASON_SUPERSEDED           = 4 ;	public const int CRLREASON_CESSATIONOFOPERATION = 5 ;	public const int CRLREASON_CERTIFICATEHOLD      = 6 ;	public const int CRLREASON_REMOVEFROMCRL        = 8 ;	public const int CRLREASON_LAST                 = 9 ; // End of standard CRL reasons	public const int CRLREASON_NEVERVALID           = 10;	public const int CRLEXTREASON_LAST              = 11;		/* X.509 CRL reason flags.  These identify the same thing as the cRLReason	   codes but allow for multiple reasons to be specified.  Note that these

⌨️ 快捷键说明

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