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
- X509DefaultServiceCertificateElement.cs
- UInt32Storage.cs
- WmlValidationSummaryAdapter.cs
- WebPartPersonalization.cs
- RecordsAffectedEventArgs.cs
- StylusButtonCollection.cs
- FrameworkElementAutomationPeer.cs
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- AudioFormatConverter.cs
- CheckedPointers.cs
- DomainUpDown.cs
- ItemChangedEventArgs.cs
- WebPartConnectionsConfigureVerb.cs
- BmpBitmapDecoder.cs
- ClientRoleProvider.cs
- PreProcessor.cs
- ContractUtils.cs
- MenuDesigner.cs
- XmlnsPrefixAttribute.cs
- SqlDataSourceFilteringEventArgs.cs
- OpCodes.cs
- TreeViewCancelEvent.cs
- OrderedDictionary.cs
- DataControlFieldCell.cs
- ZeroOpNode.cs
- SafeNativeMethods.cs
- Transform.cs
- CheckBox.cs
- Baml2006ReaderContext.cs
- LayoutInformation.cs
- ObjectListItemCollection.cs
- IdentityManager.cs
- ToolStripManager.cs
- UnsafeNativeMethods.cs
- Sentence.cs
- SmtpCommands.cs
- TemplateColumn.cs
- DetailsViewRowCollection.cs
- Label.cs
- FixedPage.cs
- XamlSerializationHelper.cs
- AssemblySettingAttributes.cs
- TdsParameterSetter.cs
- Html32TextWriter.cs
- OdbcInfoMessageEvent.cs
- RectangleGeometry.cs
- ToolBarTray.cs
- AssociationSetEnd.cs
- Inflater.cs
- TextTreeInsertElementUndoUnit.cs
- OAVariantLib.cs
- XmlChoiceIdentifierAttribute.cs
- RequestContext.cs
- IsolatedStorageFileStream.cs
- TypeUsage.cs
- DataGridViewAddColumnDialog.cs
- ViewBox.cs
- ToolboxItemAttribute.cs
- CroppedBitmap.cs
- PersistStreamTypeWrapper.cs
- ButtonField.cs
- VirtualDirectoryMapping.cs
- SubstitutionDesigner.cs
- MSAAEventDispatcher.cs
- TimeSpanFormat.cs
- RunClient.cs
- DPAPIProtectedConfigurationProvider.cs
- NativeMethods.cs
- OleDbException.cs
- SafeFindHandle.cs
- XmlSerializerFactory.cs
- ControlBuilderAttribute.cs
- LinearQuaternionKeyFrame.cs
- ClaimTypes.cs
- TextChangedEventArgs.cs
- UnknownBitmapDecoder.cs
- BatchParser.cs
- ArrayConverter.cs
- Polyline.cs
- Aggregates.cs
- ICspAsymmetricAlgorithm.cs
- RequestTimeoutManager.cs
- DataGridDetailsPresenter.cs
- ParameterReplacerVisitor.cs
- SchemaElementDecl.cs
- UriParserTemplates.cs
- EncryptedPackageFilter.cs
- ElementProxy.cs
- ScriptReferenceBase.cs
- TimeoutException.cs
- Descriptor.cs
- AddInStore.cs
- EastAsianLunisolarCalendar.cs
- RequestQueue.cs
- InsufficientMemoryException.cs
- ThousandthOfEmRealPoints.cs
- HtmlTableRow.cs
- EntityDataSourceDesigner.cs
- MemberHolder.cs
- KerberosRequestorSecurityToken.cs