SymmetricAlgorithm::LegalBlockSizes Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets the block sizes, in bits, that are supported by the symmetric algorithm.

Namespace:   System.Security.Cryptography
Assembly:  mscorlib (in mscorlib.dll)

public:
property array<KeySizes^>^ LegalBlockSizes {
	virtual array<KeySizes^>^ get();
}

Property Value

Type: array<System.Security.Cryptography::KeySizes^>^

An array that contains the block sizes supported by the algorithm.

The symmetric algorithm supports only block sizes that match an entry in this array.

The following example shows the value of LegalBlockSizes for the symmetric algorithms.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: