ManagedAuthenticatedEncryptionSettings Class¶
Settings for configuring an authenticated encryption mechanism which uses managed SymmetricAlgorithm and KeyedHashAlgorithm implementations.
- Namespace
Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption
- Assemblies
- Microsoft.AspNetCore.DataProtection
Syntax¶
public sealed class ManagedAuthenticatedEncryptionSettings : IInternalAuthenticatedEncryptionSettings
-
class
Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.
ManagedAuthenticatedEncryptionSettings
Properties¶
-
Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ManagedAuthenticatedEncryptionSettings.
EncryptionAlgorithmKeySize
¶ The length (in bits) of the key that will be used for symmetric encryption. This property is required to have a value.
Return type: System.Int32 public int EncryptionAlgorithmKeySize { get; set; }
-
Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ManagedAuthenticatedEncryptionSettings.
EncryptionAlgorithmType
¶ The type of the algorithm to use for symmetric encryption. The type must subclass
System.Security.Cryptography.SymmetricAlgorithm
. This property is required to have a value.Return type: System.Type public Type EncryptionAlgorithmType { get; set; }
-
Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ManagedAuthenticatedEncryptionSettings.
ValidationAlgorithmType
¶ The type of the algorithm to use for validation. Type type must subclass
System.Security.Cryptography.KeyedHashAlgorithm
. This property is required to have a value.Return type: System.Type public Type ValidationAlgorithmType { get; set; }
-
Methods¶
-
Validate
()¶ Validates that this
Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ManagedAuthenticatedEncryptionSettings
is well-formed, i.e., that the specified algorithms actually exist and can be instantiated properly. An exception will be thrown if validation fails.public void Validate()
-