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
Visszajelzés
https://aka.ms/ContentUserFeedback.
Hamarosan elérhető: 2024-ben fokozatosan kivezetjük a GitHub-problémákat a tartalom visszajelzési mechanizmusaként, és lecseréljük egy új visszajelzési rendszerre. További információ:Visszajelzés küldése és megtekintése a következőhöz: