Skip to content

Latest commit

 

History

History
31 lines (19 loc) · 1.82 KB

encryptedandauthenticateddata.md

File metadata and controls

31 lines (19 loc) · 1.82 KB
-api-id -api-type
T:Windows.Security.Cryptography.Core.EncryptedAndAuthenticatedData
winrt class

Windows.Security.Cryptography.Core.EncryptedAndAuthenticatedData

-description

Contains data that can be retrieved from encrypted and authenticated data. Authenticated encryption algorithms are opened by using the SymmetricKeyAlgorithmProvider class.

-remarks

Authenticated encryption encrypts and authenticates content in one operation. An authenticator, also called a tag, is used during encryption and the output of the process contains a tag-ciphertext pair. For more information, see the AuthenticationTag and EncryptedData properties. The decryption process verifies the ciphertext against the tag.

You can use an authenticated encryption algorithm after calling the OpenAlgorithm method on the SymmetricKeyAlgorithmProvider class and specifying the name of the algorithm to open. The following algorithm names are supported for authenticated encryption and decryption:

  • AES_GCM
  • AES_CCM

-examples

[!code-csharpShowEncryptedAuthenticatedDataClass]

-see-also

CryptographicEngine, DecryptAndAuthenticate, EncryptAndAuthenticate, SymmetricKeyAlgorithmProvider