Bring back SecurityKey.IsSupportedAlgorithm
See original GitHub issueWhen fixing ASOS to use the newest IM bits, I had to replace SecurityKey.IsSupportedAlgorithm
by the new syntax.
key.IsSupportedAlgorithm(SecurityAlgorithms.RsaSha256Signature)
->
key.CryptoProviderFactory.IsSupportedAlgorithm(SecurityAlgorithms.RsaSha256Signature)
Unfortunately, it doesn’t work at all because the key itself is not flowed up to CryptoProviderFactory.IsSupportedAlgorithm
so it always returns false
even if the key is a RSA key.
You now have to use this extremely weird and error-prone syntax:
key.CryptoProviderFactory.IsSupportedAlgorithm(SecurityAlgorithms.RsaSha256Signature, key)
@brentschmaltz @tushargupta51 @polita any chance we can reintroduce SecurityKey.IsSupportedAlgorithm
for RTM?
Issue Analytics
- State:
- Created 7 years ago
- Comments:11 (11 by maintainers)
Top Results From Across the Web
Restrict cryptographic algorithms and protocols
This article describes how to restrict the use of certain cryptographic algorithms and protocols in the Schannel.dll file.
Read more >Cipher Suites: Ciphers, Algorithms and Negotiating ...
This is the process where a client and server agree on a mutually support cipher suite and then use the chosen cipher suite...
Read more >Use a security key for 2-Step Verification - Android
Security keys can be used with 2-Step Verification to help you keep hackers out of your Google Account. Important: If you're a ......
Read more >An Introduction to Cipher Suites
Cipher suites are sets of instructions that enable secure network ... A key exchange algorithm, to determine how symmetric keys will be ...
Read more >Specified Key is Not a Valid Size for This Algorithm
' This error occurs when the key size provided for a particular encryption algorithm is not supported. In this article, we will explore...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@kevinchalet I’ll get it in…
@brentschmaltz thanks! I can confirm the new API works like a charm 🎉