SymmetricKeyAlgorithmProvider.BlockLength 屬性

定義

取得開啟演算法之加密區塊的大小,以位元組為單位。

public:
 property unsigned int BlockLength { unsigned int get(); };
uint32_t BlockLength();
public uint BlockLength { get; }
var uInt32 = symmetricKeyAlgorithmProvider.blockLength;
Public ReadOnly Property BlockLength As UInteger

屬性值

UInt32

unsigned int

uint32_t

區塊大小。

備註

如果您未使用 PKCS#7 區塊填補演算法 (會自動將您的內容填補到正確的長度) ,您必須確定要加密的訊息是演算法支援的確切長度倍數。 如需詳細資訊,請參閱下列程式碼範例。

適用於

另請參閱