Aes.GetKeyWrapPaddedLength(Int32) 方法

定义

计算具有指定纯文本长度的填充算法的 IETF RFC 5649 AES 密钥包装的输出长度。

public:
 static int GetKeyWrapPaddedLength(int plaintextLengthInBytes);
public static int GetKeyWrapPaddedLength(int plaintextLengthInBytes);
static member GetKeyWrapPaddedLength : int -> int
Public Shared Function GetKeyWrapPaddedLength (plaintextLengthInBytes As Integer) As Integer

参数

plaintextLengthInBytes
Int32

要包装的纯文本的长度(以字节为单位)。

返回

指定纯文本的键换行的填充长度。

例外

plaintextLengthInBytes 小于或等于零。

-或-

plaintextLengthInBytes 表示一个纯文本长度,当包装时,其长度不能表示为有符号 32 位整数。

适用于