scripts
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace System.Security.Cryptography
|
||||
{
|
||||
/// <summary>Represents the base class from which all implementations of the <see cref="T:System.Security.Cryptography.Rijndael" /> symmetric encryption algorithm must inherit.</summary>
|
||||
// Token: 0x02000526 RID: 1318
|
||||
[ComVisible(true)]
|
||||
public abstract class Rijndael : SymmetricAlgorithm
|
||||
{
|
||||
/// <summary>Initializes a new instance of <see cref="T:System.Security.Cryptography.Rijndael" />.</summary>
|
||||
// Token: 0x0600306C RID: 12396 RVA: 0x0009E47C File Offset: 0x0009C67C
|
||||
protected Rijndael()
|
||||
{
|
||||
this.KeySizeValue = 256;
|
||||
this.BlockSizeValue = 128;
|
||||
this.FeedbackSizeValue = 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, 256, 64);
|
||||
}
|
||||
|
||||
/// <summary>Creates a cryptographic object to perform the <see cref="T:System.Security.Cryptography.Rijndael" /> algorithm.</summary>
|
||||
/// <returns>A cryptographic object.</returns>
|
||||
/// <exception cref="T:System.Reflection.TargetInvocationException">The algorithm was used with Federal Information Processing Standards (FIPS) mode enabled, but is not FIPS compatible.</exception>
|
||||
/// <PermissionSet>
|
||||
/// <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="UnmanagedCode" />
|
||||
/// </PermissionSet>
|
||||
// Token: 0x0600306D RID: 12397 RVA: 0x0009E4FC File Offset: 0x0009C6FC
|
||||
public new static Rijndael Create()
|
||||
{
|
||||
return Rijndael.Create("System.Security.Cryptography.Rijndael");
|
||||
}
|
||||
|
||||
/// <summary>Creates a cryptographic object to perform the specified implementation of the <see cref="T:System.Security.Cryptography.Rijndael" /> algorithm.</summary>
|
||||
/// <returns>A cryptographic object.</returns>
|
||||
/// <param name="algName">The name of the specific implementation of <see cref="T:System.Security.Cryptography.Rijndael" /> to create. </param>
|
||||
/// <exception cref="T:System.Reflection.TargetInvocationException">The algorithm described by the <paramref name="algName" /> parameter was used with Federal Information Processing Standards (FIPS) mode enabled, but is not FIPS compatible.</exception>
|
||||
// Token: 0x0600306E RID: 12398 RVA: 0x0009E508 File Offset: 0x0009C708
|
||||
public new static Rijndael Create(string algName)
|
||||
{
|
||||
return (Rijndael)CryptoConfig.CreateFromName(algName);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user