CryptographicEngine 類別

定義

加密、解密和簽署內容,並驗證數位簽章。

public ref class CryptographicEngine abstract sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class CryptographicEngine final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public static class CryptographicEngine
Public Class CryptographicEngine
繼承
Object Platform::Object IInspectable CryptographicEngine
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

備註

這個類別只包含靜態方法。 您不需要建立 類別的實例,即可使用 方法。 請改用類別名稱,後面接著點運算子 (.) ,後面接著方法名稱。

方法

Decrypt(CryptographicKey, IBuffer, IBuffer)

解密先前使用對稱或非對稱演算法加密的內容。

DecryptAndAuthenticate(CryptographicKey, IBuffer, IBuffer, IBuffer, IBuffer)

解密和驗證資料。 如需詳細資訊和完整的程式碼範例,請參閱 EncryptedAndAuthenticatedData

DecryptAsync(CryptographicKey, IBuffer, IBuffer)

使用提供的金鑰解密加密的輸入資料。

DeriveKeyMaterial(CryptographicKey, KeyDerivationParameters, UInt32)

使用金鑰衍生函式,從另一個金鑰衍生金鑰衍生金鑰。 如需詳細資訊,請參閱 KeyDerivationAlgorithmProviderKeyDerivationParameters 類別。

Encrypt(CryptographicKey, IBuffer, IBuffer)

使用對稱或非對稱演算法來加密資料。

EncryptAndAuthenticate(CryptographicKey, IBuffer, IBuffer, IBuffer)

執行已驗證的加密。

Sign(CryptographicKey, IBuffer)

簽署數位內容。 如需詳細資訊,請參閱 MAC、雜湊和簽章

SignAsync(CryptographicKey, IBuffer)

計算所提供輸入資料的雜湊,然後使用指定的索引鍵簽署計算雜湊。

SignHashedData(CryptographicKey, IBuffer)

使用指定的索引鍵簽署雜湊輸入資料。

SignHashedDataAsync(CryptographicKey, IBuffer)

使用指定的索引鍵簽署雜湊輸入資料。

VerifySignature(CryptographicKey, IBuffer, IBuffer)

驗證訊息簽章。

VerifySignatureWithHashInput(CryptographicKey, IBuffer, IBuffer)

根據已知的簽章,驗證指定輸入資料的簽章。

適用於

另請參閱