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

📄 cryptlib.cs

📁 老外写的加密库cryptlib(版本3.1)
💻 CS
📖 第 1 页 / 共 5 页
字号:
	public const int OPTION_CMS_DEFAULTATTRIBUTES                = 119 ; // Add default CMS attributes	public const int OPTION_SMIME_DEFAULTATTRIBUTES              = 119 ; // LDAP keyset options	public const int OPTION_KEYS_LDAP_OBJECTCLASS                = 120 ; // Object class	public const int OPTION_KEYS_LDAP_OBJECTTYPE                 = 121 ; // Object type to fetch	public const int OPTION_KEYS_LDAP_FILTER                     = 122 ; // Query filter	public const int OPTION_KEYS_LDAP_CACERTNAME                 = 123 ; // CA certificate attribute name	public const int OPTION_KEYS_LDAP_CERTNAME                   = 124 ; // Certificate attribute name	public const int OPTION_KEYS_LDAP_CRLNAME                    = 125 ; // CRL attribute name	public const int OPTION_KEYS_LDAP_EMAILNAME                  = 126 ; // Email attribute name	public const int OPTION_DEVICE_PKCS11_DVR01                  = 127 ; // Name of first PKCS #11 driver	public const int OPTION_DEVICE_PKCS11_DVR02                  = 128 ; // Name of second PKCS #11 driver	public const int OPTION_DEVICE_PKCS11_DVR03                  = 129 ; // Name of third PKCS #11 driver	public const int OPTION_DEVICE_PKCS11_DVR04                  = 130 ; // Name of fourth PKCS #11 driver	public const int OPTION_DEVICE_PKCS11_DVR05                  = 131 ; // Name of fifth PKCS #11 driver	public const int OPTION_DEVICE_PKCS11_HARDWAREONLY           = 132 ; // Use only hardware mechanisms	public const int OPTION_NET_SOCKS_SERVER                     = 133 ; // Socks server name	public const int OPTION_NET_SOCKS_USERNAME                   = 134 ; // Socks user name	public const int OPTION_NET_HTTP_PROXY                       = 135 ; // Web proxy server	public const int OPTION_NET_CONNECTTIMEOUT                   = 136 ; // Timeout for network connection setup	public const int OPTION_NET_TIMEOUT                          = 137 ; // Timeout for network read/write	public const int OPTION_MISC_ASYNCINIT                       = 138 ; // Whether to init cryptlib async'ly	public const int OPTION_MISC_SIDECHANNELPROTECTION           = 139 ; // Protect against side-channel attacks	public const int OPTION_CONFIGCHANGED                        = 140 ; // Whether in-mem.opts match on-disk ones	public const int OPTION_SELFTESTOK                           = 141 ; // Whether self-test was completed and OK	public const int OPTION_LAST                                 = 142 ;	public const int CTXINFO_FIRST                               = 1000; // ********************	public const int CTXINFO_ALGO                                = 1001; // Algorithm	public const int CTXINFO_MODE                                = 1002; // Mode	public const int CTXINFO_NAME_ALGO                           = 1003; // Algorithm name	public const int CTXINFO_NAME_MODE                           = 1004; // Mode name	public const int CTXINFO_KEYSIZE                             = 1005; // Key size in bytes	public const int CTXINFO_BLOCKSIZE                           = 1006; // Block size	public const int CTXINFO_IVSIZE                              = 1007; // IV size	public const int CTXINFO_KEYING_ALGO                         = 1008; // Key processing algorithm	public const int CTXINFO_KEYING_ITERATIONS                   = 1009; // Key processing iterations	public const int CTXINFO_KEYING_SALT                         = 1010; // Key processing salt	public const int CTXINFO_KEYING_VALUE                        = 1011; // Value used to derive key	public const int CTXINFO_KEY                                 = 1012; // Key	public const int CTXINFO_KEY_COMPONENTS                      = 1013; // Public-key components	public const int CTXINFO_IV                                  = 1014; // IV	public const int CTXINFO_HASHVALUE                           = 1015; // Hash value	public const int CTXINFO_LABEL                               = 1016; // Label for private/secret key	public const int CTXINFO_LAST                                = 1017;	public const int CERTINFO_FIRST                              = 2000; // ************************	public const int CERTINFO_SELFSIGNED                         = 2001; // Cert is self-signed	public const int CERTINFO_IMMUTABLE                          = 2002; // Cert is signed and immutable	public const int CERTINFO_XYZZY                              = 2003; // Cert is a magic just-works cert	public const int CERTINFO_CERTTYPE                           = 2004; // Certificate object type	public const int CERTINFO_FINGERPRINT                        = 2005; // Certificate fingerprints	public const int CERTINFO_FINGERPRINT_MD5                    = 2005;	public const int CERTINFO_FINGERPRINT_SHA                    = 2006;	public const int CERTINFO_CURRENT_CERTIFICATE                = 2007; // Cursor mgt: Rel.pos in chain/CRL/OCSP	public const int CERTINFO_CURRENT_EXTENSION                  = 2008; // Cursor mgt: Rel.pos.or abs.extension	public const int CERTINFO_CURRENT_FIELD                      = 2009; // Cursor mgt: Rel.pos.or abs.field in ext	public const int CERTINFO_CURRENT_COMPONENT                  = 2010; // Cursor mgt: Rel.pos in multival.field	public const int CERTINFO_TRUSTED_USAGE                      = 2011; // Usage that cert is trusted for	public const int CERTINFO_TRUSTED_IMPLICIT                   = 2012; // Whether cert is implicitly trusted	public const int CERTINFO_SIGNATURELEVEL                     = 2013; // Amount of detail to include in sigs.	public const int CERTINFO_VERSION                            = 2014; // Cert.format version	public const int CERTINFO_SERIALNUMBER                       = 2015; // Serial number	public const int CERTINFO_SUBJECTPUBLICKEYINFO               = 2016; // Public key	public const int CERTINFO_CERTIFICATE                        = 2017; // User certificate	public const int CERTINFO_USERCERTIFICATE                    = 2017;	public const int CERTINFO_CACERTIFICATE                      = 2018; // CA certificate	public const int CERTINFO_ISSUERNAME                         = 2019; // Issuer DN	public const int CERTINFO_VALIDFROM                          = 2020; // Cert valid-from time	public const int CERTINFO_VALIDTO                            = 2021; // Cert valid-to time	public const int CERTINFO_SUBJECTNAME                        = 2022; // Subject DN	public const int CERTINFO_ISSUERUNIQUEID                     = 2023; // Issuer unique ID	public const int CERTINFO_SUBJECTUNIQUEID                    = 2024; // Subject unique ID	public const int CERTINFO_CERTREQUEST                        = 2025; // Cert.request (DN + public key)	public const int CERTINFO_THISUPDATE                         = 2026; // CRL/OCSP current-update time	public const int CERTINFO_NEXTUPDATE                         = 2027; // CRL/OCSP next-update time	public const int CERTINFO_REVOCATIONDATE                     = 2028; // CRL/OCSP cert-revocation time	public const int CERTINFO_REVOCATIONSTATUS                   = 2029; // OCSP revocation status	public const int CERTINFO_CERTSTATUS                         = 2030; // RTCS certificate status	public const int CERTINFO_DN                                 = 2031; // Currently selected DN in string form	public const int CERTINFO_PKIUSER_ID                         = 2032; // PKI user ID	public const int CERTINFO_PKIUSER_ISSUEPASSWORD              = 2033; // PKI user issue password	public const int CERTINFO_PKIUSER_REVPASSWORD                = 2034; // PKI user revocation password	public const int CERTINFO_COUNTRYNAME                        = 2100; // countryName	public const int CERTINFO_STATEORPROVINCENAME                = 2101; // stateOrProvinceName	public const int CERTINFO_LOCALITYNAME                       = 2102; // localityName	public const int CERTINFO_ORGANIZATIONNAME                   = 2103; // organizationName	public const int CERTINFO_ORGANISATIONNAME                   = 2103;	public const int CERTINFO_ORGANIZATIONALUNITNAME             = 2104; // organizationalUnitName	public const int CERTINFO_ORGANISATIONALUNITNAME             = 2104;	public const int CERTINFO_COMMONNAME                         = 2105; // commonName	public const int CERTINFO_OTHERNAME_TYPEID                   = 2106; // otherName.typeID	public const int CERTINFO_OTHERNAME_VALUE                    = 2107; // otherName.value	public const int CERTINFO_RFC822NAME                         = 2108; // rfc822Name	public const int CERTINFO_EMAIL                              = 2108;	public const int CERTINFO_DNSNAME                            = 2109; // dNSName	public const int CERTINFO_DIRECTORYNAME                      = 2110; // directoryName	public const int CERTINFO_EDIPARTYNAME_NAMEASSIGNER          = 2111; // ediPartyName.nameAssigner	public const int CERTINFO_EDIPARTYNAME_PARTYNAME             = 2112; // ediPartyName.partyName	public const int CERTINFO_UNIFORMRESOURCEIDENTIFIER          = 2113; // uniformResourceIdentifier	public const int CERTINFO_IPADDRESS                          = 2114; // iPAddress	public const int CERTINFO_REGISTEREDID                       = 2115; // registeredID	public const int CERTINFO_CHALLENGEPASSWORD                  = 2200; // 1 3 6 1 4 1 3029 3 1 4 cRLExtReason	public const int CERTINFO_CRLEXTREASON                       = 2201; // 1 3 6 1 4 1 3029 3 1 5 keyFeatures	public const int CERTINFO_KEYFEATURES                        = 2202; // 1 3 6 1 5 5 7 1 1 authorityInfoAccess	public const int CERTINFO_AUTHORITYINFOACCESS                = 2203;	public const int CERTINFO_AUTHORITYINFO_RTCS                 = 2204; // accessDescription.accessLocation	public const int CERTINFO_AUTHORITYINFO_OCSP                 = 2205; // accessDescription.accessLocation	public const int CERTINFO_AUTHORITYINFO_CAISSUERS            = 2206; // accessDescription.accessLocation	public const int CERTINFO_AUTHORITYINFO_TIMESTAMPING         = 2207; // accessDescription.accessLocation	public const int CERTINFO_OCSP_NONCE                         = 2208; // nonce	public const int CERTINFO_OCSP_RESPONSE                      = 2209;	public const int CERTINFO_OCSP_RESPONSE_OCSP                 = 2210; // OCSP standard response	public const int CERTINFO_OCSP_NOCHECK                       = 2211; // 1 3 6 1 5 5 7 48 1 6 ocspArchiveCutoff	public const int CERTINFO_OCSP_ARCHIVECUTOFF                 = 2212; // 1 3 6 1 5 5 7 48 1 11 subjectInfoAccess	public const int CERTINFO_SUBJECTINFOACCESS                  = 2213;	public const int CERTINFO_SUBJECTINFO_CAREPOSITORY           = 2214; // accessDescription.accessLocation	public const int CERTINFO_SUBJECTINFO_TIMESTAMPING           = 2215; // accessDescription.accessLocation	public const int CERTINFO_SIGG_DATEOFCERTGEN                 = 2216; // 1 3 36 8 3 2 siggProcuration	public const int CERTINFO_SIGG_PROCURATION                   = 2217;	public const int CERTINFO_SIGG_PROCURE_COUNTRY               = 2218; // country	public const int CERTINFO_SIGG_PROCURE_TYPEOFSUBSTITUTION    = 2219; // typeOfSubstitution	public const int CERTINFO_SIGG_PROCURE_SIGNINGFOR            = 2220; // signingFor.thirdPerson	public const int CERTINFO_SIGG_MONETARYLIMIT                 = 2221;	public const int CERTINFO_SIGG_MONETARY_CURRENCY             = 2222; // currency	public const int CERTINFO_SIGG_MONETARY_AMOUNT               = 2223; // amount	public const int CERTINFO_SIGG_MONETARY_EXPONENT             = 2224; // exponent	public const int CERTINFO_SIGG_RESTRICTION                   = 2225; // 1 3 101 1 4 1 strongExtranet	public const int CERTINFO_STRONGEXTRANET                     = 2226;	public const int CERTINFO_STRONGEXTRANET_ZONE                = 2227; // sxNetIDList.sxNetID.zone	public const int CERTINFO_STRONGEXTRANET_ID                  = 2228; // sxNetIDList.sxNetID.id	public const int CERTINFO_SUBJECTDIRECTORYATTRIBUTES         = 2229;	public const int CERTINFO_SUBJECTDIR_TYPE                    = 2230; // attribute.type	public const int CERTINFO_SUBJECTDIR_VALUES                  = 2231; // attribute.values	public const int CERTINFO_SUBJECTKEYIDENTIFIER               = 2232; // 2 5 29 15 keyUsage	public const int CERTINFO_KEYUSAGE                           = 2233; // 2 5 29 16 privateKeyUsagePeriod	public const int CERTINFO_PRIVATEKEYUSAGEPERIOD              = 2234;	public const int CERTINFO_PRIVATEKEY_NOTBEFORE               = 2235; // notBefore	public const int CERTINFO_PRIVATEKEY_NOTAFTER                = 2236; // notAfter	public const int CERTINFO_SUBJECTALTNAME                     = 2237; // 2 5 29 18 issuerAltName	public const int CERTINFO_ISSUERALTNAME                      = 2238; // 2 5 29 19 basicConstraints	public const int CERTINFO_BASICCONSTRAINTS                   = 2239;	public const int CERTINFO_CA                                 = 2240; // cA	public const int CERTINFO_AUTHORITY                          = 2240;	public const int CERTINFO_PATHLENCONSTRAINT                  = 2241; // pathLenConstraint	public const int CERTINFO_CRLNUMBER                          = 2242; // 2 5 29 21 cRLReason	public const int CERTINFO_CRLREASON                          = 2243; // 2 5 29 23 holdInstructionCode	public const int CERTINFO_HOLDINSTRUCTIONCODE                = 2244; // 2 5 29 24 invalidityDate	public const int CERTINFO_INVALIDITYDATE                     = 2245; // 2 5 29 27 deltaCRLIndicator	public const int CERTINFO_DELTACRLINDICATOR                  = 2246; // 2 5 29 28 issuingDistributionPoint	public const int CERTINFO_ISSUINGDISTRIBUTIONPOINT           = 2247;	public const int CERTINFO_ISSUINGDIST_FULLNAME               = 2248; // distributionPointName.fullName	public const int CERTINFO_ISSUINGDIST_USERCERTSONLY          = 2249; // onlyContainsUserCerts	public const int CERTINFO_ISSUINGDIST_CACERTSONLY            = 2250; // onlyContainsCACerts	public const int CERTINFO_ISSUINGDIST_SOMEREASONSONLY        = 2251; // onlySomeReasons	public const int CERTINFO_ISSUINGDIST_INDIRECTCRL            = 2252; // indirectCRL	public const int CERTINFO_CERTIFICATEISSUER                  = 2253; // 2 5 29 30 nameConstraints	public const int CERTINFO_NAMECONSTRAINTS                    = 2254;	public const int CERTINFO_PERMITTEDSUBTREES                  = 2255; // permittedSubtrees	public const int CERTINFO_EXCLUDEDSUBTREES                   = 2256; // excludedSubtrees	public const int CERTINFO_CRLDISTRIBUTIONPOINT               = 2257;	public const int CERTINFO_CRLDIST_FULLNAME                   = 2258; // distributionPointName.fullName	public const int CERTINFO_CRLDIST_REASONS                    = 2259; // reasons	public const int CERTINFO_CRLDIST_CRLISSUER                  = 2260; // cRLIssuer	public const int CERTINFO_CERTIFICATEPOLICIES                = 2261;	public const int CERTINFO_CERTPOLICYID                       = 2262; // policyInformation.policyIdentifier	public const int CERTINFO_CERTPOLICY_CPSURI                  = 2263; // policyInformation.policyQualifiers.qualifier.cPSuri	public const int CERTINFO_CERTPOLICY_ORGANIZATION            = 2264; // policyInformation.policyQualifiers.qualifier.userNotice.noticeRef.organization	public const int CERTINFO_CERTPOLICY_NOTICENUMBERS           = 2265; // policyInformation.policyQualifiers.qualifier.userNotice.noticeRef.noticeNumbers	public const int CERTINFO_CERTPOLICY_EXPLICITTEXT            = 2266; // policyInformation.policyQualifiers.qualifier.userNotice.explicitText	public const int CERTINFO_POLICYMAPPINGS                     = 2267;	public const int CERTINFO_ISSUERDOMAINPOLICY                 = 2268; // policyMappings.issuerDomainPolicy	public const int CERTINFO_SUBJECTDOMAINPOLICY                = 2269; // policyMappings.subjectDomainPolicy	public const int CERTINFO_AUTHORITYKEYIDENTIFIER             = 2270;	public const int CERTINFO_AUTHORITY_KEYIDENTIFIER            = 2271; // keyIdentifier	public const int CERTINFO_AUTHORITY_CERTISSUER               = 2272; // authorityCertIssuer	public const int CERTINFO_AUTHORITY_CERTSERIALNUMBER         = 2273; // authorityCertSerialNumber	public const int CERTINFO_POLICYCONSTRAINTS                  = 2274;	public const int CERTINFO_REQUIREEXPLICITPOLICY              = 2275; // policyConstraints.requireExplicitPolicy	public const int CERTINFO_INHIBITPOLICYMAPPING               = 2276; // policyConstraints.inhibitPolicyMapping	public const int CERTINFO_EXTKEYUSAGE                        = 2277;	public const int CERTINFO_EXTKEY_MS_INDIVIDUALCODESIGNING    = 2278; // individualCodeSigning	public const int CERTINFO_EXTKEY_MS_COMMERCIALCODESIGNING    = 2279; // commercialCodeSigning	public const int CERTINFO_EXTKEY_MS_CERTTRUSTLISTSIGNING     = 2280; // certTrustListSigning	public const int CERTINFO_EXTKEY_MS_TIMESTAMPSIGNING         = 2281; // timeStampSigning	public const int CERTINFO_EXTKEY_MS_SERVERGATEDCRYPTO        = 2282; // serverGatedCrypto	public const int CERTINFO_EXTKEY_MS_ENCRYPTEDFILESYSTEM      = 2283; // encrypedFileSystem	public const int CERTINFO_EXTKEY_SERVERAUTH                  = 2284; // serverAuth	public const int CERTINFO_EXTKEY_CLIENTAUTH                  = 2285; // clientAuth	public const int CERTINFO_EXTKEY_CODESIGNING                 = 2286; // codeSigning	public const int CERTINFO_EXTKEY_EMAILPROTECTION             = 2287; // emailProtection	public const int CERTINFO_EXTKEY_IPSECENDSYSTEM              = 2288; // ipsecEndSystem	public const int CERTINFO_EXTKEY_IPSECTUNNEL                 = 2289; // ipsecTunnel	public const int CERTINFO_EXTKEY_IPSECUSER                   = 2290; // ipsecUser	public const int CERTINFO_EXTKEY_TIMESTAMPING                = 2291; // timeStamping	public const int CERTINFO_EXTKEY_OCSPSIGNING                 = 2292; // ocspSigning	public const int CERTINFO_EXTKEY_DIRECTORYSERVICE            = 2293; // directoryService	public const int CERTINFO_EXTKEY_NS_SERVERGATEDCRYPTO        = 2294; // serverGatedCrypto	public const int CERTINFO_EXTKEY_VS_SERVERGATEDCRYPTO_CA     = 2295; // serverGatedCrypto CA	public const int CERTINFO_FRESHESTCRL                        = 2296;	public const int CERTINFO_FRESHESTCRL_FULLNAME               = 2297; // distributionPointName.fullName	public const int CERTINFO_FRESHESTCRL_REASONS                = 2298; // reasons	public const int CERTINFO_FRESHESTCRL_CRLISSUER              = 2299; // cRLIssuer	public const int CERTINFO_INHIBITANYPOLICY                   = 2300; // 2 16 840 1 113730 1 x Netscape extensions	public const int CERTINFO_NS_CERTTYPE                        = 2301; // netscape-cert-type

⌨️ 快捷键说明

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