Skip to content

Are functions in Windows::Security::Cryptography fully supported? #4119

Closed Answered by sxlllslgh
sxlllslgh asked this question in Q&A
Discussion options

You must be logged in to vote

Well, I finally found I made a stupid mistake. HMACSHA1 is a hash algorithm, and I should call winrt::Windows::Security::Cryptography::Core::CryptographicEngine::Sign function. Only the encryption algorithm can call winrt::Windows::Security::Cryptography::Core::CryptographicEngine::Encrypt.
Say one more thing, there is really too little debug information in WinRT. This kind of erroneous call should be reported as interface call error or do not provide this interface for hash-like algorithms, rather than No such interface supported.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@sxlllslgh
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by sxlllslgh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants