Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / whidbey / netfxsp / ndp / clr / src / BCL / System / Security / Cryptography / Rijndael.cs / 1 / Rijndael.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== // // Rijndael.cs // namespace System.Security.Cryptography { [System.Runtime.InteropServices.ComVisible(true)] public abstract class Rijndael : SymmetricAlgorithm { private static KeySizes[] s_legalBlockSizes = { new KeySizes(128, 256, 64) }; private static KeySizes[] s_legalKeySizes = { new KeySizes(128, 256, 64) }; // // protected constructors // protected Rijndael() { KeySizeValue = 256; BlockSizeValue = 128; FeedbackSizeValue = BlockSizeValue; LegalBlockSizesValue = s_legalBlockSizes; LegalKeySizesValue = s_legalKeySizes; } // // public methods // new static public Rijndael Create() { return Create("System.Security.Cryptography.Rijndael"); } new static public Rijndael Create(String algName) { return (Rijndael) CryptoConfig.CreateFromName(algName); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== // // Rijndael.cs // namespace System.Security.Cryptography { [System.Runtime.InteropServices.ComVisible(true)] public abstract class Rijndael : SymmetricAlgorithm { private static KeySizes[] s_legalBlockSizes = { new KeySizes(128, 256, 64) }; private static KeySizes[] s_legalKeySizes = { new KeySizes(128, 256, 64) }; // // protected constructors // protected Rijndael() { KeySizeValue = 256; BlockSizeValue = 128; FeedbackSizeValue = BlockSizeValue; LegalBlockSizesValue = s_legalBlockSizes; LegalKeySizesValue = s_legalKeySizes; } // // public methods // new static public Rijndael Create() { return Create("System.Security.Cryptography.Rijndael"); } new static public Rijndael Create(String algName) { return (Rijndael) CryptoConfig.CreateFromName(algName); } } } // 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
- WindowsRichEdit.cs
- HttpHeaderCollection.cs
- LockCookie.cs
- DataTableMapping.cs
- AdobeCFFWrapper.cs
- DependencyPropertyDescriptor.cs
- ComboBoxAutomationPeer.cs
- HttpRequestBase.cs
- ToolStripDropDownClosingEventArgs.cs
- DesignerProperties.cs
- CatalogZoneBase.cs
- SqlConnectionHelper.cs
- AssociativeAggregationOperator.cs
- SiteMapNodeItemEventArgs.cs
- UnhandledExceptionEventArgs.cs
- MessageSmuggler.cs
- EnumBuilder.cs
- PartialArray.cs
- UnknownBitmapDecoder.cs
- DetailsViewRow.cs
- ImageFormat.cs
- DetailsView.cs
- TableLayoutStyle.cs
- DataGridRow.cs
- FileCodeGroup.cs
- Transform3DGroup.cs
- BmpBitmapDecoder.cs
- BoundConstants.cs
- SecurityTokenException.cs
- DataGridHeaderBorder.cs
- WorkflowLayouts.cs
- TagPrefixAttribute.cs
- StatusCommandUI.cs
- DefaultHttpHandler.cs
- HTMLTextWriter.cs
- StatusBarPanelClickEvent.cs
- ScrollEventArgs.cs
- log.cs
- WebPartsSection.cs
- Pen.cs
- Action.cs
- OleDbException.cs
- ZipArchive.cs
- InfoCardRSAPKCS1SignatureDeformatter.cs
- DummyDataSource.cs
- SqlMethodCallConverter.cs
- XmlSchemaComplexContentExtension.cs
- X509UI.cs
- DataGridViewMethods.cs
- Calendar.cs
- SimpleBitVector32.cs
- ArrayTypeMismatchException.cs
- ValueTable.cs
- DataServiceRequestException.cs
- Selector.cs
- HtmlTableCell.cs
- SplineKeyFrames.cs
- NameNode.cs
- VersionedStream.cs
- XamlPointCollectionSerializer.cs
- DocumentCollection.cs
- ResourceDescriptionAttribute.cs
- TextSerializer.cs
- CompilerState.cs
- PersistenceTypeAttribute.cs
- EncryptedPackage.cs
- RectAnimationBase.cs
- FileDialog_Vista_Interop.cs
- Delegate.cs
- DataGridViewImageColumn.cs
- QueryAsyncResult.cs
- EnvelopedSignatureTransform.cs
- PointLightBase.cs
- XmlNavigatorStack.cs
- BookmarkEventArgs.cs
- ClientTargetSection.cs
- XmlAttributeHolder.cs
- EmptyCollection.cs
- ScriptServiceAttribute.cs
- RangeBase.cs
- EqualityComparer.cs
- _CommandStream.cs
- mil_sdk_version.cs
- Point3DIndependentAnimationStorage.cs
- Dictionary.cs
- _RequestLifetimeSetter.cs
- ProviderIncompatibleException.cs
- RelationshipEndMember.cs
- TypeGeneratedEventArgs.cs
- BitmapEffectRenderDataResource.cs
- prompt.cs
- SortExpressionBuilder.cs
- _StreamFramer.cs
- SeparatorAutomationPeer.cs
- ResXBuildProvider.cs
- LogEntrySerializer.cs
- OpacityConverter.cs
- IgnoreSectionHandler.cs
- EllipseGeometry.cs
- BinaryObjectReader.cs