InMemorySymmetricSecurityKey.GetIVSize(String) 方法

定義

取得指定之密碼編譯演算法所需要的初始化向量 (IV) 大小 (以位元為單位)。

public:
 override int GetIVSize(System::String ^ algorithm);
public override int GetIVSize (string algorithm);
override this.GetIVSize : string -> int
Public Overrides Function GetIVSize (algorithm As String) As Integer

參數

algorithm
String

要取得其初始化向量 (IV) 大小的密碼編譯演算法。

傳回

指定於 IV 參數中之密碼編譯演算法所需要的初始化向量 (algorithm) 大小,以位元為單位。

例外狀況

不支援 algorithm。 支援的演算法為 TripleDesEncryptionAes128EncryptionAes192EncryptionAes256Encryption

備註

使用表示在 SecurityAlgorithms 類別中之加密演算法的欄位來指定此演算法。

適用於