2 // SymmetricEncryptionKey.cs: Handles WS-Security SymmetricEncryptionKey
5 // Sebastien Pouliot (spouliot@motus.com)
7 // (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
11 using System.Security.Cryptography;
12 using System.Web.Services.Protocols;
14 namespace Microsoft.Web.Services.Security {
16 public class SymmetricEncryptionKey : EncryptionKey {
18 private SymmetricAlgorithm algo;
20 public SymmetricEncryptionKey ()
22 // uses TripleDESCryptoServiceProvider - not default (Rjindael)
23 algo = SymmetricAlgorithm.Create ("TripleDES");
26 public SymmetricEncryptionKey (SymmetricAlgorithm key)
29 throw new NullReferenceException ("algo");
33 public SymmetricEncryptionKey (SymmetricAlgorithm key, byte[] keyValue)
39 internal SymmetricAlgorithm Algorithm {