Vanara.PInvoke.Cryptography 3.3.5

PInvoke API (methods, structures and constants) imported from Windows crypt32.dll, bcrypt.dll, ncrypt.dll, tokenbinding.dll, cryptnet.dll, cryptdlg.dll and cryptui.dll.

Install-Package Vanara.PInvoke.Cryptography -Version 3.3.5
dotnet add package Vanara.PInvoke.Cryptography --version 3.3.5
<PackageReference Include="Vanara.PInvoke.Cryptography" Version="3.3.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add Vanara.PInvoke.Cryptography --version 3.3.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Vanara.PInvoke.Cryptography, 3.3.5"
For F# scripts that support #r syntax, copy this into the source code to reference the package.

Release Notes

Currently implements:

Functions
BCryptAddContextFunction, BCryptCloseAlgorithmProvider, BCryptConfigureContext, BCryptConfigureContextFunction, BCryptCreateContext, BCryptCreateHash, BCryptCreateMultiHash, BCryptDecrypt, BCryptDeleteContext, BCryptDeriveKey, BCryptDeriveKeyCapi, BCryptDeriveKeyPBKDF2, BCryptDestroyHash, BCryptDestroyKey, BCryptDestroySecret, BCryptDuplicateHash, BCryptDuplicateKey, BCryptEncrypt, BCryptEnumAlgorithms, BCryptEnumContextFunctionProviders, BCryptEnumContextFunctions, BCryptEnumContexts, BCryptEnumProviders, BCryptEnumRegisteredProviders, BCryptExportKey, BCryptFinalizeKeyPair, BCryptFinishHash, BCryptFreeBuffer, BCryptGenerateKeyPair, BCryptGenerateSymmetricKey, BCryptGenRandom, BCryptGetFipsAlgorithmMode, BCryptGetProperty, BCryptHash, BCryptHashData, BCryptImportKey, BCryptImportKeyPair, BCryptKeyDerivation, BCryptOpenAlgorithmProvider, BCryptProcessMultiOperations, BCryptQueryContextConfiguration, BCryptQueryContextFunctionConfiguration, BCryptQueryContextFunctionProperty, BCryptQueryProviderRegistration, BCryptRegisterConfigChangeNotify, BCryptRemoveContextFunction, BCryptResolveProviders, BCryptSecretAgreement, BCryptSetContextFunctionProperty, BCryptSetProperty, BCryptSignHash, BCryptUnregisterConfigChangeNotify, BCryptVerifySignature, CertAddCertificateContextToStore, CertAddCertificateLinkToStore, CertAddCRLContextToStore, CertAddCRLLinkToStore, CertAddCTLContextToStore, CertAddCTLLinkToStore, CertAddEncodedCertificateToStore, CertAddEncodedCertificateToSystemStore, CertAddEncodedCRLToStore, CertAddEncodedCTLToStore, CertAddEnhancedKeyUsageIdentifier, CertAddRefServerOcspResponse, CertAddRefServerOcspResponseContext, CertAddSerializedElementToStore, CertAddStoreToCollection, CertAlgIdToOID, CertCloseServerOcspResponse, CertCloseStore, CertCompareCertificate, CertCompareCertificateName, CertCompareIntegerBlob, CertComparePublicKeyInfo, CertControlStore, CertCreateCertificateChainEngine, CertCreateCertificateContext, CertCreateContext, CertCreateCRLContext, CertCreateCTLContext, CertCreateCTLEntryFromCertificateContextProperties, CertCreateSelfSignCertificate, CertDeleteCertificateFromStore, CertDeleteCRLFromStore, CertDeleteCTLFromStore, CertDuplicateCertificateChain, CertDuplicateCertificateContext, CertDuplicateCRLContext, CertDuplicateCTLContext, CertDuplicateStore, CertEnumCertificateContextProperties, CertEnumCertificatesInStore, CertEnumCRLContextProperties, CertEnumCRLsInStore, CertEnumCTLContextProperties, CertEnumCTLsInStore, CertEnumPhysicalStore, CertEnumSubjectInSortedCTL, CertEnumSystemStore, CertEnumSystemStoreLocation, CertFindAttribute, CertFindCertificateInCRL, CertFindCertificateInStore, CertFindChainInStore, CertFindCRLInStore, CertFindCTLInStore, CertFindExtension, CertFindRDNAttr, CertFindSubjectInCTL, CertFindSubjectInSortedCTL, CertFreeCertificateChain, CertFreeCertificateChainEngine, CertFreeCertificateChainList, CertFreeCertificateContext, CertFreeCRLContext, CertFreeCTLContext, CertFreeServerOcspResponseContext, CertGetCertificateChain, CertGetCertificateContextProperty, CertGetCRLContextProperty, CertGetCRLFromStore, CertGetCTLContextProperty, CertGetEnhancedKeyUsage, CertGetIntendedKeyUsage, CertGetIssuerCertificateFromStore, CertGetNameString, CertGetPublicKeyLength, CertGetServerOcspResponseContext, CertGetStoreProperty, CertGetSubjectCertificateFromStore, CertGetValidUsages, CertIsRDNAttrsInCertificateName, CertIsStrongHashToSign, CertIsValidCRLForCertificate, CertModifyCertificatesToTrust, CertNameToStr, CertOIDToAlgId, CertOpenServerOcspResponse, CertOpenStore, CertOpenSystemStore, CertRDNValueToStr, CertRegisterPhysicalStore, CertRegisterSystemStore, CertRemoveEnhancedKeyUsageIdentifier, CertRemoveStoreFromCollection, CertResyncCertificateChainEngine, CertRetrieveLogoOrBiometricInfo, CertSaveStore, CertSelectCertificate, CertSelectCertificateChains, CertSelectionGetSerializedBlob, CertSerializeCertificateStoreElement, CertSerializeCRLStoreElement, CertSerializeCTLStoreElement, CertSetCertificateContextPropertiesFromCTLEntry, CertSetCertificateContextProperty, CertSetCRLContextProperty, CertSetCTLContextProperty, CertSetEnhancedKeyUsage, CertSetStoreProperty, CertStrToName, CertUnregisterPhysicalStore, CertUnregisterSystemStore, CertVerifyCertificateChainPolicy, CertVerifyCRLRevocation, CertVerifyCRLTimeValidity, CertVerifyCTLUsage, CertVerifyRevocation, CertVerifySubjectCertificateContext, CertVerifyTimeValidity, CertVerifyValidityNesting, CertViewProperties, CryptAcquireCertificatePrivateKey, CryptBinaryToString, CryptCreateKeyIdentifierFromCSP, CryptDecodeMessage, CryptDecodeObject, CryptDecodeObjectEx, CryptDecryptAndVerifyMessageSignature, CryptDecryptMessage, CryptEncodeObject, CryptEncodeObjectEx, CryptEncryptMessage, CryptEnumKeyIdentifierProperties, CryptEnumOIDFunction, CryptEnumOIDInfo, CryptExportPKCS8, CryptExportPKCS8Ex, CryptExportPublicKeyInfo, CryptExportPublicKeyInfoEx, CryptExportPublicKeyInfoFromBCryptKeyHandle, CryptFindCertificateKeyProvInfo, CryptFindLocalizedName, CryptFindOIDInfo, CryptFormatObject, CryptFreeOIDFunctionAddress, CryptGetDefaultOIDDllList, CryptGetDefaultOIDFunctionAddress, CryptGetKeyIdentifierProperty, CryptGetMessageCertificates, CryptGetMessageSignerCount, CryptGetObjectUrl, CryptGetOIDFunctionAddress, CryptGetOIDFunctionValue, CryptGetTimeValidObject, CryptHashCertificate, CryptHashCertificate2, CryptHashMessage, CryptHashPublicKeyInfo, CryptHashToBeSigned, CryptImportPKCS8, CryptImportPublicKeyInfo, CryptImportPublicKeyInfoEx, CryptImportPublicKeyInfoEx2, CryptInitOIDFunctionSet, CryptInstallDefaultContext, CryptInstallOIDFunctionAddress, CryptMemAlloc, CryptMemFree, CryptMemRealloc, CryptMsgCalculateEncodedLength, CryptMsgClose, CryptMsgControl, CryptMsgCountersign, CryptMsgCountersignEncoded, CryptMsgDuplicate, CryptMsgEncodeAndSignCTL, CryptMsgGetAndVerifySigner, CryptMsgGetParam, CryptMsgOpenToDecode, CryptMsgOpenToEncode, CryptMsgSignCTL, CryptMsgUpdate, CryptMsgVerifyCountersignatureEncoded, CryptMsgVerifyCountersignatureEncodedEx, CryptProtectData, CryptProtectMemory, CryptQueryObject, CryptRegisterDefaultOIDFunction, CryptRegisterOIDFunction, CryptRegisterOIDInfo, CryptRetrieveObjectByUrl, CryptRetrieveTimeStamp, CryptSetKeyIdentifierProperty, CryptSetOIDFunctionValue, CryptSignAndEncodeCertificate, CryptSignAndEncryptMessage, CryptSignCertificate, CryptSignMessage, CryptSignMessageWithKey, CryptSIPAddProvider, CryptSIPCreateIndirectData, CryptSIPGetCaps, CryptSIPGetSignedDataMsg, CryptSIPLoad, CryptSIPPutSignedDataMsg, CryptSIPRemoveProvider, CryptSIPRemoveSignedDataMsg, CryptSIPRetrieveSubjectGuid, CryptSIPRetrieveSubjectGuidForCatalogFile, CryptSIPVerifyIndirectData, CryptStringToBinary, CryptUIDlgCertMgr, CryptUIDlgSelectCertificateFromStore, CryptUIDlgViewCertificate, CryptUIDlgViewContext, CryptUIWizDigitalSign, CryptUIWizExport, CryptUIWizFreeDigitalSignContext, CryptUIWizImport, CryptUninstallDefaultContext, CryptUnprotectData, CryptUnprotectMemory, CryptUnregisterDefaultOIDFunction, CryptUnregisterOIDFunction, CryptUnregisterOIDInfo, CryptUpdateProtectedState, CryptVerifyCertificateSignature, CryptVerifyCertificateSignatureEx, CryptVerifyDetachedMessageHash, CryptVerifyDetachedMessageSignature, CryptVerifyMessageHash, CryptVerifyMessageSignature, CryptVerifyMessageSignatureWithKey, CryptVerifyTimeStampSignature, GetFriendlyNameOfCert, NCryptCloseProtectionDescriptor, NCryptCreateClaim, NCryptCreatePersistedKey, NCryptCreateProtectionDescriptor, NCryptDecrypt, NCryptDeleteKey, NCryptDeriveKey, NCryptEncrypt, NCryptEnumAlgorithms, NCryptEnumKeys, NCryptEnumStorageProviders, NCryptExportKey, NCryptFinalizeKey, NCryptFreeBuffer, NCryptFreeObject, NCryptGetProperty, NCryptGetProtectionDescriptorInfo, NCryptImportKey, NCryptIsAlgSupported, NCryptIsKeyHandle, NCryptKeyDerivation, NCryptNotifyChangeKey, NCryptOpenKey, NCryptOpenStorageProvider, NCryptProtectSecret, NCryptQueryProtectionDescriptorName, NCryptRegisterProtectionDescriptorName, NCryptSecretAgreement, NCryptSetProperty, NCryptSignHash, NCryptStreamClose, NCryptStreamOpenToProtect, NCryptStreamOpenToUnprotect, NCryptStreamOpenToUnprotectEx, NCryptStreamUpdate, NCryptTranslateHandle, NCryptUnprotectSecret, NCryptVerifyClaim, NCryptVerifySignature, PFXExportCertStore, PFXExportCertStoreEx, PFXImportCertStore, PFXIsPFXBlob, PFXVerifyPassword, SslComputeClientAuthHash, SslComputeEapKeyBlock, SslComputeFinishedHash, SslCreateClientAuthHash, SslCreateEphemeralKey, SslCreateHandshakeHash, SslDecrementProviderReferenceCount, SslDecryptPacket, SslEncryptPacket, SslEnumCipherSuites, SslEnumProtocolProviders, SslExportKey, SslExportKeyingMaterial, SslFreeBuffer, SslFreeObject, SslGenerateMasterKey, SslGenerateSessionKeys, SslGetCipherSuitePRFHashAlgorithm, SslGetKeyProperty, SslGetProviderProperty, SslHashHandshake, SslImportKey, SslImportMasterKey, SslIncrementProviderReferenceCount, SslLookupCipherLengths, SslLookupCipherSuiteInfo, SslOpenPrivateKey, SslOpenProvider, SslSignHash, SslVerifySignature, TokenBindingDeleteAllBindings, TokenBindingDeleteBinding, TokenBindingGenerateBinding, TokenBindingGenerateID, TokenBindingGenerateMessage, TokenBindingGetKeyTypesClient, TokenBindingGetKeyTypesServer, TokenBindingVerifyMessage

Structures
BCRYPT_ALG_HANDLE, BCRYPT_ALGORITHM_IDENTIFIER, BCRYPT_HANDLE, BCRYPT_HASH_HANDLE, BCRYPT_KEY_HANDLE, BCRYPT_KEY_LENGTHS_STRUCT, BCRYPT_MULTI_HASH_OPERATION, BCRYPT_MULTI_OBJECT_LENGTH_STRUCT, BCRYPT_OAEP_PADDING_INFO, BCRYPT_OID_LIST, BCRYPT_PKCS1_PADDING_INFO, BCRYPT_PROVIDER_NAME, BCRYPT_PSS_PADDING_INFO, BCRYPT_SECRET_HANDLE, CRYPT_CONTEXT_CONFIG, CRYPT_CONTEXT_FUNCTION_CONFIG, CRYPT_CONTEXT_FUNCTION_PROVIDERS, CRYPT_CONTEXT_FUNCTIONS, CRYPT_CONTEXTS, CRYPT_PROVIDERS, CRYPTPROTECT_PROMPTSTRUCT, CRYPTCATMEMBER, CRYPTCATSTORE, MS_ADDINFO_BLOB, MS_ADDINFO_CATALOGMEMBER, MS_ADDINFO_FLAT, SIP_ADD_NEWPROVIDER, SIP_CAP_SET_V2, SIP_CAP_SET_V3, SIP_DISPATCH_INFO, SIP_INDIRECT_DATA, SIP_SUBJECTINFO, CERT_CHAIN_CONTEXT, CERT_CHAIN_ELEMENT, CERT_REVOCATION_CRL_INFO, CERT_REVOCATION_INFO, CERT_SELECT_CHAIN_PARA, CERT_SELECT_CRITERIA, CERT_SIMPLE_CHAIN, CERT_TRUST_LIST_INFO, HCERT_SERVER_OCSP_RESPONSE, HCERTCHAINENGINE, PCCERT_SERVER_OCSP_RESPONSE_CONTEXT, CERT_CONTEXT, CERT_EXTENSION, CERT_EXTENSIONS, CERT_ID, CERT_INFO, CERT_ISSUER_SERIAL_NUMBER, CERT_KEY_CONTEXT, CERT_PUBLIC_KEY_INFO, CERT_RDN, CERT_RDN_ATTR, CERT_STRONG_SIGN_PARA, CERT_TRUST_STATUS, CRL_CONTEXT, CRL_ENTRY, CRL_INFO, CRYPT_ALGORITHM_IDENTIFIER, CRYPT_ATTRIBUTE, CRYPT_ATTRIBUTE_TYPE_VALUE, CRYPT_BIT_BLOB, CRYPT_KEY_PROV_INFO, CRYPT_TIMESTAMP_ACCURACY, CRYPT_TIMESTAMP_CONTEXT, CRYPT_TIMESTAMP_INFO, CRYPT_TIMESTAMP_PARA, CRYPTOAPI_BLOB, CTL_CONTEXT, CTL_ENTRY, CTL_INFO, CTL_USAGE, HCRYPTDEFAULTCONTEXT, HCRYPTHASH, HCRYPTKEY, HCRYPTPROV, PCCERT_CONTEXT, PCCRL_CONTEXT, PCCTL_CONTEXT, SafeCRYPTOAPI_BLOB, CERT_NAME_INFO, CERT_REVOCATION_PARA, CERT_REVOCATION_STATUS, CRYPT_ATTRIBUTES, CRYPT_PKCS8_EXPORT_PARAMS, CRYPT_PKCS8_IMPORT_PARAMS, CRYPT_PRIVATE_KEY_INFO, PUBLICKEYSTRUC, CMSG_CMS_SIGNER_INFO, CMSG_CTRL_ADD_SIGNER_UNAUTH_ATTR_PARA, CMSG_CTRL_DECRYPT_PARA, CMSG_CTRL_DEL_SIGNER_UNAUTH_ATTR_PARA, CMSG_CTRL_KEY_AGREE_DECRYPT_PARA, CMSG_CTRL_KEY_TRANS_DECRYPT_PARA, CMSG_CTRL_MAIL_LIST_DECRYPT_PARA, CMSG_CTRL_VERIFY_SIGNATURE_EX_PARA, CMSG_KEY_AGREE_RECIPIENT_INFO, CMSG_KEY_TRANS_RECIPIENT_INFO, CMSG_MAIL_LIST_RECIPIENT_INFO, CMSG_RECIPIENT_ENCRYPTED_KEY_INFO, CMSG_SIGNER_ENCODE_INFO, CMSG_STREAM_INFO, CRYPT_DECRYPT_MESSAGE_PARA, CRYPT_ENCRYPT_MESSAGE_PARA, CRYPT_HASH_MESSAGE_PARA, CRYPT_KEY_SIGN_MESSAGE_PARA, CRYPT_KEY_VERIFY_MESSAGE_PARA, CRYPT_SIGN_MESSAGE_PARA, CRYPT_VERIFY_MESSAGE_PARA, CRYPT_DECODE_PARA, CRYPT_ENCODE_PARA, CRYPT_OID_FUNC_ENTRY, CRYPT_OID_INFO, HCRYPTOIDFUNCADDR, HCRYPTOIDFUNCSET, PCCRYPT_OID_INFO, CERT_CREATE_CONTEXT_PARA, CERT_PHYSICAL_STORE_INFO, CERT_SYSTEM_STORE_INFO, CERT_SYSTEM_STORE_RELOCATE_PARA, HCERTSTORE, HCRYPTMSG, CERT_CHAIN_ENGINE_CONFIG, CERT_CHAIN_PARA, CERT_CHAIN_POLICY_PARA, CERT_CHAIN_POLICY_STATUS, CERT_USAGE_MATCH, CMSG_SIGNED_ENCODE_INFO, CTL_VERIFY_USAGE_PARA, CTL_VERIFY_USAGE_STATUS, PCCERT_CHAIN_CONTEXT, CERT_SELECT_STRUCT, CERT_VIEWPROPERTIES_STRUCT, CTL_MODIFY_REQUEST, CERT_REVOCATION_CHAIN_PARA, CRYPT_CREDENTIALS, CRYPT_GET_TIME_VALID_OBJECT_EXTRA_INFO, CRYPT_RETRIEVE_AUX_INFO, CRYPT_URL_ARRAY, CRYPT_URL_INFO, CERT_SELECTUI_INPUT, CRYPTUI_CERT_MGR_STRUCT, CRYPTUI_INITDIALOG_STRUCT, CRYPTUI_VIEWCERTIFICATE_STRUCT, CRYPTUI_WIZ_DIGITAL_SIGN_BLOB_INFO, CRYPTUI_WIZ_DIGITAL_SIGN_CERT_PVK_INFO, CRYPTUI_WIZ_DIGITAL_SIGN_CONTEXT, CRYPTUI_WIZ_DIGITAL_SIGN_EXTENDED_INFO, CRYPTUI_WIZ_DIGITAL_SIGN_INFO, CRYPTUI_WIZ_DIGITAL_SIGN_PVK_FILE_INFO, CRYPTUI_WIZ_DIGITAL_SIGN_STORE_INFO, CRYPTUI_WIZ_EXPORT_CERTCONTEXT_INFO, CRYPTUI_WIZ_EXPORT_INFO, PCCRYPTUI_WIZ_DIGITAL_SIGN_CONTEXT, NCRYPT_ALLOC_PARA, NCRYPT_HASH_HANDLE, NCRYPT_HANDLE, NCRYPT_KEY_HANDLE, NCRYPT_PROV_HANDLE, NCRYPT_SECRET_HANDLE, NCryptAlgorithmName, NCryptBuffer, NCryptBufferDesc, NCRYPT_DESCRIPTOR_HANDLE, NCRYPT_PROTECT_STREAM_INFO, NCRYPT_PROTECT_STREAM_INFO_EX, NCRYPT_STREAM_HANDLE, NCRYPT_SSL_CIPHER_LENGTHS, NCRYPT_SSL_CIPHER_SUITE, TOKENBINDING_IDENTIFIER, TOKENBINDING_KEY_TYPES, TOKENBINDING_RESULT_DATA, TOKENBINDING_RESULT_LIST, CMSG_CTRL_DECRYPT_PARA_HANDLES, CMSG_CTRL_KEY_AGREE_DECRYPT_PARA_HANDLES, CMSG_CTRL_KEY_TRANS_DECRYPT_PARA_HANDLES, CMSG_KEY_AGREE_RECIPIENT_INFO_UNION, CMSG_SIGNER_ENCODE_INFO_HANDLES, CRYPT_KEY_SIGN_MESSAGE_PARA_HANDLE, CRYPT_OID_INFO_UNION, CRYPTUI_WIZ_DIGITAL_SIGN_INFO_UNION, CRYPTUI_WIZ_EXPORT_INFO_UNION

NuGet packages (6)

Showing the top 5 NuGet packages that depend on Vanara.PInvoke.Cryptography:

Package Downloads
Vanara.PInvoke.Security
PInvoke API (methods, structures and constants) imported from Windows AdvApi32.dll, Authz.dll and Secur32.dll.
Vanara.PInvoke.WinTrust
PInvoke API (methods, structures and constants) imported from Windows WinTrust.dll.
Vanara.Library
The full set of packages associated with the Vanara PInvoke Libraries.
Vanara.PInvoke.P2P
PInvoke API (methods, structures and constants) imported from Windows P2P.dll for Peer-to-Peer API.
Vanara.PInvoke.Drt
PInvoke API (methods, structures and constants) imported from Windows Drt.dll for the Distributed Routing Table (DRT) API.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Vanara.PInvoke.Cryptography:

Repository Stars
Ceiridge/Chrome-Developer-Mode-Extension-Warning-Patcher
⇒ Disable Chrome's Developer Mode Extension Warning Popup & Elision WWW/HTTPS Hiding & Debugging Extension Popup

Version History

Version Downloads Last updated
3.3.5 345 3/1/2021
3.3.4 951 2/11/2021
3.3.3 562 2/3/2021
3.3.2 675 1/21/2021
3.3.1 121 1/20/2021
3.3.0 2,659 11/20/2020
3.2.21 496 11/13/2020
3.2.20 1,521 11/8/2020
3.2.19 4,851 10/23/2020
3.2.18 320 10/21/2020
3.2.17 2,522 9/20/2020
3.2.16 546 9/7/2020
3.2.15 513 8/30/2020
3.2.14 468 8/20/2020
3.2.13 1,003 7/27/2020
3.2.12 662 7/13/2020
3.2.11 1,450 6/28/2020
3.2.10 728 6/14/2020
3.2.9 771 6/3/2020
3.2.7 2,334 5/4/2020
3.2.6 823 4/21/2020
3.2.5 528 4/15/2020
3.2.4 429 4/12/2020
3.2.3 597 4/1/2020
3.2.2 485 3/24/2020
3.2.1 541 3/17/2020
3.2.0 768 2/27/2020
3.1.9 844 1/17/2020
3.1.8 519 1/13/2020
3.1.7 519 1/6/2020
3.1.6 655 12/12/2019
3.1.5 636 11/26/2019
3.1.4 431 11/25/2019
3.1.3 592 11/8/2019
3.1.2 451 11/4/2019
3.1.1 1,827 10/17/2019
3.1.0 452 10/3/2019
3.0.1 413 9/20/2019
3.0.0 452 8/27/2019
2.3.11 702 6/9/2019
2.3.10 352 6/5/2019
2.3.9 311 5/26/2019
2.3.8 358 5/13/2019
2.3.7 257 4/24/2019
2.3.6 238 4/17/2019
2.3.5 238 4/10/2019
2.3.4 253 3/9/2019
2.3.3 225 3/8/2019
2.3.2 259 2/28/2019
2.3.1 255 2/25/2019
2.3.0 236 2/22/2019
2.2.1 282 2/12/2019
2.2.0 322 2/1/2019
2.1.2 477 1/14/2019
2.1.0 479 12/15/2018
2.0.1 340 12/7/2018