Skip to content

Latest commit

 

History

History
51 lines (35 loc) · 1.4 KB

symmetrickeyalgorithmprovider.md

File metadata and controls

51 lines (35 loc) · 1.4 KB
-api-id -api-type
T:Windows.Security.Cryptography.Core.SymmetricKeyAlgorithmProvider
winrt class

Windows.Security.Cryptography.Core.SymmetricKeyAlgorithmProvider

-description

Represents a provider of symmetric key algorithms. For more information, see Cryptographic keys.

-remarks

You create a SymmetricKeyAlgorithmProvider object by calling the static OpenAlgorithm method and specifying one of the following algorithm names.

  • No padding:+ DES_CBC

  • DES_ECB

  • 3DES_CBC

  • 3DES_ECB

  • RC2_CBC

  • RC2_ECB

  • AES_CBC

  • AES_ECB

  • PKCS#7 block padding modes:+ AES_CBC_PKCS7

  • AES_ECB_PKCS7

  • DES_CBC_PKCS7

  • DES_ECB_PKCS7

  • 3DES_CBC_PKCS7

  • 3DES_ECB_PKCS7

  • RC2_CBC_PKCS7

  • RC2_ECB_PKCS7

  • Authenticated modes (see the EncryptedAndAuthenticatedData class):+ AES_GCM

  • AES_CCM

  • Stream Cipher:+ RC4

-examples

[!code-csharpShowSymmKeyAlgProviderClass]

-see-also

AsymmetricKeyAlgorithmProvider, CryptographicEngine, CryptographicKey