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
- ButtonFlatAdapter.cs
- WebServiceHandler.cs
- XmlNamespaceManager.cs
- PreservationFileWriter.cs
- ColumnReorderedEventArgs.cs
- AutomationFocusChangedEventArgs.cs
- BufferCache.cs
- Missing.cs
- LocalValueEnumerator.cs
- brushes.cs
- SqlTopReducer.cs
- BinaryVersion.cs
- ApplicationSecurityManager.cs
- AuthenticationModulesSection.cs
- HMACRIPEMD160.cs
- SqlHelper.cs
- CompositeCollectionView.cs
- AspNetSynchronizationContext.cs
- EntityObject.cs
- ArrayConverter.cs
- EmptyTextWriter.cs
- NopReturnReader.cs
- XmlDocumentViewSchema.cs
- EntityType.cs
- NativeMethods.cs
- WindowsFormsDesignerOptionService.cs
- DateTimeParse.cs
- RegisteredArrayDeclaration.cs
- FontStyle.cs
- BookmarkEventArgs.cs
- JpegBitmapDecoder.cs
- FullTextLine.cs
- PropertyFilterAttribute.cs
- SqlParameterCollection.cs
- x509store.cs
- SqlRowUpdatingEvent.cs
- Menu.cs
- SessionStateUtil.cs
- PartitionedStreamMerger.cs
- ListBoxAutomationPeer.cs
- diagnosticsswitches.cs
- OutputCacheProfileCollection.cs
- BitSet.cs
- XmlDownloadManager.cs
- WebResourceAttribute.cs
- InteropBitmapSource.cs
- ListBoxChrome.cs
- DataMemberListEditor.cs
- RelatedEnd.cs
- EditorPartCollection.cs
- ByteStreamGeometryContext.cs
- ListControl.cs
- XmlnsCompatibleWithAttribute.cs
- Multiply.cs
- HttpServerVarsCollection.cs
- QueryStringParameter.cs
- DesignTimeParseData.cs
- XPathNodeIterator.cs
- EffectiveValueEntry.cs
- TextParagraphProperties.cs
- GAC.cs
- RowToFieldTransformer.cs
- PackageRelationship.cs
- _AcceptOverlappedAsyncResult.cs
- RepeatInfo.cs
- EmptyReadOnlyDictionaryInternal.cs
- MultiPageTextView.cs
- GridViewColumnCollection.cs
- ConnectionStringsExpressionBuilder.cs
- XmlExtensionFunction.cs
- RuntimeTrackingProfile.cs
- FixedSOMElement.cs
- PointLightBase.cs
- _AutoWebProxyScriptHelper.cs
- _ConnectionGroup.cs
- SQLInt64.cs
- LockCookie.cs
- CompositeFontFamily.cs
- CheckoutException.cs
- CodeCastExpression.cs
- DbConnectionPool.cs
- Range.cs
- RuleSettingsCollection.cs
- XPathNodePointer.cs
- ColumnTypeConverter.cs
- CompilationSection.cs
- TabControlEvent.cs
- XmlExtensionFunction.cs
- RegularExpressionValidator.cs
- HttpCachePolicyBase.cs
- ObjectTokenCategory.cs
- CodeTypeDeclaration.cs
- ObjectHelper.cs
- NameValuePermission.cs
- PermissionToken.cs
- MouseGestureValueSerializer.cs
- XmlDeclaration.cs
- InputQueueChannelAcceptor.cs
- NCryptNative.cs
- MenuItemAutomationPeer.cs