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 / 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
- ClockGroup.cs
- SymbolEqualComparer.cs
- DateTimeParse.cs
- ActionFrame.cs
- EntityKey.cs
- SymmetricAlgorithm.cs
- XmlSchemaSimpleTypeRestriction.cs
- GrammarBuilderPhrase.cs
- Button.cs
- DoubleLinkList.cs
- SmiSettersStream.cs
- DataGridItemEventArgs.cs
- MissingMemberException.cs
- DynamicDocumentPaginator.cs
- XmlValidatingReader.cs
- GPPOINTF.cs
- CheckBoxFlatAdapter.cs
- AnimationStorage.cs
- IdentityManager.cs
- ServiceReference.cs
- _AutoWebProxyScriptWrapper.cs
- DigestTraceRecordHelper.cs
- DetailsViewDesigner.cs
- BuildProviderCollection.cs
- TableMethodGenerator.cs
- LayoutManager.cs
- Point3DCollectionValueSerializer.cs
- NamespaceTable.cs
- StylusPointDescription.cs
- TableLayoutPanelResizeGlyph.cs
- DynamicHyperLink.cs
- TextWriter.cs
- NoResizeSelectionBorderGlyph.cs
- ParserHooks.cs
- TableLayoutPanel.cs
- TypeExtensionConverter.cs
- SqlDependency.cs
- NameSpaceEvent.cs
- DbConnectionPoolGroupProviderInfo.cs
- UnsignedPublishLicense.cs
- AuthorizationRule.cs
- QueryStringParameter.cs
- XpsSerializerWriter.cs
- ToolboxSnapDragDropEventArgs.cs
- ComponentRenameEvent.cs
- StateMachineWorkflow.cs
- EntitySet.cs
- SoapObjectReader.cs
- DataTableTypeConverter.cs
- HtmlFormWrapper.cs
- ItemMap.cs
- QueryGenerator.cs
- ListViewItem.cs
- MessageUtil.cs
- ToolStripItemTextRenderEventArgs.cs
- CssStyleCollection.cs
- VerticalConnector.xaml.cs
- ExpandableObjectConverter.cs
- WindowsListViewGroup.cs
- MutexSecurity.cs
- MetadataItemCollectionFactory.cs
- FileIOPermission.cs
- UntrustedRecipientException.cs
- CodeTypeDelegate.cs
- SiblingIterators.cs
- CriticalExceptions.cs
- WindowsFormsEditorServiceHelper.cs
- TagMapCollection.cs
- TreeBuilder.cs
- MailWriter.cs
- GlobalizationSection.cs
- TextOutput.cs
- DecimalAnimationUsingKeyFrames.cs
- COM2ExtendedTypeConverter.cs
- SQLByte.cs
- ExplicitDiscriminatorMap.cs
- ValidationErrorCollection.cs
- XmlHierarchyData.cs
- PolyLineSegment.cs
- CommandConverter.cs
- PenLineJoinValidation.cs
- ResourcePart.cs
- FunctionImportElement.cs
- MultiTargetingUtil.cs
- ValidatingCollection.cs
- RadioButtonRenderer.cs
- ResXFileRef.cs
- ArraySubsetEnumerator.cs
- BaseCAMarshaler.cs
- GeometryHitTestResult.cs
- ProfileParameter.cs
- BinaryObjectWriter.cs
- DataBindingCollectionConverter.cs
- ContextMenuStripGroup.cs
- SymbolPair.cs
- AnnotationStore.cs
- TypeBrowserDialog.cs
- StaticTextPointer.cs
- Scheduler.cs
- MissingMemberException.cs