<PackageReference Include="Microsoft.Bcl.Cryptography" Version="10.0.12" />

System.Security.Cryptography.AuthenticationTagMismatchException

The exception that is thrown when a decryption operation with an authenticated cipher has an authentication tag mismatch.

Initializes a new instance of the AuthenticationTagMismatchException class with default properties.

public AuthenticationTagMismatchException(string message)

Initializes a new instance of the AuthenticationTagMismatchException class with a specified error message.

public AuthenticationTagMismatchException(string message, Exception inner)

Initializes a new instance of the AuthenticationTagMismatchException class with a specified error message and a reference to the inner exception that is the cause of this exception.