Aes.GetKeyWrapPaddedLength(Int32) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
计算具有指定纯文本长度的填充算法的 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 位整数。