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