Code:
/ FX-1434 / FX-1434 / 1.0 / untmp / whidbey / REDBITS / ndp / clr / src / BCL / System / Security / Cryptography / HMACSHA384.cs / 2 / 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); } } } }
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- EntityRecordInfo.cs
- ComplexTypeEmitter.cs
- ToolStripItemImageRenderEventArgs.cs
- ObjectStorage.cs
- DataGridViewAccessibleObject.cs
- EnumMember.cs
- ProcessInputEventArgs.cs
- DataTableCollection.cs
- WithStatement.cs
- util.cs
- Clipboard.cs
- HttpModuleCollection.cs
- Scene3D.cs
- IdentitySection.cs
- SmtpAuthenticationManager.cs
- DispatcherEventArgs.cs
- SafeArchiveContext.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- XpsDocumentEvent.cs
- MergablePropertyAttribute.cs
- cookiecontainer.cs
- Inline.cs
- MediaPlayer.cs
- MachineKeySection.cs
- StringConcat.cs
- Pkcs7Signer.cs
- ReflectionPermission.cs
- BaseDataBoundControlDesigner.cs
- webeventbuffer.cs
- ProxyGenerationError.cs
- CellTreeSimplifier.cs
- ImpersonateTokenRef.cs
- XmlTextReader.cs
- TextParaLineResult.cs
- BrowserInteropHelper.cs
- Configuration.cs
- NumberAction.cs
- XmlNodeList.cs
- PTManager.cs
- ExpressionsCollectionEditor.cs
- SchemaElementDecl.cs
- Matrix.cs
- HtmlGenericControl.cs
- HelpProvider.cs
- HttpsHostedTransportConfiguration.cs
- TabItemAutomationPeer.cs
- SignatureHelper.cs
- ToolboxCategory.cs
- ToolBar.cs
- OrderedDictionary.cs
- FontFamily.cs
- InvalidPropValue.cs
- DataGridColumnCollection.cs
- WebPartTracker.cs
- SpoolingTaskBase.cs
- ProgressBarHighlightConverter.cs
- SqlRetyper.cs
- HandlerMappingMemo.cs
- TableCellAutomationPeer.cs
- Run.cs
- BitStack.cs
- CallId.cs
- ReferencedCollectionType.cs
- RequestTimeoutManager.cs
- URLBuilder.cs
- Effect.cs
- ImageListDesigner.cs
- QuaternionAnimation.cs
- OlePropertyStructs.cs
- precedingquery.cs
- AssemblyAssociatedContentFileAttribute.cs
- Point3DCollectionValueSerializer.cs
- Vector.cs
- DBDataPermission.cs
- TimeSpanOrInfiniteValidator.cs
- StaticTextPointer.cs
- CardSpaceException.cs
- DelegateArgument.cs
- ProgressBar.cs
- WindowsAuthenticationModule.cs
- XmlCharType.cs
- WeakRefEnumerator.cs
- Authorization.cs
- CertificateManager.cs
- EntityContainerEntitySetDefiningQuery.cs
- WebUtil.cs
- _SslState.cs
- DecoderReplacementFallback.cs
- EntityDataSourceContainerNameConverter.cs
- LoginName.cs
- mil_sdk_version.cs
- LinkButton.cs
- WindowsSysHeader.cs
- CodeArrayIndexerExpression.cs
- RequestUriProcessor.cs
- FormsAuthenticationUserCollection.cs
- PrimitiveOperationFormatter.cs
- WmlCommandAdapter.cs
- DataGridHyperlinkColumn.cs
- RoleGroupCollection.cs