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
- PcmConverter.cs
- XmlSchemaType.cs
- Int32.cs
- CookieParameter.cs
- ReservationNotFoundException.cs
- hwndwrapper.cs
- Span.cs
- CollectionsUtil.cs
- CodeExpressionStatement.cs
- ExpressionTable.cs
- PeerInvitationResponse.cs
- SpecialTypeDataContract.cs
- EntityViewGenerator.cs
- InputManager.cs
- XmlPreloadedResolver.cs
- VectorCollection.cs
- ItemCheckedEvent.cs
- ConnectionStringsSection.cs
- GacUtil.cs
- Evidence.cs
- Configuration.cs
- HitTestWithPointDrawingContextWalker.cs
- Int32Collection.cs
- ConfigXmlAttribute.cs
- SchemaNames.cs
- SharedUtils.cs
- IMembershipProvider.cs
- IsolatedStorageException.cs
- QilValidationVisitor.cs
- Window.cs
- ExpandSegmentCollection.cs
- XmlEntityReference.cs
- ViewManager.cs
- ColorTransformHelper.cs
- PingOptions.cs
- WindowsFormsSectionHandler.cs
- TcpClientChannel.cs
- DrawingGroup.cs
- listitem.cs
- CqlIdentifiers.cs
- ExecutionEngineException.cs
- AllMembershipCondition.cs
- DeclaredTypeElementCollection.cs
- AuthenticodeSignatureInformation.cs
- DataControlCommands.cs
- LineSegment.cs
- WorkflowDebuggerSteppingAttribute.cs
- ProviderConnectionPoint.cs
- XmlQualifiedNameTest.cs
- TypedTableHandler.cs
- XmlElementList.cs
- CodePageUtils.cs
- PasswordTextContainer.cs
- BindingGroup.cs
- ConfigurationSectionHelper.cs
- NestedContainer.cs
- GraphicsPathIterator.cs
- VirtualPathProvider.cs
- CopyAttributesAction.cs
- EmptyStringExpandableObjectConverter.cs
- ScopelessEnumAttribute.cs
- MobileControlsSectionHelper.cs
- CacheForPrimitiveTypes.cs
- TypedReference.cs
- PreloadedPackages.cs
- FileChangesMonitor.cs
- ConfigurationStrings.cs
- OleDbConnection.cs
- SafePointer.cs
- CanonicalFormWriter.cs
- SqlUserDefinedTypeAttribute.cs
- filewebresponse.cs
- RouteCollection.cs
- XmlnsCache.cs
- ProcessStartInfo.cs
- NumericUpDown.cs
- DataFormat.cs
- ExtensionFile.cs
- QilFunction.cs
- arabicshape.cs
- ListBoxItemAutomationPeer.cs
- CroppedBitmap.cs
- SigningDialog.cs
- CharacterMetrics.cs
- Pkcs7Recipient.cs
- StringKeyFrameCollection.cs
- DataGridViewCellStyleContentChangedEventArgs.cs
- _HeaderInfoTable.cs
- AdjustableArrowCap.cs
- HttpChannelFactory.cs
- FlowLayoutSettings.cs
- BufferAllocator.cs
- ViewStateAttachedPropertyFeature.cs
- MimeXmlImporter.cs
- EncryptedReference.cs
- PrintPreviewGraphics.cs
- wmiutil.cs
- BitSet.cs
- LineBreakRecord.cs
- FrameworkRichTextComposition.cs