AuthenticatedEncryptionProvider.Decrypt Method
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.
Decrypts ciphertext into plaintext
public virtual byte[] Decrypt (byte[] ciphertext, byte[] authenticatedData, byte[] iv, byte[] authenticationTag);
abstract member Decrypt : byte[] * byte[] * byte[] * byte[] -> byte[]
override this.Decrypt : byte[] * byte[] * byte[] * byte[] -> byte[]
Public Overridable Function Decrypt (ciphertext As Byte(), authenticatedData As Byte(), iv As Byte(), authenticationTag As Byte()) As Byte()
Parameters
- ciphertext
- Byte[]
the encrypted text to decrypt.
- authenticatedData
- Byte[]
the authenticateData that is used in verification.
- iv
- Byte[]
the initialization vector used when creating the ciphertext.
- authenticationTag
- Byte[]
the authenticationTag that was created during the encyption.
Returns
decrypted ciphertext
Exceptions
authenticationTag
is null or empty.
Thrown if the AES crypto operation threw. See inner exception.
Thrown if the internal SignatureProvider is disposed.
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: