Microsoft Edge Try Microsoft Edge A fast and secure browser that's designed for Windows 10 Get started

This site uses cookies for analytics, personalized content and ads. By continuing to browse this site, you agree to this use. Learn more
Microsoft Microsoft
Windows Dev Center
    • .NET
      • Apps
      • Internet of Things
      • Mixed Reality
      • Microsoft Edge
      • Hardware
      • IT Center
      • What is Azure
      • Products
      • Solutions
      • Pricing
      • Create a free account
      • Visual Studio
      • Visual Studio IDE
      • Visual Studio Team Services
      • Visual Studio Code
      • Xamarin
      • Visual Studio Dev Essentials
      • Subscriptions
      • Office Dev Center
      • Office 365 for IT pros
    • Microsoft Graph
      • Store
      • Cortana
      • Bing
      • Application Insights
      • .NET
      • Microsoft Azure
      • Microsoft Graph
      • Visual Studio
      • Visual Studio Team Services
      • Windows
      • Office
      • All Developer Centers
    • TechNet
    • Microsoft Developer Network
      • Windows IT Center
      • Office 365 for IT Pros
      • All IT TechCenters
      • Microsoft Download Center
      • Microsoft Azure
      • Visual Studio
      • SDKs
      • Windows
      • Office
      • Microsoft Graph
      • MSDN
      • Azure
      • Windows
    • PowerShell scripts
      • Microsoft Azure
      • Visual Studio
      • Visual Studio Team Services
      • Developer tools
      • Office Dev Blog
      • Server & management
      • Windows
      • Developers
      • TechNet
      • Microsoft Tech Community
      • Visual Studio (MSDN) subscriptions
      • Microsoft Cloud Essentials
      • Microsoft Virtual Academy
      • IT Pro Career Center
    • Microsoft Evaluation Center
    • Channel 9
    • No results
    Sign in
    Windows Dev Center Dashboard
    Windows desktopGet startedDesignDevelopTest & deploy
    • API reference
    • Downloads
    • Samples
    • Support
    Dashboard
    Security and Identity Cryptography API: Next Generation CNG Reference
    CNG Reference CNG Cryptographic Primitive Functions
    CNG Cryptographic Primitive Functions
    CNG Cryptographic Primitive Functions
    CNG Constants
    CNG Cryptographic Configuration Functions
    CNG Cryptographic Primitive Functions
    BCryptCloseAlgorithmProvider
    BCryptCreateHash
    BCryptDecrypt
    BCryptDeriveKey
    BCryptDestroyHash
    BCryptDestroyKey
    BCryptDestroySecret
    BCryptDuplicateHash
    BCryptDuplicateKey
    BCryptEncrypt
    BCryptExportKey
    BCryptFinalizeKeyPair
    BCryptFinishHash
    BCryptFreeBuffer
    BCryptGenerateKeyPair
    BCryptGenerateSymmetricKey
    BCryptGenRandom
    BCryptGetProperty
    BCryptHash
    BCryptHashData
    BCryptImportKey
    BCryptImportKeyPair
    BCryptKeyDerivation
    BCryptOpenAlgorithmProvider
    BCryptSecretAgreement
    BCryptSetProperty
    BCryptSignHash
    BCryptVerifySignature
    CNG DPAPI Functions
    CNG Helper Functions
    CNG Key Storage Functions
    CNG SSL Provider Functions
    CNG Token Binding Functions
    CNG Structures
    CNG Enumerations
    TOC
    Collapse the table of content
    Expand the table of content
    This documentation is archived and is not being maintained.
    This documentation is archived and is not being maintained.

    CNG Cryptographic Primitive Functions

    Cryptography API: Next Generation (CNG) defines the following functions that are used for performing cryptographic operations.

    • BCryptCloseAlgorithmProvider
    • BCryptCreateHash
    • BCryptDecrypt
    • BCryptDeriveKey
    • BCryptDestroyHash
    • BCryptDestroyKey
    • BCryptDestroySecret
    • BCryptDuplicateHash
    • BCryptDuplicateKey
    • BCryptEncrypt
    • BCryptExportKey
    • BCryptFinalizeKeyPair
    • BCryptFinishHash
    • BCryptFreeBuffer
    • BCryptGenerateKeyPair
    • BCryptGenerateSymmetricKey
    • BCryptGenRandom
    • BCryptGetProperty
    • BCryptHashData
    • BCryptImportKey
    • BCryptImportKeyPair
    • BCryptKeyDerivation
    • BCryptOpenAlgorithmProvider
    • BCryptSecretAgreement
    • BCryptSetProperty
    • BCryptSignHash
    • BCryptVerifySignature

     

     

    Show:
    Print Export (0)
    Print Share
    IN THIS ARTICLE
      Is this page helpful?
      Additional feedback?
      1500 characters remaining
      Thank you! We appreciate your feedback.
      What's new
      • New Surface Pro
      • Xbox One X
      • Xbox One S
      • Surface Laptop
      • Windows 10 apps
      • Office apps
      • Mixer
      Store & Support
      • Account profile
      • Download Center
      • Sales & support
      • Returns
      • Order tracking
      • Store locations
      • Support
      Education
      • Microsoft in education
      • Office for students
      • Office 365 for schools
      • Deals for students & educators
      • Microsoft Azure in education
      Enterprise
      • Microsoft Azure
      • Enterprise
      • Data platform
      • Find a solutions provider
      • Microsoft partner resources
      • Microsoft AppSource
      • Manufacturing & resources
      • Financial services
      Developer
      • Microsoft Visual Studio
      • Windows Dev Center
      • Microsoft Developer Network
      • TechNet
      • Microsoft Virtual Academy
      • Microsoft developer program
      • Channel 9
      • Office Dev Center
      Company
      • Careers
      • About Microsoft
      • Company news
      • Privacy at Microsoft
      • Investors
      • Diversity and inclusion
      • Accessibility
      • Security
      English (United States)
      • Sitemap
      • Contact us
      • Privacy & cookies
      • Terms of use
      • Trademarks
      • About our ads
      • © Microsoft 2017
      English
      Deutsch English Español Français
      Italiano 日本語 한국어 Português
      Pусский 简体中文 繁體中文
       
      © 2017 Microsoft