語言

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位元整數。

適用於