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
- ToolStripComboBox.cs
- TypeDescriptionProviderAttribute.cs
- FileChangesMonitor.cs
- ProgressiveCrcCalculatingStream.cs
- FastPropertyAccessor.cs
- Preprocessor.cs
- DeferredReference.cs
- TextClipboardData.cs
- GenericsNotImplementedException.cs
- ProjectionPruner.cs
- Registry.cs
- ContextMarshalException.cs
- TextRangeEdit.cs
- CodeDOMUtility.cs
- GlyphShapingProperties.cs
- WebPartHeaderCloseVerb.cs
- MethodCallConverter.cs
- Int64.cs
- ImageIndexConverter.cs
- StringToken.cs
- CaseInsensitiveHashCodeProvider.cs
- RuntimeResourceSet.cs
- CultureInfoConverter.cs
- AccessControlList.cs
- SmiContextFactory.cs
- ResourceAttributes.cs
- TypeUtil.cs
- ProfileEventArgs.cs
- ExpressionWriter.cs
- VoiceInfo.cs
- _RequestCacheProtocol.cs
- ImageList.cs
- StylusButtonCollection.cs
- RegexWriter.cs
- PersonalizationState.cs
- Transform3D.cs
- BitmapData.cs
- ConditionalAttribute.cs
- ReachObjectContext.cs
- SslStream.cs
- PreservationFileWriter.cs
- Vector3DConverter.cs
- Geometry.cs
- DesignerSerializerAttribute.cs
- Privilege.cs
- ColorTransform.cs
- BoolExpression.cs
- BoundingRectTracker.cs
- DeviceContext2.cs
- AlignmentXValidation.cs
- CustomBindingCollectionElement.cs
- UserPersonalizationStateInfo.cs
- OleDbConnectionInternal.cs
- SystemIPAddressInformation.cs
- BoundsDrawingContextWalker.cs
- ContextMenuService.cs
- ProtectedUri.cs
- EllipseGeometry.cs
- GenericTypeParameterBuilder.cs
- XmlSchemaSimpleTypeUnion.cs
- FixedSOMPageElement.cs
- BitmapEffectDrawing.cs
- BitmapEffectDrawing.cs
- ServerIdentity.cs
- AccessibleObject.cs
- ProviderMetadataCachedInformation.cs
- Constraint.cs
- DataSourceControlBuilder.cs
- DateTimeConverter.cs
- TextHidden.cs
- SynchronizedDispatch.cs
- ContentFileHelper.cs
- SwitchExpression.cs
- NestedContainer.cs
- FrameworkElementAutomationPeer.cs
- SymLanguageVendor.cs
- SecurityState.cs
- ColorMatrix.cs
- ConfigurationValidatorAttribute.cs
- RenderOptions.cs
- QueryAccessibilityHelpEvent.cs
- WebServiceResponseDesigner.cs
- KnownIds.cs
- QueryStringConverter.cs
- JournalEntryStack.cs
- ParserStreamGeometryContext.cs
- AuthorizationContext.cs
- MethodBuilder.cs
- sitestring.cs
- ContentIterators.cs
- NegationPusher.cs
- WorkflowMarkupSerializerMapping.cs
- ListBox.cs
- TableColumnCollectionInternal.cs
- ShaperBuffers.cs
- ConfigUtil.cs
- TraceLevelStore.cs
- TextOutput.cs
- QilUnary.cs
- ProxyGenerator.cs