Skip to content

Conversation

@tdykstra
Copy link
Contributor

@tdykstra tdykstra commented Jun 19, 2020

Contributes to dotnet/docs#10199

From the issue:

Samples should not use any of the following cryptography types:

As an alternative, they should reference Aes.

Notes:

  • Samples for symmetricalgorithm.create and cryptography.keysizes create the default symmetric algorithm which is said to be Rijndael, but these don't even run -- they raise an exception saying the platform doesn't allow creation of default algorithm. So I didn't change these.
  • The sample for symmetricalgorithm.legalkeysizes displays key sizes for the four deprecated symmetric algorithms as well as AES. I left it unchanged.
  • The sample for passwordderivebytes uses TripleDes but when I try switching it to AES it fails with the error message "Object identifier (OID) is unknown". I left it unchanged.

@tdykstra tdykstra requested a review from bartonjs June 19, 2020 17:17
@dotnet-bot dotnet-bot added this to the June 2020 milestone Jun 19, 2020
@tdykstra
Copy link
Contributor Author

This is ready for review. I'll make a separate PR for instances of Rijndael in XML encryption samples.

@tdykstra tdykstra merged commit 75eb938 into dotnet:master Jun 30, 2020
@tdykstra tdykstra deleted the cryptotypes branch June 30, 2020 18:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants