Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix sample output for .NET Core on SymmetricAlgorithm.BlockSize
  • Loading branch information
vcsjones committed May 28, 2020
commit b4f2d5748fb07e3af54b366a54afe9470f150f1d
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ static void Main(string[] args)
}
}
}
//This sample produces the following output:
//This sample produces the following output when run on .NET Framework:
//AesManaged
// Legal min key size = 128
// Legal max key size = 256
Expand All @@ -106,4 +106,31 @@ static void Main(string[] args)
// Legal max key size = 192
// Legal min block size = 64
// Legal max block size = 64
//
//This sample produces the following output when run on .NET Core:
//AesManaged
// Legal min key size = 128
// Legal max key size = 256
// Legal min block size = 128
// Legal max block size = 128
//DESCryptoServiceProvider
// Legal min key size = 64
// Legal max key size = 64
// Legal min block size = 64
// Legal max block size = 64
//RC2CryptoServiceProvider
// Legal min key size = 40
// Legal max key size = 128
// Legal min block size = 64
// Legal max block size = 64
//RijndaelManaged
// Legal min key size = 128
// Legal max key size = 256
// Legal min block size = 128
// Legal max block size = 128
//TripleDESCryptoServiceProvider
// Legal min key size = 128
// Legal max key size = 192
// Legal min block size = 64
// Legal max block size = 64
//</Snippet1>
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Class Program

End Sub
End Class
'This sample produces the following output:
'This sample produces the following output when run on .NET Framework:
'AesManaged
' Legal min key size = 128
' Legal max key size = 256
Expand All @@ -108,4 +108,31 @@ End Class
' Legal max key size = 192
' Legal min block size = 64
' Legal max block size = 64
'
'This sample produces the following output when run on .NET Core:
'AesManaged
' Legal min key size = 128
' Legal max key size = 256
' Legal min block size = 128
' Legal max block size = 128
'DESCryptoServiceProvider
' Legal min key size = 64
' Legal max key size = 64
' Legal min block size = 64
' Legal max block size = 64
'RC2CryptoServiceProvider
' Legal min key size = 40
' Legal max key size = 128
' Legal min block size = 64
' Legal max block size = 64
'RijndaelManaged
' Legal min key size = 128
' Legal max key size = 256
' Legal min block size = 128
' Legal max block size = 128
'TripleDESCryptoServiceProvider
' Legal min key size = 128
' Legal max key size = 192
' Legal min block size = 64
' Legal max block size = 64
'</Snippet1>