Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / clr / src / BCL / System / Security / Cryptography / HMACSHA1.cs / 1 / HMACSHA1.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== // // HMACSHA1.cs // namespace System.Security.Cryptography { [System.Runtime.InteropServices.ComVisible(true)] public class HMACSHA1 : HMAC { // // public constructors // public HMACSHA1 () : this (Utils.GenerateRandom(64)) {} public HMACSHA1 (byte[] key) : this (key, false) {} public HMACSHA1 (byte[] key, bool useManagedSha1) { m_hashName = "SHA1"; if (useManagedSha1) { m_hash1 = new SHA1Managed(); m_hash2 = new SHA1Managed(); } else { m_hash1 = new SHA1CryptoServiceProvider(); m_hash2 = new SHA1CryptoServiceProvider(); } HashSizeValue = 160; base.InitializeKey(key); } } }
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- AddInStore.cs
- TypeSource.cs
- UniqueTransportManagerRegistration.cs
- XmlnsDictionary.cs
- FigureParaClient.cs
- ResourceCategoryAttribute.cs
- ProxyBuilder.cs
- AssemblyBuilderData.cs
- WrappedIUnknown.cs
- DbProviderServices.cs
- LogEntrySerializationException.cs
- COMException.cs
- XmlNodeReader.cs
- WebHttpEndpointElement.cs
- XXXInfos.cs
- ControlValuePropertyAttribute.cs
- TextBoxBase.cs
- BamlLocalizableResource.cs
- TypefaceCollection.cs
- RoutedEventValueSerializer.cs
- DoubleUtil.cs
- PointUtil.cs
- ClassHandlersStore.cs
- CatalogZone.cs
- SecurityContextKeyIdentifierClause.cs
- ValueTypeIndexerReference.cs
- InstanceDescriptor.cs
- SqlUnionizer.cs
- XmlSiteMapProvider.cs
- ForceCopyBuildProvider.cs
- EventSchemaTraceListener.cs
- AnonymousIdentificationModule.cs
- XmlDeclaration.cs
- ActivityExecutorDelegateInfo.cs
- XPathNavigatorKeyComparer.cs
- AnnotationHelper.cs
- GPRECT.cs
- ComplexTypeEmitter.cs
- DateTimeFormatInfoScanner.cs
- Codec.cs
- ChangeBlockUndoRecord.cs
- GenericEnumerator.cs
- PropertyIdentifier.cs
- ToolStripDropDownItemDesigner.cs
- Debug.cs
- WebScriptEnablingBehavior.cs
- Pair.cs
- FixedPageStructure.cs
- TagPrefixCollection.cs
- PropertyDescriptorCollection.cs
- CngProperty.cs
- ImageList.cs
- TextFindEngine.cs
- WmlPageAdapter.cs
- Point4D.cs
- EntityContainerEmitter.cs
- HttpPostedFile.cs
- NamedPipeTransportSecurityElement.cs
- FormatSettings.cs
- FormViewPageEventArgs.cs
- MarshalByRefObject.cs
- ModelVisual3D.cs
- DynamicMethod.cs
- ExternalCalls.cs
- CornerRadiusConverter.cs
- GlyphCollection.cs
- DoubleLinkList.cs
- FixedSOMElement.cs
- NameSpaceExtractor.cs
- ScrollChrome.cs
- Separator.cs
- FieldToken.cs
- NameScope.cs
- MetadataException.cs
- FragmentQuery.cs
- PageAsyncTaskManager.cs
- PersonalizationEntry.cs
- HttpValueCollection.cs
- ImmComposition.cs
- WebPartDisplayModeCollection.cs
- PresentationTraceSources.cs
- EdmRelationshipRoleAttribute.cs
- InkCollectionBehavior.cs
- PageParserFilter.cs
- StoreItemCollection.cs
- ObjectListFieldsPage.cs
- RemotingSurrogateSelector.cs
- HasActivatableWorkflowEvent.cs
- SuppressIldasmAttribute.cs
- SoapTransportImporter.cs
- DictionaryEntry.cs
- XamlParser.cs
- NativeMethods.cs
- ServicesExceptionNotHandledEventArgs.cs
- InfiniteTimeSpanConverter.cs
- SHA384.cs
- PathFigureCollection.cs
- OleDbConnection.cs
- ListViewItemMouseHoverEvent.cs
- CharKeyFrameCollection.cs