microsoft / microsoft/win32metadata

Update BCryptSetProperty to optionally take pbinput

Open
#2,034 9 comments 1 reaction 2 assignees Claimed by @jonwis View on GitHub
blocked not good first issue special case
Dominant language
C++
Stars
1.5k
Forks
149
Avg merge
5d 16h
Merged PRs (30d)
4

Description

### Suggestion

Regarding https://microsoft.github.io/windows-docs-rs/doc/windows/Win32/Security/Cryptography/fn.BCryptSetProperty.html, for a HKDF operation I needed to set a property to a null pointer (I tried setting an empty array but it caused a CNG error).

I ended up just not using windows-rs for the one call in my crate that needed to set a null pointer: https://github.com/tofay/rustls-cng-crypto/blob/2f1de485a6856a8db4ccadb073e5ec3cf872d04f/src/hkdf.rs#L97.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.