Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / 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); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // 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); } } } // 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
- basevalidator.cs
- StickyNote.cs
- HttpStreamXmlDictionaryReader.cs
- DeviceOverridableAttribute.cs
- OrderPreservingSpoolingTask.cs
- NodeLabelEditEvent.cs
- TemplatedAdorner.cs
- FixedSOMElement.cs
- KeyValueInternalCollection.cs
- MultipleViewProviderWrapper.cs
- XmlSchemaElement.cs
- PagerSettings.cs
- Membership.cs
- GlyphCache.cs
- CodeMemberField.cs
- AppDomainShutdownMonitor.cs
- WorkflowItemsPresenter.cs
- LOSFormatter.cs
- ListManagerBindingsCollection.cs
- HttpModuleAction.cs
- ProcessHostServerConfig.cs
- TrustLevelCollection.cs
- RepeatBehaviorConverter.cs
- HttpModuleAction.cs
- SessionPageStateSection.cs
- WMIGenerator.cs
- DataGridItemCollection.cs
- VerificationException.cs
- DelayDesigner.cs
- ProxyWebPart.cs
- CodePageEncoding.cs
- MethodExpr.cs
- MimeTypeMapper.cs
- DataColumnCollection.cs
- InputScope.cs
- MachineKeyConverter.cs
- FileUtil.cs
- TextMessageEncodingBindingElement.cs
- RecordBuilder.cs
- XmlSerializerVersionAttribute.cs
- Table.cs
- DSASignatureFormatter.cs
- OracleString.cs
- AdornedElementPlaceholder.cs
- EventMap.cs
- CompoundFileStreamReference.cs
- ExpressionBuilder.cs
- CaseCqlBlock.cs
- WsatServiceAddress.cs
- SizeAnimationClockResource.cs
- SqlReorderer.cs
- TdsParserStateObject.cs
- SiteIdentityPermission.cs
- LiteralControl.cs
- TextAction.cs
- UInt16Storage.cs
- TransportBindingElementImporter.cs
- WeakReferenceEnumerator.cs
- _NtlmClient.cs
- TraceListener.cs
- ResourcePart.cs
- OdbcFactory.cs
- ExpressionBuilder.cs
- UnionQueryOperator.cs
- InstanceOwner.cs
- SchemaMapping.cs
- MD5CryptoServiceProvider.cs
- PointCollection.cs
- UnsafeNativeMethods.cs
- oledbmetadatacollectionnames.cs
- NavigationService.cs
- ServiceContractGenerationContext.cs
- TypeElement.cs
- LayoutDump.cs
- CombinedGeometry.cs
- XmlObjectSerializerReadContextComplexJson.cs
- Comparer.cs
- HttpModulesSection.cs
- TextChangedEventArgs.cs
- ColorIndependentAnimationStorage.cs
- CapabilitiesRule.cs
- dataobject.cs
- DocumentViewerConstants.cs
- DataPagerCommandEventArgs.cs
- PaperSize.cs
- DoubleCollectionConverter.cs
- EventDescriptor.cs
- OleDbDataAdapter.cs
- ProviderIncompatibleException.cs
- SessionEndedEventArgs.cs
- NotImplementedException.cs
- SqlFileStream.cs
- BindingCompleteEventArgs.cs
- DrawingGroupDrawingContext.cs
- AudioFileOut.cs
- CodeTypeParameterCollection.cs
- ClientScriptManager.cs
- JoinTreeNode.cs
- TriState.cs
- ReadOnlyTernaryTree.cs