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
Saran dan Komentar
https://aka.ms/ContentUserFeedback.
Segera hadir: Sepanjang tahun 2024 kami akan menghentikan penggunaan GitHub Issues sebagai mekanisme umpan balik untuk konten dan menggantinya dengan sistem umpan balik baru. Untuk mengetahui informasi selengkapnya, lihat:Kirim dan lihat umpan balik untuk