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
- ProviderCollection.cs
- AddInAttribute.cs
- Calendar.cs
- MultiView.cs
- LoginName.cs
- SerializationInfo.cs
- SchemaNamespaceManager.cs
- UnmanagedMemoryStreamWrapper.cs
- glyphs.cs
- AsyncPostBackTrigger.cs
- XamlToRtfParser.cs
- ScrollContentPresenter.cs
- FileSecurity.cs
- DependentList.cs
- Models.cs
- RelationshipDetailsRow.cs
- ListViewGroupConverter.cs
- LogicalExpr.cs
- DispatchWrapper.cs
- SymmetricAlgorithm.cs
- XmlSerializationReader.cs
- DoWorkEventArgs.cs
- BlurBitmapEffect.cs
- InkCollectionBehavior.cs
- PopOutPanel.cs
- WebBaseEventKeyComparer.cs
- AppSettingsExpressionBuilder.cs
- ListBoxChrome.cs
- TransformGroup.cs
- ParameterModifier.cs
- MediaContextNotificationWindow.cs
- XmlHierarchicalDataSourceView.cs
- ProjectionPruner.cs
- PointAnimationUsingPath.cs
- StringFunctions.cs
- UserNameSecurityToken.cs
- AutoGeneratedField.cs
- ComponentRenameEvent.cs
- Comparer.cs
- TreeNodeEventArgs.cs
- DocumentAutomationPeer.cs
- ValidationService.cs
- SyndicationSerializer.cs
- ChannelBase.cs
- StructuralCache.cs
- OdbcConnectionPoolProviderInfo.cs
- DocumentsTrace.cs
- SymLanguageType.cs
- FileLogRecord.cs
- PopupEventArgs.cs
- OwnerDrawPropertyBag.cs
- ParenthesizePropertyNameAttribute.cs
- X509CertificateChain.cs
- DependencyPropertyValueSerializer.cs
- NativeMethods.cs
- ExtentKey.cs
- RunInstallerAttribute.cs
- SerializerWriterEventHandlers.cs
- FloaterParagraph.cs
- ReliabilityContractAttribute.cs
- CalculatedColumn.cs
- StylusSystemGestureEventArgs.cs
- SQLGuidStorage.cs
- PaginationProgressEventArgs.cs
- X509CertificateCollection.cs
- Brushes.cs
- CollectionChangedEventManager.cs
- PathData.cs
- ServiceCredentials.cs
- Margins.cs
- FederatedMessageSecurityOverHttpElement.cs
- TextServicesCompartmentEventSink.cs
- NetCodeGroup.cs
- XslException.cs
- InvokerUtil.cs
- PropertyRef.cs
- WinFormsSpinner.cs
- SortDescription.cs
- WebPartEventArgs.cs
- ProgressBarHighlightConverter.cs
- PointLightBase.cs
- AspCompat.cs
- PersonalizableTypeEntry.cs
- arclist.cs
- TransactionOptions.cs
- Funcletizer.cs
- DynamicILGenerator.cs
- ApplicationHost.cs
- HMACSHA512.cs
- ValidateNames.cs
- ApplicationSettingsBase.cs
- ISO2022Encoding.cs
- ThrowHelper.cs
- GridViewSelectEventArgs.cs
- ProviderBase.cs
- SingletonConnectionReader.cs
- ConfigurationProperty.cs
- NamespaceInfo.cs
- Scanner.cs
- PropertyValueChangedEvent.cs