40 lines
1.8 KiB
C#
40 lines
1.8 KiB
C#
using System;
|
|
|
|
namespace System.Security.Cryptography
|
|
{
|
|
/// <summary>Represents the abstract base class from which all implementations of the Advanced Encryption Standard (AES) must inherit. </summary>
|
|
// Token: 0x0200004E RID: 78
|
|
public abstract class Aes : SymmetricAlgorithm
|
|
{
|
|
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.Aes" /> class. </summary>
|
|
// Token: 0x06000458 RID: 1112 RVA: 0x00014710 File Offset: 0x00012910
|
|
protected Aes()
|
|
{
|
|
this.KeySizeValue = 256;
|
|
this.BlockSizeValue = 128;
|
|
this.LegalKeySizesValue = new KeySizes[1];
|
|
this.LegalKeySizesValue[0] = new KeySizes(128, 256, 64);
|
|
this.LegalBlockSizesValue = new KeySizes[1];
|
|
this.LegalBlockSizesValue[0] = new KeySizes(128, 128, 0);
|
|
}
|
|
|
|
/// <summary>Creates a cryptographic object that is used to perform the symmetric algorithm.</summary>
|
|
/// <returns>A cryptographic object that is used to perform the symmetric algorithm.</returns>
|
|
// Token: 0x06000459 RID: 1113 RVA: 0x00014784 File Offset: 0x00012984
|
|
public new static Aes Create()
|
|
{
|
|
return Aes.Create("System.Security.Cryptography.AesManaged, System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089");
|
|
}
|
|
|
|
/// <summary>Creates a cryptographic object that specifies the implementation of AES to use to perform the symmetric algorithm.</summary>
|
|
/// <returns>A cryptographic object that is used to perform the symmetric algorithm.</returns>
|
|
/// <param name="algorithmName">The name of the specific implementation of AES to use.</param>
|
|
/// <exception cref="T:System.ArgumentNullException">The <paramref name="algorithmName" /> parameter is null.</exception>
|
|
// Token: 0x0600045A RID: 1114 RVA: 0x00014790 File Offset: 0x00012990
|
|
public new static Aes Create(string algName)
|
|
{
|
|
return (Aes)CryptoConfig.CreateFromName(algName);
|
|
}
|
|
}
|
|
}
|