Code:
/ DotNET / DotNET / 8.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
- DockingAttribute.cs
- ArgumentOutOfRangeException.cs
- MetaTable.cs
- SqlParameter.cs
- CssClassPropertyAttribute.cs
- BamlTreeMap.cs
- InplaceBitmapMetadataWriter.cs
- CompilerWrapper.cs
- CellTreeNode.cs
- BitmapEffectDrawingContextState.cs
- ApplicationBuildProvider.cs
- SafeNativeMethods.cs
- WindowsGraphics2.cs
- KeyProperty.cs
- ControlCachePolicy.cs
- MulticastIPAddressInformationCollection.cs
- hwndwrapper.cs
- ReferenceEqualityComparer.cs
- TimeoutValidationAttribute.cs
- EarlyBoundInfo.cs
- TextBoxAutomationPeer.cs
- CodeTypeDeclaration.cs
- ResolveCriteriaApril2005.cs
- FontFamily.cs
- BitmapEffectInputData.cs
- ZoneIdentityPermission.cs
- Sequence.cs
- SystemKeyConverter.cs
- AudioStateChangedEventArgs.cs
- ExceptionUtil.cs
- SlipBehavior.cs
- TdsValueSetter.cs
- Timer.cs
- VisualTreeFlattener.cs
- XmlSignatureProperties.cs
- FontDriver.cs
- CacheMode.cs
- WorkerRequest.cs
- ComAdminInterfaces.cs
- RowUpdatingEventArgs.cs
- VisualStates.cs
- LineProperties.cs
- HttpCacheVary.cs
- CharEnumerator.cs
- DesignerHierarchicalDataSourceView.cs
- EventLogPermissionAttribute.cs
- NavigationEventArgs.cs
- AnimationClock.cs
- AlignmentXValidation.cs
- RectangleHotSpot.cs
- WebPartEditVerb.cs
- SpeechSynthesizer.cs
- SerialPort.cs
- DataStorage.cs
- Label.cs
- Selector.cs
- UidManager.cs
- CodeSnippetCompileUnit.cs
- DataGridParentRows.cs
- LayoutEngine.cs
- SafeEventLogReadHandle.cs
- QilLiteral.cs
- GeneralTransform3DGroup.cs
- EntityViewContainer.cs
- ContentTypeSettingClientMessageFormatter.cs
- ParallelTimeline.cs
- CapabilitiesAssignment.cs
- PropertyGridDesigner.cs
- __ComObject.cs
- Subset.cs
- BinaryReader.cs
- SqlBulkCopyColumnMapping.cs
- MessagePropertyFilter.cs
- XmlSchemaChoice.cs
- FileDialogCustomPlaces.cs
- SvcMapFile.cs
- XmlDeclaration.cs
- SoapAttributeOverrides.cs
- ShapeTypeface.cs
- InvokeWebService.cs
- LocalizabilityAttribute.cs
- DefaultPropertyAttribute.cs
- future.cs
- AlphabetConverter.cs
- WebPartConnectionsEventArgs.cs
- ObjectDataSourceMethodEventArgs.cs
- ItemAutomationPeer.cs
- ChannelTracker.cs
- HitTestWithGeometryDrawingContextWalker.cs
- PropertiesTab.cs
- DataGridViewColumnConverter.cs
- ResourceAssociationSet.cs
- UnsafeNativeMethodsMilCoreApi.cs
- webeventbuffer.cs
- OutputCacheModule.cs
- TypeSystem.cs
- safelinkcollection.cs
- ColumnHeader.cs
- WorkBatch.cs
- GZipDecoder.cs