SymmetricAlgorithm.GetCiphertextLengthCfb(Int32, PaddingMode, Int32) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得具有指定填補模式和 CFB 模式中純文字長度的加密文字長度。
public int GetCiphertextLengthCfb (int plaintextLength, System.Security.Cryptography.PaddingMode paddingMode = System.Security.Cryptography.PaddingMode.None, int feedbackSizeInBits = 8);
member this.GetCiphertextLengthCfb : int * System.Security.Cryptography.PaddingMode * int -> int
Public Function GetCiphertextLengthCfb (plaintextLength As Integer, Optional paddingMode As PaddingMode = System.Security.Cryptography.PaddingMode.None, Optional feedbackSizeInBits As Integer = 8) As Integer
參數
- plaintextLength
- Int32
純文本長度,以位元組為單位。
- paddingMode
- PaddingMode
用來將純文本填補到意見反應大小的填補模式。
- feedbackSizeInBits
- Int32
回饋大小 (以位元為單位)。
傳回
具有填補的加密文字長度,以位元組為單位。
例外狀況
feedbackSizeInBits
不是正數。
-或-
plaintextLength
為負數。
-或-
plaintextLength
當填補太大而無法表示為帶正負號的32位整數時。
-或-
paddingMode
不是有效的填補模式。
備註
feedbackSizeInBits
接受任何有效的意見反應大小值,不論演算法是否支援指定的意見反應大小。
適用於
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應