Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / whidbey / NetFXspW7 / 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
- DBCommand.cs
- MSHTMLHostUtil.cs
- ConfigXmlAttribute.cs
- ScrollChrome.cs
- FontFaceLayoutInfo.cs
- NestPullup.cs
- Symbol.cs
- PaperSize.cs
- JsonServiceDocumentSerializer.cs
- Message.cs
- ComponentEditorPage.cs
- SqlAliasesReferenced.cs
- ColumnMapTranslator.cs
- EditorPart.cs
- PointAnimationUsingKeyFrames.cs
- ActivityInterfaces.cs
- TaskFileService.cs
- ILGen.cs
- PeerPresenceInfo.cs
- CompilerErrorCollection.cs
- HtmlControlPersistable.cs
- IgnorePropertiesAttribute.cs
- StorageScalarPropertyMapping.cs
- OrderByQueryOptionExpression.cs
- PtsCache.cs
- ContextStack.cs
- XmlQualifiedNameTest.cs
- SqlInternalConnectionSmi.cs
- StandardMenuStripVerb.cs
- DesignerForm.cs
- WeakReferenceList.cs
- DbExpressionVisitor.cs
- RepeatButton.cs
- SessionEndingCancelEventArgs.cs
- ZipIOFileItemStream.cs
- RSATokenProvider.cs
- ResourceManager.cs
- MimeBasePart.cs
- MappingModelBuildProvider.cs
- LocalizationParserHooks.cs
- EventHandlerList.cs
- DataObjectMethodAttribute.cs
- Main.cs
- UnionCodeGroup.cs
- ForeignKeyFactory.cs
- TransformationRules.cs
- StylusPointProperty.cs
- SystemIcons.cs
- Int32Rect.cs
- TextBoxDesigner.cs
- BuildProvider.cs
- DataStreams.cs
- Grid.cs
- MessageAction.cs
- ListView.cs
- SqlUnionizer.cs
- BitmapEffectGroup.cs
- LiteralDesigner.cs
- EntityDataSourceUtil.cs
- ControlOperationInvoker.cs
- ApplicationGesture.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- XmlSchemaSimpleContentExtension.cs
- HtmlTable.cs
- Inflater.cs
- objectresult_tresulttype.cs
- TemplateInstanceAttribute.cs
- HttpStreamXmlDictionaryReader.cs
- GifBitmapDecoder.cs
- SynchronizedInputAdaptor.cs
- PassportPrincipal.cs
- SqlGatherConsumedAliases.cs
- BamlBinaryWriter.cs
- HttpPostServerProtocol.cs
- ApplicationManager.cs
- BorderGapMaskConverter.cs
- WindowsAltTab.cs
- FormViewUpdatedEventArgs.cs
- DataGridViewComboBoxColumnDesigner.cs
- LookupTables.cs
- SQLByteStorage.cs
- TextViewSelectionProcessor.cs
- XmlAutoDetectWriter.cs
- UpdateTranslator.cs
- MultiBinding.cs
- ClientWindowsAuthenticationMembershipProvider.cs
- PasswordRecoveryAutoFormat.cs
- UrlPath.cs
- CriticalFinalizerObject.cs
- SafeFileMappingHandle.cs
- BitmapEffectInputConnector.cs
- CatalogZoneBase.cs
- HtmlContainerControl.cs
- Decorator.cs
- RadioButton.cs
- ChangeTracker.cs
- StorageComplexPropertyMapping.cs
- WinEventTracker.cs
- ScriptControl.cs
- CaseKeyBox.ViewModel.cs