Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Security / Cryptography / HMACMD5.cs / 1305376 / HMACMD5.cs
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
// [....]
//
//
// HMACMD5.cs
//
namespace System.Security.Cryptography {
[System.Runtime.InteropServices.ComVisible(true)]
public class HMACMD5 : HMAC {
//
// public constructors
//
public HMACMD5 () : this (Utils.GenerateRandom(64)) {}
public HMACMD5 (byte[] key) {
m_hashName = "MD5";
m_hash1 = new MD5CryptoServiceProvider();
m_hash2 = new MD5CryptoServiceProvider();
HashSizeValue = 128;
base.InitializeKey(key);
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// ==++==
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// ==--==
// [....]
//
//
// HMACMD5.cs
//
namespace System.Security.Cryptography {
[System.Runtime.InteropServices.ComVisible(true)]
public class HMACMD5 : HMAC {
//
// public constructors
//
public HMACMD5 () : this (Utils.GenerateRandom(64)) {}
public HMACMD5 (byte[] key) {
m_hashName = "MD5";
m_hash1 = new MD5CryptoServiceProvider();
m_hash2 = new MD5CryptoServiceProvider();
HashSizeValue = 128;
base.InitializeKey(key);
}
}
}
// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- StateMachine.cs
- SoapReflector.cs
- SecurityResources.cs
- ExtensionSimplifierMarkupObject.cs
- Matrix.cs
- ErrorCodes.cs
- SqlConnectionPoolProviderInfo.cs
- ICspAsymmetricAlgorithm.cs
- TextEditorSelection.cs
- ReceiveMessageAndVerifySecurityAsyncResultBase.cs
- LayoutDump.cs
- MimeMapping.cs
- WebPartConnectionsCancelEventArgs.cs
- DateTimeStorage.cs
- WindowsGraphics2.cs
- CodeSnippetCompileUnit.cs
- Int16Converter.cs
- ModuleBuilder.cs
- AQNBuilder.cs
- DesignTimeParseData.cs
- ContextConfiguration.cs
- RawKeyboardInputReport.cs
- CursorConverter.cs
- DotExpr.cs
- DataGridViewCellParsingEventArgs.cs
- IPAddressCollection.cs
- SmiEventStream.cs
- PageBreakRecord.cs
- BufferedGraphicsContext.cs
- DocumentGrid.cs
- ObjectListCommandsPage.cs
- Registry.cs
- SerialPort.cs
- Thread.cs
- WsrmFault.cs
- AvTrace.cs
- TypeHelpers.cs
- DefinitionBase.cs
- SqlDataSourceStatusEventArgs.cs
- NestPullup.cs
- MemberExpression.cs
- CopyNamespacesAction.cs
- StrokeRenderer.cs
- HtmlTableRow.cs
- PersonalizationEntry.cs
- KoreanCalendar.cs
- DisableDpiAwarenessAttribute.cs
- CodeDOMUtility.cs
- WindowsIdentity.cs
- SubclassTypeValidator.cs
- BulletChrome.cs
- WindowsFormsLinkLabel.cs
- CompModHelpers.cs
- Composition.cs
- CommonDialog.cs
- StorageConditionPropertyMapping.cs
- HttpInputStream.cs
- SynchronizationLockException.cs
- ResourceReferenceKeyNotFoundException.cs
- DrawingServices.cs
- RegexStringValidator.cs
- XmlObjectSerializerReadContextComplexJson.cs
- DataComponentMethodGenerator.cs
- Axis.cs
- WebReferencesBuildProvider.cs
- DesignerCalendarAdapter.cs
- NetPeerTcpBindingCollectionElement.cs
- TagMapCollection.cs
- EventItfInfo.cs
- RSAPKCS1SignatureFormatter.cs
- SHA384Managed.cs
- XmlDocumentSerializer.cs
- XmlDictionaryReader.cs
- PingReply.cs
- AutomationProperty.cs
- WebMessageEncodingElement.cs
- Descriptor.cs
- NotifyIcon.cs
- EditingScope.cs
- TableRowGroup.cs
- ItemDragEvent.cs
- DataGridViewLayoutData.cs
- dsa.cs
- ProgressBar.cs
- Form.cs
- GeneralTransformCollection.cs
- TraceContextEventArgs.cs
- RootAction.cs
- Figure.cs
- WindowsSlider.cs
- AsymmetricKeyExchangeFormatter.cs
- Line.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- RuntimeHandles.cs
- TransactionState.cs
- ModelMemberCollection.cs
- VectorCollectionConverter.cs
- MsmqSecureHashAlgorithm.cs
- ListDependantCardsRequest.cs
- TextRangeEditLists.cs