-//\r
-// SymmetricEncryptionKey.cs: Handles WS-Security SymmetricEncryptionKey\r
-//\r
-// Author:\r
-// Sebastien Pouliot (spouliot@motus.com)\r
-//\r
-// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)\r
-//\r
-// Licensed under MIT X11 (see LICENSE) with this specific addition:\r
-//\r
-// \93This source code may incorporate intellectual property owned by Microsoft \r
-// Corporation. Our provision of this source code does not include any licenses\r
-// or any other rights to you under any Microsoft intellectual property. If you\r
-// would like a license from Microsoft (e.g. rebrand, redistribute), you need \r
-// to contact Microsoft directly.\94 \r
-//\r
-\r
-using System;\r
-using System.Security.Cryptography;\r
-using System.Web.Services.Protocols;\r
-\r
-namespace Microsoft.Web.Services.Security {\r
-\r
- public class SymmetricEncryptionKey : EncryptionKey {\r
-\r
- private SymmetricAlgorithm algo;\r
- private byte[] key;\r
-\r
- public SymmetricEncryptionKey() \r
- {\r
- // uses TripleDESCryptoServiceProvider - not default (Rjindael)\r
- algo = SymmetricAlgorithm.Create ("TripleDES");\r
- }\r
-\r
- public SymmetricEncryptionKey (SymmetricAlgorithm key) \r
- {\r
- if (key == null)\r
- throw new NullReferenceException ("algo");\r
- algo = key;\r
- }\r
-\r
- public SymmetricEncryptionKey (SymmetricAlgorithm key, byte[] keyValue) \r
- {\r
- algo = key;\r
- this.key = keyValue;\r
- }\r
- }\r
-}\r
+//
+// SymmetricEncryptionKey.cs: Handles WS-Security SymmetricEncryptionKey
+//
+// Author:
+// Sebastien Pouliot (spouliot@motus.com)
+//
+// (C) 2002, 2003 Motus Technologies Inc. (http://www.motus.com)
+//
+
+using System;
+using System.Security.Cryptography;
+using System.Web.Services.Protocols;
+
+namespace Microsoft.Web.Services.Security {
+
+ public class SymmetricEncryptionKey : EncryptionKey {
+
+ private SymmetricAlgorithm algo;
+
+ public SymmetricEncryptionKey ()
+ {
+ // uses TripleDESCryptoServiceProvider - not default (Rjindael)
+ algo = SymmetricAlgorithm.Create ("TripleDES");
+ }
+
+ public SymmetricEncryptionKey (SymmetricAlgorithm key)
+ {
+ if (key == null)
+ throw new NullReferenceException ("algo");
+ algo = key;
+ }
+
+ public SymmetricEncryptionKey (SymmetricAlgorithm key, byte[] keyValue)
+ {
+ algo = key;
+ algo.Key = keyValue;
+ }
+
+ internal SymmetricAlgorithm Algorithm {
+ get { return algo; }
+ }
+ }
+}