RSA.GetMaxOutputSize Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets the maximum number of bytes an RSA operation can produce.
public:
int GetMaxOutputSize();
public int GetMaxOutputSize ();
member this.GetMaxOutputSize : unit -> int
Public Function GetMaxOutputSize () As Integer
Returns
The maximum number of bytes an RSA operation can produce.
Exceptions
KeySize returned a value that is not a possible RSA key size.
Remarks
The maximum output size is defined by the RSA modulus, or key size. The key size, in bytes, is the maximum output size. If the key size is not an even number of bytes, then it is rounded up to the nearest number of whole bytes for purposes of determining the maximum output size.