Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Security / Cryptography / HMACSHA1.cs / 1305376 / 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 FEATURE_CRYPTO if (useManagedSha1) { #endif // FEATURE_CRYPTO m_hash1 = new SHA1Managed(); m_hash2 = new SHA1Managed(); #if FEATURE_CRYPTO } else { m_hash1 = new SHA1CryptoServiceProvider(); m_hash2 = new SHA1CryptoServiceProvider(); } #endif // FEATURE_CRYPTO 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
- LinqDataSourceStatusEventArgs.cs
- TraceSwitch.cs
- DivideByZeroException.cs
- TableAdapterManagerMethodGenerator.cs
- DataKey.cs
- NetworkInformationPermission.cs
- InputScope.cs
- ViewBox.cs
- _ConnectStream.cs
- StringWriter.cs
- MultilineStringConverter.cs
- BindingBase.cs
- OleDbReferenceCollection.cs
- XmlFormatReaderGenerator.cs
- ConfigurationSectionCollection.cs
- TableLayoutColumnStyleCollection.cs
- RuleRef.cs
- XmlNamespaceMappingCollection.cs
- arc.cs
- XmlAttributeProperties.cs
- XsltOutput.cs
- AnnotationHighlightLayer.cs
- TypeListConverter.cs
- DbExpressionRules.cs
- _OverlappedAsyncResult.cs
- dbenumerator.cs
- ControlUtil.cs
- CrossSiteScriptingValidation.cs
- RowToParametersTransformer.cs
- StateItem.cs
- DataBindingCollection.cs
- WorkBatch.cs
- EventsTab.cs
- DataGridViewCellStateChangedEventArgs.cs
- RelatedPropertyManager.cs
- ListBindingHelper.cs
- Assert.cs
- CodeMemberField.cs
- ResourcesBuildProvider.cs
- DataGridViewCellStyle.cs
- FileDialogPermission.cs
- SafeSecurityHelper.cs
- Section.cs
- DataGridViewColumnConverter.cs
- UICuesEvent.cs
- CultureNotFoundException.cs
- AttributeProviderAttribute.cs
- ResourceManagerWrapper.cs
- _RegBlobWebProxyDataBuilder.cs
- ProbeMatchesMessage11.cs
- DataSet.cs
- XmlJsonWriter.cs
- TraceHandlerErrorFormatter.cs
- List.cs
- ComplexType.cs
- XsdBuilder.cs
- XmlAttributeCollection.cs
- DiscoveryReference.cs
- Mutex.cs
- SpeakProgressEventArgs.cs
- NameValueCollection.cs
- Matrix.cs
- ImmComposition.cs
- EntityCommandCompilationException.cs
- AssociatedControlConverter.cs
- ProcessModule.cs
- TabItemAutomationPeer.cs
- CommandBindingCollection.cs
- MemberExpressionHelper.cs
- QueryCacheManager.cs
- FixedSOMTable.cs
- CacheMemory.cs
- SafeArrayTypeMismatchException.cs
- ByteAnimation.cs
- Pen.cs
- AssemblyHash.cs
- CombinedGeometry.cs
- RichTextBox.cs
- TranslateTransform3D.cs
- Model3DGroup.cs
- RepeaterCommandEventArgs.cs
- BufferedResponseStream.cs
- FlowSwitchLink.cs
- DrawingContext.cs
- Polygon.cs
- DbConnectionOptions.cs
- FileDialog_Vista.cs
- CodeAttributeDeclaration.cs
- DateTimeConverter2.cs
- PersonalizationProvider.cs
- SrgsText.cs
- ReflectionTypeLoadException.cs
- DelimitedListTraceListener.cs
- MimeTypeMapper.cs
- HuffCodec.cs
- BooleanToVisibilityConverter.cs
- GlobalItem.cs
- CodeBinaryOperatorExpression.cs
- ByteArrayHelperWithString.cs
- CodeGenerator.cs