Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is replacement/updated method for CryptoKeyGenerator.GenerateKey(Int32)? #2265

Closed
jsquire opened this issue Jan 6, 2022 · 1 comment
Assignees
Labels
IoTSDK Tracks all IoT SDK issues across the board question Further information is requested.

Comments

@jsquire
Copy link
Member

jsquire commented Jan 6, 2022

Issue Transfer

This issue has been transferred from the Azure SDK for .NET repository, #26179.

Please be aware that @m-chau is the author of the original issue and include them for any questions or replies.

Details

This page says that this method is going to obsolete and deprecated in the future but offer no alternative solution on how to move away from this method.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@jsquire jsquire added the question Further information is requested. label Jan 6, 2022
@github-actions github-actions bot added the IoTSDK Tracks all IoT SDK issues across the board label Jan 6, 2022
@drwill-ms drwill-ms self-assigned this Jan 6, 2022
@drwill-ms
Copy link
Contributor

@m-chau we marked CrytpoKeyGenerator.GenerateKey as obsolete, as mentioned in these patch notes and linked to the PR with reasoning here. The gist is:

  1. The underlying .NET method that enabled this was removed after .NET 4.7.2. As we've added new .NET targets, we don't have an implementation for it.
  2. This helper method was not part of our core API. The reason for it being included before is unclear, but it seems mainly for testing purposes. We believe we shouldn't have such APIs in the client and therefore have chosen not to find a new implementation for newer .NET targets.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IoTSDK Tracks all IoT SDK issues across the board question Further information is requested.
Projects
None yet
Development

No branches or pull requests

2 participants