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
- GatewayIPAddressInformationCollection.cs
- DSGeneratorProblem.cs
- EnterpriseServicesHelper.cs
- BlobPersonalizationState.cs
- HttpWriter.cs
- UrlPath.cs
- GridViewRowEventArgs.cs
- OperationCanceledException.cs
- ProvidersHelper.cs
- EntityWrapper.cs
- EditorPartChrome.cs
- DropDownList.cs
- PersonalizablePropertyEntry.cs
- MD5CryptoServiceProvider.cs
- GACMembershipCondition.cs
- HideDisabledControlAdapter.cs
- MemoryFailPoint.cs
- _HeaderInfo.cs
- EntityObject.cs
- PinnedBufferMemoryStream.cs
- TypeReference.cs
- SerializableTypeCodeDomSerializer.cs
- ObjectContext.cs
- SafeFileHandle.cs
- SinglePageViewer.cs
- EncodingNLS.cs
- TcpSocketManager.cs
- DataGridViewColumn.cs
- _SslState.cs
- WindowsToolbar.cs
- MarshalByRefObject.cs
- Filter.cs
- XmlSerializer.cs
- ActivityExecutor.cs
- FlowDocumentScrollViewer.cs
- DataSourceCacheDurationConverter.cs
- ObjectDataSourceDisposingEventArgs.cs
- ZipIOFileItemStream.cs
- PassportAuthenticationEventArgs.cs
- XmlILAnnotation.cs
- DrawTreeNodeEventArgs.cs
- RemotingAttributes.cs
- PeekCompletedEventArgs.cs
- DataColumnMapping.cs
- ReaderWriterLockWrapper.cs
- NumericPagerField.cs
- TextShapeableCharacters.cs
- XmlEncoding.cs
- ConnectionManagementElementCollection.cs
- FormView.cs
- Unit.cs
- DocumentApplicationJournalEntryEventArgs.cs
- PartialTrustVisibleAssembliesSection.cs
- InternalEnumValidatorAttribute.cs
- ApplicationFileCodeDomTreeGenerator.cs
- HttpCacheVary.cs
- SqlBulkCopyColumnMappingCollection.cs
- LeafCellTreeNode.cs
- HostProtectionException.cs
- DataColumnChangeEvent.cs
- FixedSchema.cs
- XmlSchemaCollection.cs
- AssociationTypeEmitter.cs
- Int64AnimationBase.cs
- UserNameSecurityTokenAuthenticator.cs
- PeerDuplexChannelListener.cs
- HostingEnvironmentWrapper.cs
- GeneratedView.cs
- WebPartExportVerb.cs
- EventTrigger.cs
- CatalogPartCollection.cs
- ContractSearchPattern.cs
- ControlParser.cs
- FixedHighlight.cs
- ICspAsymmetricAlgorithm.cs
- WebServiceEnumData.cs
- SrgsElementFactory.cs
- Events.cs
- InternalPermissions.cs
- DispatcherHookEventArgs.cs
- VirtualizedItemProviderWrapper.cs
- WriteLine.cs
- ProxyAttribute.cs
- XamlRtfConverter.cs
- AssociationTypeEmitter.cs
- TriggerActionCollection.cs
- OleCmdHelper.cs
- SoapAttributes.cs
- AncestorChangedEventArgs.cs
- FormsIdentity.cs
- SeparatorAutomationPeer.cs
- GeneralTransform2DTo3D.cs
- AuthorizationRuleCollection.cs
- TypedReference.cs
- GridItem.cs
- PrinterSettings.cs
- DtdParser.cs
- PkcsMisc.cs
- UrlAuthFailedErrorFormatter.cs
- ParagraphVisual.cs