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
- _ScatterGatherBuffers.cs
- ConnectionStringsSection.cs
- GridLength.cs
- SiteMap.cs
- MethodExecutor.cs
- SafeEventLogReadHandle.cs
- WebConvert.cs
- LayoutUtils.cs
- Panel.cs
- HitTestDrawingContextWalker.cs
- DropTarget.cs
- GlobalProxySelection.cs
- ErrorFormatter.cs
- ObjectStorage.cs
- Separator.cs
- DataContractSerializerSection.cs
- PolyBezierSegment.cs
- Point3DCollectionConverter.cs
- ServiceParser.cs
- SamlAuthenticationClaimResource.cs
- ApplicationContext.cs
- BrowserDefinition.cs
- RuntimeHandles.cs
- NavigationWindowAutomationPeer.cs
- SecurityKeyUsage.cs
- DbgUtil.cs
- AnonymousIdentificationModule.cs
- WpfKnownTypeInvoker.cs
- Regex.cs
- RequestCacheEntry.cs
- ValuePattern.cs
- SafeFileHandle.cs
- CodeFieldReferenceExpression.cs
- StreamGeometry.cs
- FontUnit.cs
- SettingsProperty.cs
- StylusTouchDevice.cs
- MediaContext.cs
- SessionSwitchEventArgs.cs
- OleDbReferenceCollection.cs
- WebFormsRootDesigner.cs
- OnOperation.cs
- NavigationPropertyEmitter.cs
- DataGridHeaderBorder.cs
- DesignerAttribute.cs
- ItemCollectionEditor.cs
- PickBranchDesigner.xaml.cs
- DelegatingConfigHost.cs
- Quaternion.cs
- TemplatedMailWebEventProvider.cs
- UnmanagedMarshal.cs
- BrowserCapabilitiesFactory.cs
- XmlAttributes.cs
- DataGridViewCellErrorTextNeededEventArgs.cs
- QuerySettings.cs
- SchemaObjectWriter.cs
- HtmlTableRow.cs
- RemoteCryptoRsaServiceProvider.cs
- TextOutput.cs
- DataGridAutoFormatDialog.cs
- ConfigurationValue.cs
- ImageBrush.cs
- PointCollection.cs
- TranslateTransform3D.cs
- SystemIPInterfaceProperties.cs
- RuntimeIdentifierPropertyAttribute.cs
- PolyQuadraticBezierSegment.cs
- SevenBitStream.cs
- ImpersonateTokenRef.cs
- StreamingContext.cs
- PersonalizationAdministration.cs
- SrgsNameValueTag.cs
- _ScatterGatherBuffers.cs
- SqlTriggerAttribute.cs
- ToolStripSettings.cs
- ComboBoxRenderer.cs
- ToolStripPanelRenderEventArgs.cs
- DeclaredTypeElement.cs
- DurationConverter.cs
- _SSPIWrapper.cs
- XamlDebuggerXmlReader.cs
- ProxyElement.cs
- SecurityChannelFaultConverter.cs
- TrackPoint.cs
- ParserStreamGeometryContext.cs
- CatalogPartCollection.cs
- CodeGroup.cs
- xsdvalidator.cs
- PersonalizationStateInfo.cs
- ColorDialog.cs
- SevenBitStream.cs
- SizeConverter.cs
- WebReferenceOptions.cs
- Visual3D.cs
- WebPartCloseVerb.cs
- ViewKeyConstraint.cs
- HandlerMappingMemo.cs
- MultipleViewProviderWrapper.cs
- OdbcCommandBuilder.cs
- TailCallAnalyzer.cs