Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Security / Cryptography / HMACSHA1.cs / 1305376 / 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 FEATURE_CRYPTO if (useManagedSha1) { #endif // FEATURE_CRYPTO m_hash1 = new SHA1Managed(); m_hash2 = new SHA1Managed(); #if FEATURE_CRYPTO } else { m_hash1 = new SHA1CryptoServiceProvider(); m_hash2 = new SHA1CryptoServiceProvider(); } #endif // FEATURE_CRYPTO 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
- ParserExtension.cs
- SHA512Managed.cs
- OdbcTransaction.cs
- NetTcpBinding.cs
- HMAC.cs
- TextFormatterImp.cs
- ValueType.cs
- ScriptServiceAttribute.cs
- DataGridCellsPresenter.cs
- _ProxyRegBlob.cs
- TrackingServices.cs
- XmlSerializationWriter.cs
- XmlPreloadedResolver.cs
- ListView.cs
- XmlILConstructAnalyzer.cs
- XPathChildIterator.cs
- BindingOperations.cs
- EventHandlerList.cs
- RuntimeArgumentHandle.cs
- AttachmentService.cs
- ComplexObject.cs
- SupportsEventValidationAttribute.cs
- XmlCodeExporter.cs
- DataGridViewColumnDesigner.cs
- GlyphCollection.cs
- GenerateTemporaryTargetAssembly.cs
- SchemaMerger.cs
- UriWriter.cs
- WebPartCatalogAddVerb.cs
- PropertyRef.cs
- RowParagraph.cs
- SortQuery.cs
- RemoteHelper.cs
- StreamUpgradeProvider.cs
- TrackingQuery.cs
- HostedTransportConfigurationBase.cs
- ListManagerBindingsCollection.cs
- DrawTreeNodeEventArgs.cs
- RijndaelCryptoServiceProvider.cs
- ParseNumbers.cs
- AQNBuilder.cs
- HostUtils.cs
- LogWriteRestartAreaAsyncResult.cs
- BaseParagraph.cs
- DrawingVisual.cs
- SQLResource.cs
- ActivityInfo.cs
- webclient.cs
- ApplicationManager.cs
- ListDictionary.cs
- RefreshInfo.cs
- ActionFrame.cs
- LabelLiteral.cs
- ParserExtension.cs
- HttpFileCollection.cs
- DirectoryInfo.cs
- ConnectionManagementElement.cs
- VisualBrush.cs
- GenericTypeParameterBuilder.cs
- DirectoryGroupQuery.cs
- DelegatingHeader.cs
- Queue.cs
- AssemblyUtil.cs
- IItemContainerGenerator.cs
- ListView.cs
- MultipartIdentifier.cs
- DbMetaDataColumnNames.cs
- ProcessModule.cs
- BitmapMetadataBlob.cs
- mda.cs
- Aggregates.cs
- FixedSOMGroup.cs
- CodeDirectionExpression.cs
- SqlBooleanMismatchVisitor.cs
- Filter.cs
- LocalServiceSecuritySettings.cs
- DelayLoadType.cs
- WindowsPrincipal.cs
- ReliabilityContractAttribute.cs
- AppendHelper.cs
- PropertyDescriptorCollection.cs
- StrokeNode.cs
- BasicExpressionVisitor.cs
- SelectionGlyph.cs
- XmlChoiceIdentifierAttribute.cs
- SortKey.cs
- HttpApplicationFactory.cs
- XPathAxisIterator.cs
- Cell.cs
- CollectionChangedEventManager.cs
- DataTableMappingCollection.cs
- Executor.cs
- ResourceType.cs
- DecimalStorage.cs
- PolyBezierSegment.cs
- BaseComponentEditor.cs
- PermissionSetTriple.cs
- UserUseLicenseDictionaryLoader.cs
- QilIterator.cs
- SyntaxCheck.cs