ValidKeySize Method
Collapse the table of content
Expand the table of content

SymmetricAlgorithm.ValidKeySize Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Determines whether the specified key size is valid for the current algorithm.

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

'Declaration
Public Function ValidKeySize ( _
	bitLength As Integer _
) As Boolean

Parameters

bitLength
Type: System.Int32
The length, in bits, to check for a valid key size.

Return Value

Type: System.Boolean
true if the specified key size is valid for the current algorithm; otherwise, false.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft