150 lines
6.2 KiB
C#
150 lines
6.2 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace System.Security.Cryptography
|
|
{
|
|
/// <summary>Performs a cryptographic transformation of data. This class cannot be inherited.</summary>
|
|
// Token: 0x020004EC RID: 1260
|
|
[ComVisible(true)]
|
|
public sealed class CryptoAPITransform : IDisposable, ICryptoTransform
|
|
{
|
|
// Token: 0x06002E9E RID: 11934 RVA: 0x00095268 File Offset: 0x00093468
|
|
internal CryptoAPITransform()
|
|
{
|
|
this.m_disposed = false;
|
|
}
|
|
|
|
/// <summary>Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.</summary>
|
|
// Token: 0x06002E9F RID: 11935 RVA: 0x00095278 File Offset: 0x00093478
|
|
void IDisposable.Dispose()
|
|
{
|
|
this.Dispose(true);
|
|
GC.SuppressFinalize(this);
|
|
}
|
|
|
|
/// <summary>Gets a value indicating whether the current transform can be reused.</summary>
|
|
/// <returns>Always true.</returns>
|
|
// Token: 0x17000930 RID: 2352
|
|
// (get) Token: 0x06002EA0 RID: 11936 RVA: 0x00095288 File Offset: 0x00093488
|
|
public bool CanReuseTransform
|
|
{
|
|
get
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets a value indicating whether multiple blocks can be transformed.</summary>
|
|
/// <returns>true if multiple blocks can be transformed; otherwise, false.</returns>
|
|
// Token: 0x17000931 RID: 2353
|
|
// (get) Token: 0x06002EA1 RID: 11937 RVA: 0x0009528C File Offset: 0x0009348C
|
|
public bool CanTransformMultipleBlocks
|
|
{
|
|
get
|
|
{
|
|
return true;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the input block size.</summary>
|
|
/// <returns>The input block size in bytes.</returns>
|
|
// Token: 0x17000932 RID: 2354
|
|
// (get) Token: 0x06002EA2 RID: 11938 RVA: 0x00095290 File Offset: 0x00093490
|
|
public int InputBlockSize
|
|
{
|
|
get
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the key handle.</summary>
|
|
/// <returns>The key handle.</returns>
|
|
/// <PermissionSet>
|
|
/// <IPermission class="System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.3600.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" version="1" Flags="UnmanagedCode" />
|
|
/// </PermissionSet>
|
|
// Token: 0x17000933 RID: 2355
|
|
// (get) Token: 0x06002EA3 RID: 11939 RVA: 0x00095294 File Offset: 0x00093494
|
|
public IntPtr KeyHandle
|
|
{
|
|
get
|
|
{
|
|
return IntPtr.Zero;
|
|
}
|
|
}
|
|
|
|
/// <summary>Gets the output block size.</summary>
|
|
/// <returns>The output block size in bytes.</returns>
|
|
// Token: 0x17000934 RID: 2356
|
|
// (get) Token: 0x06002EA4 RID: 11940 RVA: 0x0009529C File Offset: 0x0009349C
|
|
public int OutputBlockSize
|
|
{
|
|
get
|
|
{
|
|
return 0;
|
|
}
|
|
}
|
|
|
|
/// <summary>Releases all resources used by the <see cref="T:System.Security.Cryptography.CryptoAPITransform" /> method.</summary>
|
|
// Token: 0x06002EA5 RID: 11941 RVA: 0x000952A0 File Offset: 0x000934A0
|
|
public void Clear()
|
|
{
|
|
this.Dispose(false);
|
|
}
|
|
|
|
// Token: 0x06002EA6 RID: 11942 RVA: 0x000952AC File Offset: 0x000934AC
|
|
private void Dispose(bool disposing)
|
|
{
|
|
if (!this.m_disposed)
|
|
{
|
|
if (disposing)
|
|
{
|
|
}
|
|
this.m_disposed = true;
|
|
}
|
|
}
|
|
|
|
/// <summary>Computes the transformation for the specified region of the input byte array and copies the resulting transformation to the specified region of the output byte array.</summary>
|
|
/// <returns>The number of bytes written.</returns>
|
|
/// <param name="inputBuffer">The input on which to perform the operation on. </param>
|
|
/// <param name="inputOffset">The offset into the input byte array from which to begin using data from. </param>
|
|
/// <param name="inputCount">The number of bytes in the input byte array to use as data. </param>
|
|
/// <param name="outputBuffer">The output to which to write the data to. </param>
|
|
/// <param name="outputOffset">The offset into the output byte array from which to begin writing data from. </param>
|
|
/// <exception cref="T:System.ArgumentNullException">The <paramref name="inputBuffer" /> parameter is null.-or- The <paramref name="outputBuffer" /> parameter is null. </exception>
|
|
/// <exception cref="T:System.ArgumentException">The length of the input buffer is less than the sum of the input offset and the input count. </exception>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">
|
|
/// <paramref name="inputOffset" /> is out of range. This parameter requires a non-negative number.</exception>
|
|
// Token: 0x06002EA7 RID: 11943 RVA: 0x000952C8 File Offset: 0x000934C8
|
|
public int TransformBlock(byte[] inputBuffer, int inputOffset, int inputCount, byte[] outputBuffer, int outputOffset)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
/// <summary>Computes the transformation for the specified region of the specified byte array.</summary>
|
|
/// <returns>The computed transformation.</returns>
|
|
/// <param name="inputBuffer">The input on which to perform the operation on. </param>
|
|
/// <param name="inputOffset">The offset into the byte array from which to begin using data from. </param>
|
|
/// <param name="inputCount">The number of bytes in the byte array to use as data. </param>
|
|
/// <exception cref="T:System.ArgumentNullException">The <paramref name="inputBuffer" /> parameter is null. </exception>
|
|
/// <exception cref="T:System.ArgumentException">The <paramref name="inputOffset" /> parameter is less than zero.-or- The <paramref name="inputCount" /> parameter is less than zero.-or- The length of the input buffer is less than the sum of the input offset and the input count. </exception>
|
|
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The <see cref="F:System.Security.Cryptography.PaddingMode.PKCS7" /> padding is invalid. </exception>
|
|
/// <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="inputOffset" /> parameter is out of range. This parameter requires a non-negative number.</exception>
|
|
// Token: 0x06002EA8 RID: 11944 RVA: 0x000952CC File Offset: 0x000934CC
|
|
public byte[] TransformFinalBlock(byte[] inputBuffer, int inputOffset, int inputCount)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/// <summary>Resets the internal state of <see cref="T:System.Security.Cryptography.CryptoAPITransform" /> so that it can be used again to do a different encryption or decryption.</summary>
|
|
// Token: 0x06002EA9 RID: 11945 RVA: 0x000952D0 File Offset: 0x000934D0
|
|
[ComVisible(false)]
|
|
public void Reset()
|
|
{
|
|
}
|
|
|
|
// Token: 0x04001271 RID: 4721
|
|
private bool m_disposed;
|
|
}
|
|
}
|