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 / HMACSHA384.cs / 1 / HMACSHA384.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== // // HMACSHA384.cs // namespace System.Security.Cryptography { [System.Runtime.InteropServices.ComVisible(true)] public class HMACSHA384 : HMAC { private bool m_useLegacyBlockSize = Utils._ProduceLegacyHmacValues(); // // public constructors // public HMACSHA384 () : this (Utils.GenerateRandom(128)) {} public HMACSHA384 (byte[] key) { Utils._ShowLegacyHmacWarning(); m_hashName = "SHA384"; m_hash1 = new SHA384Managed(); m_hash2 = new SHA384Managed(); HashSizeValue = 384; BlockSizeValue = BlockSize; base.InitializeKey(key); } private int BlockSize { get { return m_useLegacyBlockSize ? 64 : 128; } } // See code:System.Security.Cryptography.HMACSHA512.ProduceLegacyHmacValues public bool ProduceLegacyHmacValues { get { return m_useLegacyBlockSize; } set { m_useLegacyBlockSize = value; BlockSizeValue = BlockSize; InitializeKey(KeyValue); } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== // // HMACSHA384.cs // namespace System.Security.Cryptography { [System.Runtime.InteropServices.ComVisible(true)] public class HMACSHA384 : HMAC { private bool m_useLegacyBlockSize = Utils._ProduceLegacyHmacValues(); // // public constructors // public HMACSHA384 () : this (Utils.GenerateRandom(128)) {} public HMACSHA384 (byte[] key) { Utils._ShowLegacyHmacWarning(); m_hashName = "SHA384"; m_hash1 = new SHA384Managed(); m_hash2 = new SHA384Managed(); HashSizeValue = 384; BlockSizeValue = BlockSize; base.InitializeKey(key); } private int BlockSize { get { return m_useLegacyBlockSize ? 64 : 128; } } // See code:System.Security.Cryptography.HMACSHA512.ProduceLegacyHmacValues public bool ProduceLegacyHmacValues { get { return m_useLegacyBlockSize; } set { m_useLegacyBlockSize = value; BlockSizeValue = BlockSize; InitializeKey(KeyValue); } } } } // 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
- OpCopier.cs
- ClipboardData.cs
- Expr.cs
- ArrayConverter.cs
- TemplatePagerField.cs
- WebPartMovingEventArgs.cs
- RequestQueue.cs
- CngKeyBlobFormat.cs
- shaper.cs
- ColorConvertedBitmap.cs
- PartDesigner.cs
- AgileSafeNativeMemoryHandle.cs
- LabelEditEvent.cs
- EntitySqlQueryCacheKey.cs
- XomlDesignerLoader.cs
- WorkflowMarkupSerializationException.cs
- SelectorItemAutomationPeer.cs
- Span.cs
- ResourceCategoryAttribute.cs
- PropertyToken.cs
- BreadCrumbTextConverter.cs
- DataTemplateSelector.cs
- TextBoxDesigner.cs
- TextRangeAdaptor.cs
- BooleanFunctions.cs
- BezierSegment.cs
- BmpBitmapEncoder.cs
- DataGridTableCollection.cs
- TemplatePartAttribute.cs
- Size3DConverter.cs
- precedingsibling.cs
- Function.cs
- RepeatInfo.cs
- BitArray.cs
- ItemsPanelTemplate.cs
- XmlObjectSerializer.cs
- SizeConverter.cs
- ElementsClipboardData.cs
- CharacterHit.cs
- UriSection.cs
- StructuredType.cs
- IRCollection.cs
- StringArrayConverter.cs
- PersonalizationProviderHelper.cs
- PopupControlService.cs
- IIS7UserPrincipal.cs
- SignatureHelper.cs
- EmptyStringExpandableObjectConverter.cs
- X509IssuerSerialKeyIdentifierClause.cs
- CryptoApi.cs
- ColorMap.cs
- DefaultValueConverter.cs
- RuleValidation.cs
- InfoCardRSAOAEPKeyExchangeDeformatter.cs
- AssemblyResourceLoader.cs
- TypeConverterBase.cs
- CallbackValidatorAttribute.cs
- CaseExpr.cs
- TypeUsage.cs
- CheckPair.cs
- IPPacketInformation.cs
- DefaultShape.cs
- FilterException.cs
- XPathParser.cs
- Profiler.cs
- HyperLinkStyle.cs
- StatusStrip.cs
- ExpressionBuilder.cs
- LookupNode.cs
- RemoteX509Token.cs
- DefaultShape.cs
- UserNameSecurityTokenProvider.cs
- MailWriter.cs
- SystemDropShadowChrome.cs
- LayoutDump.cs
- RTLAwareMessageBox.cs
- SortableBindingList.cs
- RowVisual.cs
- DataTableExtensions.cs
- DesignTimeTemplateParser.cs
- PanelDesigner.cs
- SqlDependencyListener.cs
- FixedSOMPage.cs
- MenuCommand.cs
- GlyphsSerializer.cs
- DataSysAttribute.cs
- DataSet.cs
- TimeoutConverter.cs
- PropertyToken.cs
- OdbcConnectionPoolProviderInfo.cs
- COM2ColorConverter.cs
- WeakEventManager.cs
- PartitionResolver.cs
- TextRangeSerialization.cs
- Tokenizer.cs
- XmlCharCheckingReader.cs
- MachineKeySection.cs
- XmlSchemaAnyAttribute.cs
- DateTimeConverter2.cs
- DataKeyPropertyAttribute.cs