RijndaelManagedTransform 類別

定義

使用 Rijndael 演算法執行資料的密碼編譯轉換。 此類別無法獲得繼承。

public ref class RijndaelManagedTransform sealed : System::Security::Cryptography::ICryptoTransform
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class RijndaelManagedTransform : System.Security.Cryptography.ICryptoTransform
[<System.Runtime.InteropServices.ComVisible(true)>]
type RijndaelManagedTransform = class
    interface ICryptoTransform
    interface IDisposable
Public NotInheritable Class RijndaelManagedTransform
Implements ICryptoTransform
繼承
RijndaelManagedTransform
屬性
實作

備註

重要

類別 Rijndael 是演算法的 Aes 前置任務。 您應該使用演算法, Aes 而不是 Rijndael 。 如需詳細資訊,請參閱 .NET 安全性部落格中的 Rijndael 與 AES 之間的差異 專案。

不建議使用此類別。 如果您使用 Rijndael 演算法,較佳的做法是搭配 CryptoStream 物件使用 RijndaelManaged 。 物件會 CryptoStream 處理直接使用 RijndaelManagedTransform 時可能發生的填補問題。 如需範例,請參閱 RijndaelManaged 類別。

CreateEncryptorCreateDecryptor 方法都會傳回 類別的 RijndaelManagedTransform 實例,這個實例是以目前 RijndaelManaged 物件的索引鍵資訊初始化。 若要使用 Rijndael 演算法加密或解密資料,請將這些方法傳回的物件傳遞 RijndaelManagedTransformCryptoStream 物件。

屬性

BlockSizeValue

取得區塊大小。

CanReuseTransform

取得值,表示目前的轉換是否可重複使用。

CanTransformMultipleBlocks

取得值,表示是否有多個區塊可被轉換。

InputBlockSize

取得輸入區塊的大小。

OutputBlockSize

取得輸出區塊的大小。

方法

Clear()

釋放 RijndaelManagedTransform 類別所使用的所有資源。

Dispose()

釋放 RijndaelManagedTransform 類別目前的執行個體所使用的全部資源。

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
Reset()

重設 RijndaelManagedTransform 的內部狀態,使其能再度用來執行其他加密或解密作業。

ToString()

傳回代表目前物件的字串。

(繼承來源 Object)
TransformBlock(Byte[], Int32, Int32, Byte[], Int32)

計算輸入位元組陣列指定區域的轉換,並將產生的轉換複製到輸出位元組陣列的指定區域。

TransformFinalBlock(Byte[], Int32, Int32)

計算指定位元組陣列之指定區域的轉換。

明確介面實作

IDisposable.Dispose()

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

執行與釋放 (Free)、釋放 (Release) 或重設 Unmanaged 資源相關聯之應用程式定義的工作。

適用於

另請參閱