共用方式為


DataProtectionBuilderExtensions.UseCustomCryptographicAlgorithms 方法

定義

多載

UseCustomCryptographicAlgorithms(IDataProtectionBuilder, ManagedAuthenticatedEncryptionSettings)

設定資料保護系統以使用自訂演算法。 此 API 適用于開發人員無法使用 和 ValidationAlgorithm 列舉中指定的 EncryptionAlgorithm 演算法的進階案例。

UseCustomCryptographicAlgorithms(IDataProtectionBuilder, CngCbcAuthenticatedEncryptionSettings)

設定資料保護系統以使用自訂 Windows CNG 演算法。 此 API 適用于開發人員無法使用 和 ValidationAlgorithm 列舉中指定的 EncryptionAlgorithm 演算法的進階案例。

UseCustomCryptographicAlgorithms(IDataProtectionBuilder, CngGcmAuthenticatedEncryptionSettings)

設定資料保護系統以使用自訂 Windows CNG 演算法。 此 API 適用于開發人員無法使用 和 ValidationAlgorithm 列舉中指定的 EncryptionAlgorithm 演算法的進階案例。

UseCustomCryptographicAlgorithms(IDataProtectionBuilder, CngCbcAuthenticatedEncryptorConfiguration)

設定資料保護系統以使用自訂 Windows CNG 演算法。 此 API 適用于開發人員無法使用 和 ValidationAlgorithm 列舉中指定的 EncryptionAlgorithm 演算法的進階案例。

UseCustomCryptographicAlgorithms(IDataProtectionBuilder, CngGcmAuthenticatedEncryptorConfiguration)

設定資料保護系統以使用自訂 Windows CNG 演算法。 此 API 適用于開發人員無法使用 和 ValidationAlgorithm 列舉中指定的 EncryptionAlgorithm 演算法的進階案例。

UseCustomCryptographicAlgorithms(IDataProtectionBuilder, ManagedAuthenticatedEncryptorConfiguration)

設定資料保護系統以使用自訂演算法。 此 API 適用于開發人員無法使用 和 ValidationAlgorithm 列舉中指定的 EncryptionAlgorithm 演算法的進階案例。

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

參數

settings
ManagedAuthenticatedEncryptionSettings

應該使用哪些密碼編譯演算法的相關資訊。

傳回

完成此作業之後的 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

參數

settings
CngCbcAuthenticatedEncryptionSettings

應該使用哪些密碼編譯演算法的相關資訊。

傳回

完成此作業之後的 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

參數

settings
CngGcmAuthenticatedEncryptionSettings

應該使用哪些密碼編譯演算法的相關資訊。

傳回

完成此作業之後的 IDataProtectionBuilder 參考。

備註

此 API 僅適用于 Windows。

適用於

UseCustomCryptographicAlgorithms(IDataProtectionBuilder, CngCbcAuthenticatedEncryptorConfiguration)

來源:
DataProtectionBuilderExtensions.cs
來源:
DataProtectionBuilderExtensions.cs
來源:
DataProtectionBuilderExtensions.cs
來源:
DataProtectionBuilderExtensions.cs
來源:
DataProtectionBuilderExtensions.cs
來源:
DataProtectionBuilderExtensions.cs
來源:
DataProtectionBuilderExtensions.cs
來源:
DataProtectionBuilderExtensions.cs

設定資料保護系統以使用自訂 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)

來源:
DataProtectionBuilderExtensions.cs
來源:
DataProtectionBuilderExtensions.cs
來源:
DataProtectionBuilderExtensions.cs
來源:
DataProtectionBuilderExtensions.cs
來源:
DataProtectionBuilderExtensions.cs
來源:
DataProtectionBuilderExtensions.cs
來源:
DataProtectionBuilderExtensions.cs
來源:
DataProtectionBuilderExtensions.cs

設定資料保護系統以使用自訂 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)

來源:
DataProtectionBuilderExtensions.cs
來源:
DataProtectionBuilderExtensions.cs
來源:
DataProtectionBuilderExtensions.cs
來源:
DataProtectionBuilderExtensions.cs
來源:
DataProtectionBuilderExtensions.cs
來源:
DataProtectionBuilderExtensions.cs
來源:
DataProtectionBuilderExtensions.cs
來源:
DataProtectionBuilderExtensions.cs

設定資料保護系統以使用自訂演算法。 此 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 參考。

適用於