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
- ListManagerBindingsCollection.cs
- PowerModeChangedEventArgs.cs
- TabItem.cs
- VScrollProperties.cs
- AssociatedControlConverter.cs
- ReservationCollection.cs
- CssTextWriter.cs
- Keywords.cs
- RayHitTestParameters.cs
- DataGridViewRowContextMenuStripNeededEventArgs.cs
- DataGridViewCellPaintingEventArgs.cs
- StructuralObject.cs
- Html32TextWriter.cs
- SystemGatewayIPAddressInformation.cs
- SecurityCookieModeValidator.cs
- Enum.cs
- Panel.cs
- GroupBoxRenderer.cs
- X509CertificateClaimSet.cs
- InstallerTypeAttribute.cs
- PointLight.cs
- GroupBoxRenderer.cs
- LinqDataSourceContextData.cs
- rsa.cs
- WorkflowDesignerColors.cs
- SortAction.cs
- WrapperSecurityCommunicationObject.cs
- ToolStripItemRenderEventArgs.cs
- BackStopAuthenticationModule.cs
- DocumentSequence.cs
- _SSPIWrapper.cs
- DivideByZeroException.cs
- ContourSegment.cs
- XamlToRtfParser.cs
- AxHost.cs
- TimeoutTimer.cs
- X509AsymmetricSecurityKey.cs
- FontUnit.cs
- SolidColorBrush.cs
- OuterGlowBitmapEffect.cs
- QueryResult.cs
- DateTimeFormat.cs
- QilTargetType.cs
- XmlWrappingReader.cs
- AssemblyBuilder.cs
- FormatStringEditor.cs
- ToolStripPanelRow.cs
- PrinterResolution.cs
- HotCommands.cs
- COM2FontConverter.cs
- EntryIndex.cs
- PropertyDescriptorGridEntry.cs
- SqlHelper.cs
- HighlightVisual.cs
- WaitHandleCannotBeOpenedException.cs
- CharacterMetricsDictionary.cs
- PeerName.cs
- MsmqProcessProtocolHandler.cs
- UndirectedGraph.cs
- DictionaryGlobals.cs
- XmlAttributeAttribute.cs
- X509KeyIdentifierClauseType.cs
- DataGridSortCommandEventArgs.cs
- SystemSounds.cs
- WindowsPen.cs
- StateItem.cs
- TextHintingModeValidation.cs
- IntSecurity.cs
- TextDecoration.cs
- ClientSettings.cs
- PeerTransportBindingElement.cs
- ProfileGroupSettingsCollection.cs
- TriggerActionCollection.cs
- ValidationHelpers.cs
- AsymmetricSignatureDeformatter.cs
- AccessDataSource.cs
- MetadataFile.cs
- BamlTreeUpdater.cs
- StringInfo.cs
- HtmlHead.cs
- AnnotationResourceCollection.cs
- DataDocumentXPathNavigator.cs
- Decorator.cs
- FixedDocument.cs
- XPathDocumentNavigator.cs
- SqlTriggerAttribute.cs
- securitycriticaldataformultiplegetandset.cs
- DataColumnPropertyDescriptor.cs
- PerspectiveCamera.cs
- Expression.cs
- SqlDataSourceConfigureSelectPanel.cs
- GridViewPageEventArgs.cs
- CanExecuteRoutedEventArgs.cs
- ByteRangeDownloader.cs
- WindowInteropHelper.cs
- HybridDictionary.cs
- HashMembershipCondition.cs
- SimpleExpression.cs
- Guid.cs
- ReadContentAsBinaryHelper.cs