AuthenticatedEncryptionProvider Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Provides authenticated encryption and decryption services.
public class AuthenticatedEncryptionProvider : IDisposable
type AuthenticatedEncryptionProvider = class
interface IDisposable
Public Class AuthenticatedEncryptionProvider
Implements IDisposable
- Inheritance
-
AuthenticatedEncryptionProvider
- Implements
Constructors
AuthenticatedEncryptionProvider(SecurityKey, String) |
Initializes a new instance of the AuthenticatedEncryptionProvider class used for encryption and decryption. |
Properties
Algorithm |
Gets the encryption algorithm that is being used. |
Context |
Gets or sets a user context for a AuthenticatedEncryptionProvider. |
Key |
Gets the SecurityKey that is being used. |
Methods
Decrypt(Byte[], Byte[], Byte[], Byte[]) |
Decrypts ciphertext into plaintext |
Dispose() |
Calls Dispose(Boolean) and SuppressFinalize(Object) |
Dispose(Boolean) |
Releases managed resources. |
Encrypt(Byte[], Byte[]) |
Encrypts the 'plaintext' |
Encrypt(Byte[], Byte[], Byte[]) |
Encrypts the 'plaintext' |
GetKeyBytes(SecurityKey) |
Called to obtain the byte[] needed to create a KeyedHashAlgorithm |
IsSupportedAlgorithm(SecurityKey, String) |
Checks if an 'key, algorithm' pair is supported |
ValidateKeySize(SecurityKey, String) |
Checks that the key has sufficient length |
Applies to
Opinia
https://aka.ms/ContentUserFeedback.
Dostępne już wkrótce: W 2024 r. będziemy stopniowo wycofywać zgłoszenia z serwisu GitHub jako mechanizm przesyłania opinii na temat zawartości i zastępować go nowym systemem opinii. Aby uzyskać więcej informacji, sprawdź:Prześlij i wyświetl opinię dla