Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / whidbey / NetFxQFE / 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
- DataPagerFieldItem.cs
- CellLabel.cs
- EventOpcode.cs
- DeploymentSectionCache.cs
- PartitionedDataSource.cs
- OptimizedTemplateContent.cs
- DbConvert.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- ClearCollection.cs
- XmlSerializer.cs
- DocumentSequenceHighlightLayer.cs
- FlowDocumentScrollViewerAutomationPeer.cs
- MailHeaderInfo.cs
- ObjectParameter.cs
- NativeMethods.cs
- ParameterElement.cs
- SByteStorage.cs
- AppearanceEditorPart.cs
- TransformerTypeCollection.cs
- DefaultObjectMappingItemCollection.cs
- DistinctQueryOperator.cs
- COMException.cs
- CalendarAutoFormatDialog.cs
- LinearKeyFrames.cs
- NotificationContext.cs
- ValidationRuleCollection.cs
- CodeTypeDelegate.cs
- Vector3DConverter.cs
- LogLogRecord.cs
- HyperLinkColumn.cs
- XmlEntity.cs
- ArgumentOutOfRangeException.cs
- HtmlMeta.cs
- PassportAuthentication.cs
- ProgressBarHighlightConverter.cs
- ScrollPattern.cs
- RedBlackList.cs
- LineProperties.cs
- PolicyLevel.cs
- ListViewItemSelectionChangedEvent.cs
- WaitingCursor.cs
- RegexTree.cs
- CellRelation.cs
- SimpleFieldTemplateUserControl.cs
- InvalidOleVariantTypeException.cs
- SystemInfo.cs
- SchemaImporter.cs
- DataGridViewSelectedCellCollection.cs
- LineBreak.cs
- CacheManager.cs
- XmlComplianceUtil.cs
- XmlTextAttribute.cs
- XmlSchemaFacet.cs
- CustomError.cs
- DBCSCodePageEncoding.cs
- FormViewInsertEventArgs.cs
- BinaryMethodMessage.cs
- ViewStateModeByIdAttribute.cs
- Translator.cs
- EventLevel.cs
- XmlDeclaration.cs
- OdbcConnectionHandle.cs
- BitmapEffectDrawing.cs
- CannotUnloadAppDomainException.cs
- QuaternionAnimationBase.cs
- ThemeDictionaryExtension.cs
- GenericTextProperties.cs
- ComponentDispatcher.cs
- NetworkInformationPermission.cs
- _SslStream.cs
- TypeSemantics.cs
- cookiecontainer.cs
- AssociationSet.cs
- httpapplicationstate.cs
- DataGridViewCellEventArgs.cs
- GetPageNumberCompletedEventArgs.cs
- ApplicationInterop.cs
- HistoryEventArgs.cs
- ICollection.cs
- MethodAccessException.cs
- SQLRoleProvider.cs
- AliasGenerator.cs
- Misc.cs
- AspNetHostingPermission.cs
- DataGridView.cs
- Verify.cs
- SystemThemeKey.cs
- StringReader.cs
- ScriptResourceInfo.cs
- CollectionBase.cs
- ViewStateException.cs
- CachedTypeface.cs
- ExpandSegmentCollection.cs
- newinstructionaction.cs
- Vertex.cs
- shaperfactory.cs
- XmlILConstructAnalyzer.cs
- AssociationSetMetadata.cs
- XmlExtensionFunction.cs
- BamlBinaryReader.cs