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
- HistoryEventArgs.cs
- EventLogPermission.cs
- PeerEndPoint.cs
- LicenseProviderAttribute.cs
- DispatcherHooks.cs
- UDPClient.cs
- _NestedSingleAsyncResult.cs
- HwndSourceKeyboardInputSite.cs
- EventMappingSettings.cs
- ApplicationDirectoryMembershipCondition.cs
- RC2.cs
- TextEmbeddedObject.cs
- Table.cs
- LogEntryUtils.cs
- FontWeightConverter.cs
- Claim.cs
- RSAPKCS1SignatureDeformatter.cs
- ConfigXmlElement.cs
- VectorKeyFrameCollection.cs
- WindowsAuthenticationEventArgs.cs
- ReceiveContextCollection.cs
- LinqDataSourceStatusEventArgs.cs
- isolationinterop.cs
- DependentList.cs
- SchemaAttDef.cs
- RawStylusActions.cs
- PersistenceIOParticipant.cs
- DateTimeFormatInfo.cs
- DocumentPageView.cs
- BuildProviderCollection.cs
- DbResourceAllocator.cs
- CompositeTypefaceMetrics.cs
- ServiceHttpHandlerFactory.cs
- MappingSource.cs
- ParameterCollection.cs
- XslException.cs
- SqlDataSourceCache.cs
- BindingGroup.cs
- SqlAggregateChecker.cs
- FixedSOMGroup.cs
- PreviewControlDesigner.cs
- PhysicalFontFamily.cs
- DictionaryEntry.cs
- BehaviorEditorPart.cs
- LambdaCompiler.Unary.cs
- SemanticAnalyzer.cs
- KeySpline.cs
- keycontainerpermission.cs
- WebConfigurationFileMap.cs
- MutexSecurity.cs
- QueryOutputWriter.cs
- SoapObjectReader.cs
- DbSetClause.cs
- TimeoutConverter.cs
- ComponentResourceManager.cs
- Typography.cs
- IFlowDocumentViewer.cs
- InputLanguage.cs
- CryptographicAttribute.cs
- RelatedEnd.cs
- FileLoadException.cs
- LinearGradientBrush.cs
- TextEditorTyping.cs
- ActivityCodeGenerator.cs
- SQLStringStorage.cs
- AppliedDeviceFiltersDialog.cs
- Compiler.cs
- MenuItemCollection.cs
- StreamUpdate.cs
- Application.cs
- querybuilder.cs
- XmlHelper.cs
- Comparer.cs
- SiblingIterators.cs
- ForceCopyBuildProvider.cs
- NullRuntimeConfig.cs
- SignatureHelper.cs
- FontCacheLogic.cs
- CheckPair.cs
- DbQueryCommandTree.cs
- GeometryCollection.cs
- HttpResponseWrapper.cs
- NamespaceDecl.cs
- TextTreeUndoUnit.cs
- BigIntegerStorage.cs
- JpegBitmapEncoder.cs
- __Error.cs
- ProfileParameter.cs
- OdbcReferenceCollection.cs
- ListInitExpression.cs
- SeekableReadStream.cs
- SqlParameter.cs
- InputLanguageManager.cs
- EdmSchemaError.cs
- SmtpException.cs
- SafeFileHandle.cs
- TextBoxLine.cs
- DataServiceRequestOfT.cs
- ReferenceSchema.cs
- InvariantComparer.cs