Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / clr / src / BCL / System / Security / Cryptography / Aes.cs / 1305376 / Aes.cs
// ==++== // // Copyright (c) Microsoft Corporation. All rights reserved. // // ==--== using System; using System.Runtime.CompilerServices; namespace System.Security.Cryptography { ////// Abstract base class for implementations of the AES algorithm /// #if !FEATURE_CORECLR [TypeForwardedFrom("System.Core, Version=3.5.0.0, Culture=Neutral, PublicKeyToken=b77a5c561934e089")] #else // FEATURE_CORECLR [TypeForwardedFrom("System.Core, Version=2.0.5.0, Culture=Neutral, PublicKeyToken=7cec85d7bea7798e")] #endif // !FEATURE_CORECLR public abstract class Aes : SymmetricAlgorithm { private static KeySizes[] s_legalBlockSizes = { new KeySizes(128, 128, 0) }; private static KeySizes[] s_legalKeySizes = { new KeySizes(128, 256, 64) }; ////// Setup the default values for AES encryption /// protected Aes() { LegalBlockSizesValue = s_legalBlockSizes; LegalKeySizesValue = s_legalKeySizes; BlockSizeValue = 128; FeedbackSizeValue = 8; KeySizeValue = 256; ModeValue = CipherMode.CBC; } public static new Aes Create() { return Create("AES"); } public static new Aes Create(string algorithmName) { if (algorithmName == null) { throw new ArgumentNullException("algorithmName"); } return CryptoConfig.CreateFromName(algorithmName) as Aes; } } } // 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
- TrackBar.cs
- DynamicILGenerator.cs
- SimpleTextLine.cs
- MethodRental.cs
- XmlAutoDetectWriter.cs
- SecurityHelper.cs
- _TransmitFileOverlappedAsyncResult.cs
- XmlTextReaderImplHelpers.cs
- SendActivityValidator.cs
- ExtenderControl.cs
- XamlTreeBuilder.cs
- AssociatedControlConverter.cs
- WasAdminWrapper.cs
- SpeechRecognitionEngine.cs
- SqlCacheDependencyDatabase.cs
- ClientRolePrincipal.cs
- Converter.cs
- LayoutEvent.cs
- SecurityTokenException.cs
- ConnectionStringEditor.cs
- RenderData.cs
- Camera.cs
- TopClause.cs
- SqlDataSourceView.cs
- TextSelectionHighlightLayer.cs
- ReverseInheritProperty.cs
- IOThreadScheduler.cs
- errorpatternmatcher.cs
- HttpFileCollection.cs
- SecurityTokenProvider.cs
- path.cs
- ClientSettingsStore.cs
- SimpleExpression.cs
- OracleDataAdapter.cs
- FileLogRecordEnumerator.cs
- SQLDouble.cs
- DataObject.cs
- AsyncInvokeContext.cs
- Size.cs
- SHA384.cs
- XmlRawWriterWrapper.cs
- Base64Decoder.cs
- Privilege.cs
- TabControl.cs
- CodeDOMUtility.cs
- objectresult_tresulttype.cs
- GroupByExpressionRewriter.cs
- ContentPlaceHolder.cs
- FontFaceLayoutInfo.cs
- SortDescription.cs
- AbstractSvcMapFileLoader.cs
- DependencyObjectValidator.cs
- SqlDependency.cs
- DocumentPage.cs
- ContextCorrelationInitializer.cs
- FontFaceLayoutInfo.cs
- Camera.cs
- TreeChangeInfo.cs
- AccessDataSourceView.cs
- SignerInfo.cs
- DatePickerAutomationPeer.cs
- TiffBitmapDecoder.cs
- ResourceManagerWrapper.cs
- ConstrainedDataObject.cs
- webclient.cs
- bidPrivateBase.cs
- HwndSourceKeyboardInputSite.cs
- DictionaryContent.cs
- CommandValueSerializer.cs
- ApplicationException.cs
- TextBoxBase.cs
- Util.cs
- RayMeshGeometry3DHitTestResult.cs
- ToolStripRenderer.cs
- DataGridViewRowPostPaintEventArgs.cs
- EntityClientCacheKey.cs
- ToolStripContextMenu.cs
- RenderDataDrawingContext.cs
- _ListenerRequestStream.cs
- ResourceExpressionBuilder.cs
- FlowLayoutSettings.cs
- BuildManager.cs
- SqlGatherConsumedAliases.cs
- SendKeys.cs
- ThreadAttributes.cs
- SchemaComplexType.cs
- X509ImageLogo.cs
- QuarticEase.cs
- HierarchicalDataTemplate.cs
- ISFClipboardData.cs
- IriParsingElement.cs
- BufferedGraphicsContext.cs
- DocumentViewerBase.cs
- PagePropertiesChangingEventArgs.cs
- RouteValueExpressionBuilder.cs
- QueryableFilterUserControl.cs
- SyntaxCheck.cs
- TypeUtil.cs
- OdbcHandle.cs
- sqlnorm.cs