none
any examples of using SHA256 in kernel driver development RRS feed

  • Question

  • basically i just want a hint and a example appreciated for the SHA256 hashing algorithm for my driver , i have done some research and did use bcrypt along CNG ex:BcryptOpenAlgorithm(....),but that is not helping me so any examples will be a added advantage for me.
    Thursday, September 20, 2018 12:31 PM

Answers

  • Much of the samples for user space using Bcrypt API's can be used in the kernel.  Start with a good sample, and just be careful on IRQL.


    Don Burn Windows Driver Consulting Website: http://www.windrvr.com

    Thursday, September 20, 2018 5:04 PM
  • thanks for the responses, i was able to generate it using the BCrypt api itself had some memory issues previously 


    vishal


    • Edited by _remo Thursday, September 27, 2018 6:45 AM
    • Marked as answer by _remo Thursday, September 27, 2018 6:45 AM
    Thursday, September 27, 2018 6:44 AM

All replies

  • Much of the samples for user space using Bcrypt API's can be used in the kernel.  Start with a good sample, and just be careful on IRQL.


    Don Burn Windows Driver Consulting Website: http://www.windrvr.com

    Thursday, September 20, 2018 5:04 PM
  • i was able to get the sample 

    https://github.com/Microsoft/Windows-classic-samples/blob/master/Samples/Security/HashComputation/cpp/HashComputation.cpp

    the thing is it works fine in user-space but when it comes to kernel it does not generate any hash , debugger shows that the hash value is "???" .


    vishal


    • Edited by _remo Monday, September 24, 2018 6:29 AM
    Monday, September 24, 2018 6:07 AM
  • Show us your code, since you had to make changes to run this in the kernel.


    Don Burn Windows Driver Consulting Website: http://www.windrvr.com

    Monday, September 24, 2018 6:18 PM
  • thanks for the responses, i was able to generate it using the BCrypt api itself had some memory issues previously 


    vishal


    • Edited by _remo Thursday, September 27, 2018 6:45 AM
    • Marked as answer by _remo Thursday, September 27, 2018 6:45 AM
    Thursday, September 27, 2018 6:44 AM