SymmetricAlgorithm.BlockSize 屬性

定義

取得或設定密碼編譯作業的區塊大小,以位元為單位。Gets or sets the block size, in bits, of the cryptographic operation.

public:
 virtual property int BlockSize { int get(); void set(int value); };
public virtual int BlockSize { get; set; }
member this.BlockSize : int with get, set
Public Overridable Property BlockSize As Integer

屬性值

區塊大小,以位元為單位。The block size, in bits.

例外狀況

區塊大小無效。The block size is invalid.

備註

區塊大小是可以在一項作業中加密或解密的基本資料單位。The block size is the basic unit of data that can be encrypted or decrypted in one operation. 長度超過區塊大小的訊息會當做連續區塊來處理;短于區塊大小的訊息必須以額外的位填補,以達到區塊大小。Messages longer than the block size are handled as successive blocks; messages shorter than the block size must be padded with extra bits to reach the size of a block. 有效的區塊大小取決於所使用的對稱演算法。Valid block sizes are determined by the symmetric algorithm used.

適用於

另請參閱