projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
2010-03-24 Jérémie Laval <jeremie.laval@gmail.com>
[mono.git]
/
mcs
/
class
/
corlib
/
System.Security.Cryptography
/
MACTripleDES.cs
diff --git
a/mcs/class/corlib/System.Security.Cryptography/MACTripleDES.cs
b/mcs/class/corlib/System.Security.Cryptography/MACTripleDES.cs
index 73eb0e58fbaa3df3a5026494a34867033fdef5aa..89089707fdf385ee3e807cde56ef0c4ff9e574b3 100644
(file)
--- a/
mcs/class/corlib/System.Security.Cryptography/MACTripleDES.cs
+++ b/
mcs/class/corlib/System.Security.Cryptography/MACTripleDES.cs
@@
-27,6
+27,8
@@
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
//
+#if !MOONLIGHT
+
using System.Runtime.InteropServices;
using Mono.Security.Cryptography;
using System.Runtime.InteropServices;
using Mono.Security.Cryptography;
@@
-39,9
+41,7
@@
namespace System.Security.Cryptography {
// http://www.itl.nist.gov/fipspubs/fip81.htm
// LAMESPEC: MACTripleDES == MAC-CBC using TripleDES (not MAC-CFB).
// http://www.itl.nist.gov/fipspubs/fip81.htm
// LAMESPEC: MACTripleDES == MAC-CBC using TripleDES (not MAC-CFB).
-#if NET_2_0
[ComVisible (true)]
[ComVisible (true)]
-#endif
public class MACTripleDES: KeyedHashAlgorithm {
private TripleDES tdes;
public class MACTripleDES: KeyedHashAlgorithm {
private TripleDES tdes;
@@
-94,13
+94,11
@@
namespace System.Security.Cryptography {
Dispose (false);
}
Dispose (false);
}
-#if NET_2_0
[ComVisible (false)]
public PaddingMode Padding {
get { return tdes.Padding; }
set { tdes.Padding = value; }
}
[ComVisible (false)]
public PaddingMode Padding {
get { return tdes.Padding; }
set { tdes.Padding = value; }
}
-#endif
protected override void Dispose (bool disposing)
{
protected override void Dispose (bool disposing)
{
@@
-133,7
+131,7
@@
namespace System.Security.Cryptography {
mac.Initialize (KeyValue);
}
mac.Initialize (KeyValue);
}
- protected override void HashCore (byte[] rgb
, int ib, int cb
)
+ protected override void HashCore (byte[] rgb
Data, int ibStart, int cbSize
)
{
if (m_disposed)
throw new ObjectDisposedException ("MACTripleDES");
{
if (m_disposed)
throw new ObjectDisposedException ("MACTripleDES");
@@
-141,7
+139,7
@@
namespace System.Security.Cryptography {
Initialize ();
State = 1;
}
Initialize ();
State = 1;
}
- mac.Core (rgb
, ib, cb
);
+ mac.Core (rgb
Data, ibStart, cbSize
);
}
protected override byte[] HashFinal ()
}
protected override byte[] HashFinal ()
@@
-153,3
+151,6
@@
namespace System.Security.Cryptography {
}
}
}
}
}
}
+
+#endif
+