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
- DataRowComparer.cs
- PatternMatcher.cs
- ExecutorLocksHeldException.cs
- SimpleHandlerBuildProvider.cs
- DynamicPropertyHolder.cs
- TimeZoneNotFoundException.cs
- FunctionDefinition.cs
- ObjectMemberMapping.cs
- ModelUIElement3D.cs
- AllMembershipCondition.cs
- CfgArc.cs
- SerializationHelper.cs
- ElementHostAutomationPeer.cs
- DependencyPropertyConverter.cs
- ToolStripSeparator.cs
- ApplicationServiceHelper.cs
- DataServiceQueryOfT.cs
- ServicesUtilities.cs
- ColorConvertedBitmap.cs
- SqlRecordBuffer.cs
- NamedServiceModelExtensionCollectionElement.cs
- AppSettingsExpressionBuilder.cs
- JumpPath.cs
- DependencyPropertyDescriptor.cs
- ControlCachePolicy.cs
- WindowsToolbarAsMenu.cs
- AssociationType.cs
- MailDefinitionBodyFileNameEditor.cs
- StrongNameKeyPair.cs
- SQLDateTime.cs
- ProcessHostServerConfig.cs
- HtmlSelectionListAdapter.cs
- XPathDocument.cs
- OrderedDictionary.cs
- Vars.cs
- HtmlLabelAdapter.cs
- BuiltInExpr.cs
- OpCellTreeNode.cs
- AttributeXamlType.cs
- HttpCachePolicyWrapper.cs
- BulletChrome.cs
- RtfFormatStack.cs
- FactoryGenerator.cs
- TextDpi.cs
- StoreItemCollection.Loader.cs
- _FixedSizeReader.cs
- RemoteHelper.cs
- DataServiceClientException.cs
- MatrixAnimationUsingPath.cs
- HttpHandlerAction.cs
- Point3DCollection.cs
- EncryptedType.cs
- ContextBase.cs
- ColumnHeaderCollectionEditor.cs
- ItemsControlAutomationPeer.cs
- SaveFileDialog.cs
- WebPartAddingEventArgs.cs
- ExternalFile.cs
- ContentPlaceHolder.cs
- ProfessionalColorTable.cs
- Form.cs
- XmlSignificantWhitespace.cs
- HierarchicalDataSourceControl.cs
- ToolStripRendererSwitcher.cs
- DeviceContext.cs
- AttachmentService.cs
- TagNameToTypeMapper.cs
- UserNameSecurityTokenAuthenticator.cs
- ListComponentEditorPage.cs
- UrlPath.cs
- ObjectReaderCompiler.cs
- FixedPageAutomationPeer.cs
- HttpGetClientProtocol.cs
- PropertyGrid.cs
- Bidi.cs
- MutableAssemblyCacheEntry.cs
- QEncodedStream.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- DataServiceQuery.cs
- MultilineStringEditor.cs
- ReadOnlyHierarchicalDataSource.cs
- DayRenderEvent.cs
- PropertyGeneratedEventArgs.cs
- VirtualDirectoryMapping.cs
- ControlParameter.cs
- JsonFaultDetail.cs
- MatrixTransform.cs
- GeneralTransform2DTo3DTo2D.cs
- DataServiceClientException.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- CodeParameterDeclarationExpression.cs
- BrowserCapabilitiesFactory.cs
- ValueHandle.cs
- AxisAngleRotation3D.cs
- DataBindingCollectionEditor.cs
- CheckoutException.cs
- BitmapEffectInputConnector.cs
- XpsSerializationException.cs
- StartUpEventArgs.cs
- TrackingRecord.cs