86 lines
3.3 KiB
C#
86 lines
3.3 KiB
C#
using System;
|
|
using System.Runtime.InteropServices;
|
|
using Cpp2IlInjected;
|
|
|
|
namespace System.Security.Cryptography
|
|
{
|
|
/// <summary>Defines the basic operations of cryptographic transformations.</summary>
|
|
// Token: 0x020003F1 RID: 1009
|
|
[Token(Token = "0x20003F1")]
|
|
[ComVisible(true)]
|
|
public interface ICryptoTransform : IDisposable
|
|
{
|
|
/// <summary>Gets the input block size.</summary>
|
|
/// <returns>The size of the input data blocks in bytes.</returns>
|
|
// Token: 0x170004A4 RID: 1188
|
|
// (get) Token: 0x060021DF RID: 8671
|
|
[Token(Token = "0x170004A4")]
|
|
int InputBlockSize
|
|
{
|
|
[Token(Token = "0x60021DF")]
|
|
[Address(Slot = "0")]
|
|
get;
|
|
}
|
|
|
|
/// <summary>Gets the output block size.</summary>
|
|
/// <returns>The size of the output data blocks in bytes.</returns>
|
|
// Token: 0x170004A5 RID: 1189
|
|
// (get) Token: 0x060021E0 RID: 8672
|
|
[Token(Token = "0x170004A5")]
|
|
int OutputBlockSize
|
|
{
|
|
[Token(Token = "0x60021E0")]
|
|
[Address(Slot = "1")]
|
|
get;
|
|
}
|
|
|
|
/// <summary>Gets a value indicating whether multiple blocks can be transformed.</summary>
|
|
/// <returns>
|
|
/// <see langword="true" /> if multiple blocks can be transformed; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x170004A6 RID: 1190
|
|
// (get) Token: 0x060021E1 RID: 8673
|
|
[Token(Token = "0x170004A6")]
|
|
bool CanTransformMultipleBlocks
|
|
{
|
|
[Token(Token = "0x60021E1")]
|
|
[Address(Slot = "2")]
|
|
get;
|
|
}
|
|
|
|
/// <summary>Gets a value indicating whether the current transform can be reused.</summary>
|
|
/// <returns>
|
|
/// <see langword="true" /> if the current transform can be reused; otherwise, <see langword="false" />.</returns>
|
|
// Token: 0x170004A7 RID: 1191
|
|
// (get) Token: 0x060021E2 RID: 8674
|
|
[Token(Token = "0x170004A7")]
|
|
bool CanReuseTransform
|
|
{
|
|
[Token(Token = "0x60021E2")]
|
|
[Address(Slot = "3")]
|
|
get;
|
|
}
|
|
|
|
/// <summary>Transforms the specified region of the input byte array and copies the resulting transform to the specified region of the output byte array.</summary>
|
|
/// <param name="inputBuffer">The input for which to compute the transform.</param>
|
|
/// <param name="inputOffset">The offset into the input byte array from which to begin using data.</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 transform.</param>
|
|
/// <param name="outputOffset">The offset into the output byte array from which to begin writing data.</param>
|
|
/// <returns>The number of bytes written.</returns>
|
|
// Token: 0x060021E3 RID: 8675
|
|
[Token(Token = "0x60021E3")]
|
|
[Address(Slot = "4")]
|
|
int TransformBlock(byte[] inputBuffer, int inputOffset, int inputCount, byte[] outputBuffer, int outputOffset);
|
|
|
|
/// <summary>Transforms the specified region of the specified byte array.</summary>
|
|
/// <param name="inputBuffer">The input for which to compute the transform.</param>
|
|
/// <param name="inputOffset">The offset into the byte array from which to begin using data.</param>
|
|
/// <param name="inputCount">The number of bytes in the byte array to use as data.</param>
|
|
/// <returns>The computed transform.</returns>
|
|
// Token: 0x060021E4 RID: 8676
|
|
[Token(Token = "0x60021E4")]
|
|
[Address(Slot = "5")]
|
|
byte[] TransformFinalBlock(byte[] inputBuffer, int inputOffset, int inputCount);
|
|
}
|
|
}
|