SymmetricAlgorithm.GetCiphertextLengthCfb(Int32, PaddingMode, Int32) 方法

定義

取得具有指定填補模式和 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 不是有效的填補模式。

已使用填補模式 None ,但 plaintextLength 不是整數區塊。

-或-

feedbackSizeInBits 不是整數位節。 它必須以 8 分隔。

備註

feedbackSizeInBits 接受任何有效的意見反應大小值,不論演算法是否支援指定的意見反應大小。

適用於