Skip to content

Commit 1c2f680

Browse files
authored
Fix sample output for .NET Core on SymmetricAlgorithm.BlockSize (#4300)
1 parent d4a180f commit 1c2f680

File tree

2 files changed

+56
-2
lines changed
  • samples/snippets
    • csharp/VS_Snippets_CLR_System/system.security.cryptography.symmetricalgorithm.blocksize/cs
    • visualbasic/VS_Snippets_CLR_System/system.security.cryptography.symmetricalgorithm.blocksize/vb

2 files changed

+56
-2
lines changed

samples/snippets/csharp/VS_Snippets_CLR_System/system.security.cryptography.symmetricalgorithm.blocksize/cs/program.cs

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ static void Main(string[] args)
8080
}
8181
}
8282
}
83-
//This sample produces the following output:
83+
//This sample produces the following output when run on .NET Framework:
8484
//AesManaged
8585
// Legal min key size = 128
8686
// Legal max key size = 256
@@ -106,4 +106,31 @@ static void Main(string[] args)
106106
// Legal max key size = 192
107107
// Legal min block size = 64
108108
// Legal max block size = 64
109+
//
110+
//This sample produces the following output when run on .NET Core:
111+
//AesManaged
112+
// Legal min key size = 128
113+
// Legal max key size = 256
114+
// Legal min block size = 128
115+
// Legal max block size = 128
116+
//DESCryptoServiceProvider
117+
// Legal min key size = 64
118+
// Legal max key size = 64
119+
// Legal min block size = 64
120+
// Legal max block size = 64
121+
//RC2CryptoServiceProvider
122+
// Legal min key size = 40
123+
// Legal max key size = 128
124+
// Legal min block size = 64
125+
// Legal max block size = 64
126+
//RijndaelManaged
127+
// Legal min key size = 128
128+
// Legal max key size = 256
129+
// Legal min block size = 128
130+
// Legal max block size = 128
131+
//TripleDESCryptoServiceProvider
132+
// Legal min key size = 128
133+
// Legal max key size = 192
134+
// Legal min block size = 64
135+
// Legal max block size = 64
109136
//</Snippet1>

samples/snippets/visualbasic/VS_Snippets_CLR_System/system.security.cryptography.symmetricalgorithm.blocksize/vb/program.vb

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ Class Program
8282

8383
End Sub
8484
End Class
85-
'This sample produces the following output:
85+
'This sample produces the following output when run on .NET Framework:
8686
'AesManaged
8787
' Legal min key size = 128
8888
' Legal max key size = 256
@@ -108,4 +108,31 @@ End Class
108108
' Legal max key size = 192
109109
' Legal min block size = 64
110110
' Legal max block size = 64
111+
'
112+
'This sample produces the following output when run on .NET Core:
113+
'AesManaged
114+
' Legal min key size = 128
115+
' Legal max key size = 256
116+
' Legal min block size = 128
117+
' Legal max block size = 128
118+
'DESCryptoServiceProvider
119+
' Legal min key size = 64
120+
' Legal max key size = 64
121+
' Legal min block size = 64
122+
' Legal max block size = 64
123+
'RC2CryptoServiceProvider
124+
' Legal min key size = 40
125+
' Legal max key size = 128
126+
' Legal min block size = 64
127+
' Legal max block size = 64
128+
'RijndaelManaged
129+
' Legal min key size = 128
130+
' Legal max key size = 256
131+
' Legal min block size = 128
132+
' Legal max block size = 128
133+
'TripleDESCryptoServiceProvider
134+
' Legal min key size = 128
135+
' Legal max key size = 192
136+
' Legal min block size = 64
137+
' Legal max block size = 64
111138
'</Snippet1>

0 commit comments

Comments
 (0)