DataProtectionBuilderExtensions.UseCustomCryptographicAlgorithms 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
UseCustomCryptographicAlgorithms(IDataProtectionBuilder, ManagedAuthenticatedEncryptionSettings)
設定資料保護系統以使用自訂演算法。 此 API 適用于開發人員無法使用 和 ValidationAlgorithm 列舉中指定的 EncryptionAlgorithm 演算法的進階案例。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ UseCustomCryptographicAlgorithms(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder, Microsoft::AspNetCore::DataProtection::AuthenticatedEncryption::ManagedAuthenticatedEncryptionSettings ^ settings);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder UseCustomCryptographicAlgorithms (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ManagedAuthenticatedEncryptionSettings settings);
static member UseCustomCryptographicAlgorithms : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ManagedAuthenticatedEncryptionSettings -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function UseCustomCryptographicAlgorithms (builder As IDataProtectionBuilder, settings As ManagedAuthenticatedEncryptionSettings) As IDataProtectionBuilder
參數
應該使用哪些密碼編譯演算法的相關資訊。
傳回
完成此作業之後的 IDataProtectionBuilder 參考。
適用於
UseCustomCryptographicAlgorithms(IDataProtectionBuilder, CngCbcAuthenticatedEncryptionSettings)
設定資料保護系統以使用自訂 Windows CNG 演算法。 此 API 適用于開發人員無法使用 和 ValidationAlgorithm 列舉中指定的 EncryptionAlgorithm 演算法的進階案例。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ UseCustomCryptographicAlgorithms(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder, Microsoft::AspNetCore::DataProtection::AuthenticatedEncryption::CngCbcAuthenticatedEncryptionSettings ^ settings);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder UseCustomCryptographicAlgorithms (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.CngCbcAuthenticatedEncryptionSettings settings);
static member UseCustomCryptographicAlgorithms : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.CngCbcAuthenticatedEncryptionSettings -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function UseCustomCryptographicAlgorithms (builder As IDataProtectionBuilder, settings As CngCbcAuthenticatedEncryptionSettings) As IDataProtectionBuilder
參數
應該使用哪些密碼編譯演算法的相關資訊。
傳回
完成此作業之後的 IDataProtectionBuilder 參考。
備註
此 API 僅適用于 Windows。
適用於
UseCustomCryptographicAlgorithms(IDataProtectionBuilder, CngGcmAuthenticatedEncryptionSettings)
設定資料保護系統以使用自訂 Windows CNG 演算法。 此 API 適用于開發人員無法使用 和 ValidationAlgorithm 列舉中指定的 EncryptionAlgorithm 演算法的進階案例。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ UseCustomCryptographicAlgorithms(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder, Microsoft::AspNetCore::DataProtection::AuthenticatedEncryption::CngGcmAuthenticatedEncryptionSettings ^ settings);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder UseCustomCryptographicAlgorithms (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.CngGcmAuthenticatedEncryptionSettings settings);
static member UseCustomCryptographicAlgorithms : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.CngGcmAuthenticatedEncryptionSettings -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function UseCustomCryptographicAlgorithms (builder As IDataProtectionBuilder, settings As CngGcmAuthenticatedEncryptionSettings) As IDataProtectionBuilder
參數
應該使用哪些密碼編譯演算法的相關資訊。
傳回
完成此作業之後的 IDataProtectionBuilder 參考。
備註
此 API 僅適用于 Windows。
適用於
UseCustomCryptographicAlgorithms(IDataProtectionBuilder, CngCbcAuthenticatedEncryptorConfiguration)
設定資料保護系統以使用自訂 Windows CNG 演算法。 此 API 適用于開發人員無法使用 和 ValidationAlgorithm 列舉中指定的 EncryptionAlgorithm 演算法的進階案例。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ UseCustomCryptographicAlgorithms(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder, Microsoft::AspNetCore::DataProtection::AuthenticatedEncryption::ConfigurationModel::CngCbcAuthenticatedEncryptorConfiguration ^ configuration);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder UseCustomCryptographicAlgorithms (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.CngCbcAuthenticatedEncryptorConfiguration configuration);
static member UseCustomCryptographicAlgorithms : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.CngCbcAuthenticatedEncryptorConfiguration -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function UseCustomCryptographicAlgorithms (builder As IDataProtectionBuilder, configuration As CngCbcAuthenticatedEncryptorConfiguration) As IDataProtectionBuilder
參數
- configuration
- CngCbcAuthenticatedEncryptorConfiguration
應該使用哪些密碼編譯演算法的相關資訊。
傳回
完成此作業之後的 IDataProtectionBuilder 參考。
備註
此 API 僅適用于 Windows。
適用於
UseCustomCryptographicAlgorithms(IDataProtectionBuilder, CngGcmAuthenticatedEncryptorConfiguration)
設定資料保護系統以使用自訂 Windows CNG 演算法。 此 API 適用于開發人員無法使用 和 ValidationAlgorithm 列舉中指定的 EncryptionAlgorithm 演算法的進階案例。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ UseCustomCryptographicAlgorithms(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder, Microsoft::AspNetCore::DataProtection::AuthenticatedEncryption::ConfigurationModel::CngGcmAuthenticatedEncryptorConfiguration ^ configuration);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder UseCustomCryptographicAlgorithms (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.CngGcmAuthenticatedEncryptorConfiguration configuration);
static member UseCustomCryptographicAlgorithms : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.CngGcmAuthenticatedEncryptorConfiguration -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function UseCustomCryptographicAlgorithms (builder As IDataProtectionBuilder, configuration As CngGcmAuthenticatedEncryptorConfiguration) As IDataProtectionBuilder
參數
- configuration
- CngGcmAuthenticatedEncryptorConfiguration
應該使用哪些密碼編譯演算法的相關資訊。
傳回
完成此作業之後的 IDataProtectionBuilder 參考。
備註
此 API 僅適用于 Windows。
適用於
UseCustomCryptographicAlgorithms(IDataProtectionBuilder, ManagedAuthenticatedEncryptorConfiguration)
設定資料保護系統以使用自訂演算法。 此 API 適用于開發人員無法使用 和 ValidationAlgorithm 列舉中指定的 EncryptionAlgorithm 演算法的進階案例。
public:
[System::Runtime::CompilerServices::Extension]
static Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ UseCustomCryptographicAlgorithms(Microsoft::AspNetCore::DataProtection::IDataProtectionBuilder ^ builder, Microsoft::AspNetCore::DataProtection::AuthenticatedEncryption::ConfigurationModel::ManagedAuthenticatedEncryptorConfiguration ^ configuration);
public static Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder UseCustomCryptographicAlgorithms (this Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder builder, Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.ManagedAuthenticatedEncryptorConfiguration configuration);
static member UseCustomCryptographicAlgorithms : Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder * Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.ManagedAuthenticatedEncryptorConfiguration -> Microsoft.AspNetCore.DataProtection.IDataProtectionBuilder
<Extension()>
Public Function UseCustomCryptographicAlgorithms (builder As IDataProtectionBuilder, configuration As ManagedAuthenticatedEncryptorConfiguration) As IDataProtectionBuilder
參數
- configuration
- ManagedAuthenticatedEncryptorConfiguration
應該使用哪些密碼編譯演算法的相關資訊。
傳回
完成此作業之後的 IDataProtectionBuilder 參考。