SymmetricKeyAlgorithmProvider.OpenAlgorithm(String) 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.
Creates an instance of the SymmetricKeyAlgorithmProvider class and opens the specified algorithm for use.
public:
static SymmetricKeyAlgorithmProvider ^ OpenAlgorithm(Platform::String ^ algorithm);
static SymmetricKeyAlgorithmProvider OpenAlgorithm(winrt::hstring const& algorithm);
public static SymmetricKeyAlgorithmProvider OpenAlgorithm(string algorithm);
function openAlgorithm(algorithm)
Public Shared Function OpenAlgorithm (algorithm As String) As SymmetricKeyAlgorithmProvider
Parameters
- algorithm
-
String
Platform::String
winrt::hstring
Algorithm name.
Returns
Represents a symmetric key algorithm provider.
Remarks
The following algorithm names are supported for use in this method:
No padding: + SymmetricAlgorithmNames.AesCbc
PKCS#7 block padding modes: + SymmetricAlgorithmNames.AesCbcPkcs7
Authenticated modes (see the EncryptedAndAuthenticatedData class): + SymmetricAlgorithmNames.AesCcm
Stream Cipher: + SymmetricAlgorithmNames.Rc4