Driver failing to load, if Bcrypt library is used

Vasanth Mp 21 Reputation points
2022-04-25T20:53:36.54+00:00

I want to use SHA256 hash in my driver, that I need to run on ARM64 platform.

After including bcrypt.h file in my driver source code and linking Bcrypt.lib. I used BCryptOpenAlgorithmProvider function in my driver source code.

When I load the driver, I get
"Windows cannot load the device driver for this hardware. The driver may be corrupted or missing. (Code 39)

Object Name not found"

Question 1. Can we use Bcrypt api for ARM64 platform or should it be used only for WIN32 platform?

Question 2. If it can be used for ARM64 platform, can someone point how to resolve the loading error?

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,430 questions
0 comments No comments
{count} votes

Accepted answer
  1. Junjie Zhu - MSFT 15,366 Reputation points Microsoft Vendor
    2022-04-26T08:20:31.117+00:00

    Hello,
    Welcome to Microsoft Q&A!

    In ARM, The device drivers run in ring 0.
    In ring zero, device drivers don't have access to Windows APIs: instead they have access to various NT kernel APIs.

    Thank you.


    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful