AuthenticatedEncryptorConfiguration.ValidationAlgorithm 属性

定义

用于消息身份验证的算法 (防篡改) 。

public:
 property Microsoft::AspNetCore::DataProtection::AuthenticatedEncryption::ValidationAlgorithm ValidationAlgorithm { Microsoft::AspNetCore::DataProtection::AuthenticatedEncryption::ValidationAlgorithm get(); void set(Microsoft::AspNetCore::DataProtection::AuthenticatedEncryption::ValidationAlgorithm value); };
public Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ValidationAlgorithm ValidationAlgorithm { get; set; }
member this.ValidationAlgorithm : Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ValidationAlgorithm with get, set
Public Property ValidationAlgorithm As ValidationAlgorithm

属性值

注解

默认值为 HMACSHA256。 如果 EncryptionAlgorithm 指定“GCM”算法,则忽略此属性。

适用于