Share via


AESKeyExchangeFormatter.DecryptKey Method

Decrypts the specified cipher text using the key wrapping algorithm defined in the XML Encryption specification.

Namespace: Microsoft.Web.Services2.Security.Cryptography
Assembly: Microsoft.Web.Services2 (in microsoft.web.services2.dll)

Usage

'Usage
Dim cipherText() As Byte
Dim returnValue() As Byte
Dim aESKeyExchangeFormatter1 As AESKeyExchangeFormatter
returnValue = aESKeyExchangeFormatter1.DecryptKey(cipherText)

Syntax

'Declaration
Public Overrides Function DecryptKey( _
    ByVal cipherText() As Byte _
) As Byte()
public override byte[] DecryptKey(
    byte[] cipherText
);
public: virtual array<Byte>^ DecryptKey(
    array<Byte>^ cipherText
);
public ubyte[] DecryptKey(
    ubyte[] cipherText
);
public override function DecryptKey(
     cipherText : Byte[]
) : Byte[];

Parameters

  • cipherText
    An array of System.Byte that is the data to be decrypted.

Return Value

An array of type System.Byte that is the decrypted data.

Remarks

Depending on size, the identifier for the wrapping algorithm used is: http://www.w3.org/2001/04/xmlenc\#kw-aes128, http://www.w3.org/2001/04/xmlenc\#kw-aes192, or http://www.w3.org/2001/04/xmlenc\#kw-aes256 .

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, and Windows 2000

Target Platforms

Windows 2000, Windows 2000 Server, Windows 2000 Advanced Server, Windows XP Home Edition, Windows XP Professional, Windows Server 2003, Windows Longhorn, Pocket PC, Windows CE, Smart Phone

See Also

Reference

AESKeyExchangeFormatter Class
Microsoft.Web.Services2.Security.Cryptography Namespace

Other Resources

AESKeyExchangeFormatter Members