Code:
/ FXUpdate3074 / FXUpdate3074 / 1.1 / untmp / whidbey / QFE / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SmtpFailedRecipientsException.cs
- FileUtil.cs
- SqlDataSourceView.cs
- FormattedTextSymbols.cs
- MaxValueConverter.cs
- QuaternionAnimation.cs
- DeviceContexts.cs
- BitmapEffectGroup.cs
- TextOnlyOutput.cs
- SemanticTag.cs
- SqlLiftIndependentRowExpressions.cs
- Vector.cs
- PeerInvitationResponse.cs
- Utils.cs
- BuilderElements.cs
- CustomLineCap.cs
- XamlReaderHelper.cs
- InfoCardRSACryptoProvider.cs
- MenuItem.cs
- ValueType.cs
- IImplicitResourceProvider.cs
- ForeignKeyConstraint.cs
- BindingNavigatorDesigner.cs
- SignatureHelper.cs
- TextClipboardData.cs
- PrincipalPermission.cs
- System.Data_BID.cs
- HandoffBehavior.cs
- HttpCapabilitiesEvaluator.cs
- SmtpNtlmAuthenticationModule.cs
- CqlGenerator.cs
- EmbeddedObject.cs
- unsafeIndexingFilterStream.cs
- FontSizeConverter.cs
- CapabilitiesPattern.cs
- ComponentConverter.cs
- CertificateManager.cs
- SrgsRulesCollection.cs
- DataRecordInternal.cs
- HiddenField.cs
- WebPartEditorOkVerb.cs
- GridView.cs
- CaseCqlBlock.cs
- SiteMapNode.cs
- AutomationPeer.cs
- TypeHelper.cs
- sqlnorm.cs
- PropertyDescriptors.cs
- __Error.cs
- SqlXml.cs
- ListBindingHelper.cs
- RSAOAEPKeyExchangeDeformatter.cs
- CAGDesigner.cs
- Stack.cs
- BufferModesCollection.cs
- ModelTreeEnumerator.cs
- _SSPIWrapper.cs
- InternalsVisibleToAttribute.cs
- Style.cs
- CurrentChangingEventArgs.cs
- SystemBrushes.cs
- Expr.cs
- HttpFileCollection.cs
- FlowDocumentPageViewerAutomationPeer.cs
- DecimalAnimationUsingKeyFrames.cs
- HttpHandlerActionCollection.cs
- XmlSerializationReader.cs
- MultipartContentParser.cs
- QueryException.cs
- RequestBringIntoViewEventArgs.cs
- PtsContext.cs
- WebException.cs
- TimeoutTimer.cs
- ObjectTypeMapping.cs
- NameTable.cs
- TemplatePagerField.cs
- OdbcCommandBuilder.cs
- XmlHierarchyData.cs
- sqlcontext.cs
- PreProcessor.cs
- SoapExtension.cs
- BaseProcessProtocolHandler.cs
- GatewayDefinition.cs
- FontInfo.cs
- ProcessThread.cs
- StorageMappingItemLoader.cs
- NavigatorInput.cs
- GridViewRowCollection.cs
- StrokeNodeOperations.cs
- EditingMode.cs
- DefaultCommandConverter.cs
- ShapingWorkspace.cs
- SpecialNameAttribute.cs
- TableLayout.cs
- AssociationEndMember.cs
- CheckedListBox.cs
- XmlToDatasetMap.cs
- RuntimeConfigLKG.cs
- EdmItemError.cs
- StickyNoteAnnotations.cs