This commit is contained in:
niko
2026-04-11 22:19:20 +02:00
parent 45b857ff11
commit 8fc35183db
17034 changed files with 2863552 additions and 0 deletions
@@ -0,0 +1,405 @@
using System;
using System.IO;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;
using Cpp2IlInjected;
namespace System.Security.Cryptography
{
/// <summary>Defines a stream that links data streams to cryptographic transformations.</summary>
// Token: 0x020003DE RID: 990
[Token(Token = "0x20003DE")]
[ComVisible(true)]
public class CryptoStream : Stream, IDisposable
{
/// <summary>Initializes a new instance of the <see cref="T:System.Security.Cryptography.CryptoStream" /> class with a target data stream, the transformation to use, and the mode of the stream.</summary>
/// <param name="stream">The stream on which to perform the cryptographic transformation.</param>
/// <param name="transform">The cryptographic transformation that is to be performed on the stream.</param>
/// <param name="mode">One of the <see cref="T:System.Security.Cryptography.CryptoStreamMode" /> values.</param>
/// <exception cref="T:System.ArgumentException">
/// <paramref name="stream" /> is invalid.</exception>
// Token: 0x06002159 RID: 8537 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002159")]
[Address(RVA = "0x298F0A0", Offset = "0x298DEA0", VA = "0x18298F0A0")]
public CryptoStream(Stream stream, ICryptoTransform transform, CryptoStreamMode mode)
{
}
/// <summary>Gets a value indicating whether the current <see cref="T:System.Security.Cryptography.CryptoStream" /> is readable.</summary>
/// <returns>
/// <see langword="true" /> if the current stream is readable; otherwise, <see langword="false" />.</returns>
// Token: 0x1700048F RID: 1167
// (get) Token: 0x0600215A RID: 8538 RVA: 0x000147F0 File Offset: 0x000129F0
[Token(Token = "0x1700048F")]
public override bool CanRead
{
[Token(Token = "0x600215A")]
[Address(RVA = "0xDF7080", Offset = "0xDF5E80", VA = "0x180DF7080", Slot = "7")]
get
{
return default(bool);
}
}
/// <summary>Gets a value indicating whether you can seek within the current <see cref="T:System.Security.Cryptography.CryptoStream" />.</summary>
/// <returns>Always <see langword="false" />.</returns>
// Token: 0x17000490 RID: 1168
// (get) Token: 0x0600215B RID: 8539 RVA: 0x00014808 File Offset: 0x00012A08
[Token(Token = "0x17000490")]
public override bool CanSeek
{
[Token(Token = "0x600215B")]
[Address(RVA = "0x403930", Offset = "0x402730", VA = "0x180403930", Slot = "8")]
get
{
return default(bool);
}
}
/// <summary>Gets a value indicating whether the current <see cref="T:System.Security.Cryptography.CryptoStream" /> is writable.</summary>
/// <returns>
/// <see langword="true" /> if the current stream is writable; otherwise, <see langword="false" />.</returns>
// Token: 0x17000491 RID: 1169
// (get) Token: 0x0600215C RID: 8540 RVA: 0x00014820 File Offset: 0x00012A20
[Token(Token = "0x17000491")]
public override bool CanWrite
{
[Token(Token = "0x600215C")]
[Address(RVA = "0xDF70A0", Offset = "0xDF5EA0", VA = "0x180DF70A0", Slot = "9")]
get
{
return default(bool);
}
}
/// <summary>Gets the length in bytes of the stream.</summary>
/// <returns>This property is not supported.</returns>
/// <exception cref="T:System.NotSupportedException">This property is not supported.</exception>
// Token: 0x17000492 RID: 1170
// (get) Token: 0x0600215D RID: 8541 RVA: 0x00014838 File Offset: 0x00012A38
[Token(Token = "0x17000492")]
public override long Length
{
[Token(Token = "0x600215D")]
[Address(RVA = "0x298F310", Offset = "0x298E110", VA = "0x18298F310", Slot = "10")]
get
{
return 0L;
}
}
/// <summary>Gets or sets the position within the current stream.</summary>
/// <returns>This property is not supported.</returns>
/// <exception cref="T:System.NotSupportedException">This property is not supported.</exception>
// Token: 0x17000493 RID: 1171
// (get) Token: 0x0600215E RID: 8542 RVA: 0x00014850 File Offset: 0x00012A50
// (set) Token: 0x0600215F RID: 8543 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x17000493")]
public override long Position
{
[Token(Token = "0x600215E")]
[Address(RVA = "0x298F380", Offset = "0x298E180", VA = "0x18298F380", Slot = "11")]
get
{
return 0L;
}
[Token(Token = "0x600215F")]
[Address(RVA = "0x298F3F0", Offset = "0x298E1F0", VA = "0x18298F3F0", Slot = "12")]
set
{
}
}
/// <summary>Gets a value indicating whether the final buffer block has been written to the underlying stream.</summary>
/// <returns>
/// <see langword="true" /> if the final block has been flushed; otherwise, <see langword="false" />.</returns>
// Token: 0x17000494 RID: 1172
// (get) Token: 0x06002160 RID: 8544 RVA: 0x00014868 File Offset: 0x00012A68
[Token(Token = "0x17000494")]
public bool HasFlushedFinalBlock
{
[Token(Token = "0x6002160")]
[Address(RVA = "0x2806DE0", Offset = "0x2805BE0", VA = "0x182806DE0")]
get
{
return default(bool);
}
}
/// <summary>Updates the underlying data source or repository with the current state of the buffer, then clears the buffer.</summary>
/// <exception cref="T:System.Security.Cryptography.CryptographicException">The key is corrupt which can cause invalid padding to the stream.</exception>
/// <exception cref="T:System.NotSupportedException">The current stream is not writable.
/// -or-
/// The final block has already been transformed.</exception>
// Token: 0x06002161 RID: 8545 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002161")]
[Address(RVA = "0x298DB20", Offset = "0x298C920", VA = "0x18298DB20")]
public void FlushFinalBlock()
{
}
/// <summary>Clears all buffers for the current stream and causes any buffered data to be written to the underlying device.</summary>
// Token: 0x06002162 RID: 8546 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002162")]
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080", Slot = "17")]
public override void Flush()
{
}
/// <summary>Clears all buffers for the current stream asynchronously, causes any buffered data to be written to the underlying device, and monitors cancellation requests.</summary>
/// <param name="cancellationToken">The token to monitor for cancellation requests. The default value is <see cref="P:System.Threading.CancellationToken.None" />.</param>
/// <returns>A task that represents the asynchronous flush operation.</returns>
/// <exception cref="T:System.ObjectDisposedException">The stream has been disposed.</exception>
// Token: 0x06002163 RID: 8547 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002163")]
[Address(RVA = "0x298DA00", Offset = "0x298C800", VA = "0x18298DA00", Slot = "18")]
public override Task FlushAsync(CancellationToken cancellationToken)
{
return null;
}
/// <summary>Sets the position within the current stream.</summary>
/// <param name="offset">A byte offset relative to the <paramref name="origin" /> parameter.</param>
/// <param name="origin">A <see cref="T:System.IO.SeekOrigin" /> object indicating the reference point used to obtain the new position.</param>
/// <returns>This method is not supported.</returns>
/// <exception cref="T:System.NotSupportedException">This method is not supported.</exception>
// Token: 0x06002164 RID: 8548 RVA: 0x00014880 File Offset: 0x00012A80
[Token(Token = "0x6002164")]
[Address(RVA = "0x298E770", Offset = "0x298D570", VA = "0x18298E770", Slot = "25")]
public override long Seek(long offset, SeekOrigin origin)
{
return 0L;
}
/// <summary>Sets the length of the current stream.</summary>
/// <param name="value">The desired length of the current stream in bytes.</param>
/// <exception cref="T:System.NotSupportedException">This property exists only to support inheritance from <see cref="T:System.IO.Stream" />, and cannot be used.</exception>
// Token: 0x06002165 RID: 8549 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002165")]
[Address(RVA = "0x298E7E0", Offset = "0x298D5E0", VA = "0x18298E7E0", Slot = "26")]
public override void SetLength(long value)
{
}
/// <summary>Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.</summary>
/// <param name="buffer">An array of bytes. A maximum of <paramref name="count" /> bytes are read from the current stream and stored in <paramref name="buffer" />.</param>
/// <param name="offset">The byte offset in <paramref name="buffer" /> at which to begin storing the data read from the current stream.</param>
/// <param name="count">The maximum number of bytes to be read from the current stream.</param>
/// <returns>The total number of bytes read into the buffer. This can be less than the number of bytes requested if that many bytes are not currently available, or zero if the end of the stream has been reached.</returns>
/// <exception cref="T:System.NotSupportedException">The <see cref="T:System.Security.Cryptography.CryptoStreamMode" /> associated with current <see cref="T:System.Security.Cryptography.CryptoStream" /> object does not match the underlying stream. For example, this exception is thrown when using <see cref="F:System.Security.Cryptography.CryptoStreamMode.Read" /> with an underlying stream that is write only.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="offset" /> parameter is less than zero.
/// -or-
/// The <paramref name="count" /> parameter is less than zero.</exception>
/// <exception cref="T:System.ArgumentException">Thesum of the <paramref name="count" /> and <paramref name="offset" /> parameters is longer than the length of the buffer.</exception>
// Token: 0x06002166 RID: 8550 RVA: 0x00014898 File Offset: 0x00012A98
[Token(Token = "0x6002166")]
[Address(RVA = "0x298E210", Offset = "0x298D010", VA = "0x18298E210", Slot = "27")]
public override int Read([In] [Out] byte[] buffer, int offset, int count)
{
return 0;
}
/// <summary>Reads a sequence of bytes from the current stream asynchronously, advances the position within the stream by the number of bytes read, and monitors cancellation requests.</summary>
/// <param name="buffer">The buffer to write the data into.</param>
/// <param name="offset">The byte offset in <paramref name="buffer" /> at which to begin writing data from the stream.</param>
/// <param name="count">The maximum number of bytes to read.</param>
/// <param name="cancellationToken">The token to monitor for cancellation requests. The default value is <see cref="P:System.Threading.CancellationToken.None" />.</param>
/// <returns>A task that represents the asynchronous read operation. The value of the task object's <paramref name="TResult" /> parameter contains the total number of bytes read into the buffer. The result can be less than the number of bytes requested if the number of bytes currently available is less than the requested number, or it can be 0 (zero) if the end of the stream has been reached.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="buffer" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="offset" /> or <paramref name="count" /> is negative.</exception>
/// <exception cref="T:System.ArgumentException">The sum of <paramref name="offset" /> and <paramref name="count" /> is larger than the buffer length.</exception>
/// <exception cref="T:System.NotSupportedException">The stream does not support reading.</exception>
/// <exception cref="T:System.ObjectDisposedException">The stream has been disposed.</exception>
/// <exception cref="T:System.InvalidOperationException">The stream is currently in use by a previous read operation.</exception>
// Token: 0x06002167 RID: 8551 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002167")]
[Address(RVA = "0x298DEB0", Offset = "0x298CCB0", VA = "0x18298DEB0", Slot = "21")]
public override Task<int> ReadAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
{
return null;
}
// Token: 0x06002168 RID: 8552 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002168")]
[Address(RVA = "0x298DD90", Offset = "0x298CB90", VA = "0x18298DD90")]
private Task<int> ReadAsyncInternal(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
{
return null;
}
/// <summary>Writes a sequence of bytes to the current <see cref="T:System.Security.Cryptography.CryptoStream" /> and advances the current position within the stream by the number of bytes written.</summary>
/// <param name="buffer">An array of bytes. This method copies <paramref name="count" /> bytes from <paramref name="buffer" /> to the current stream.</param>
/// <param name="offset">The byte offset in <paramref name="buffer" /> at which to begin copying bytes to the current stream.</param>
/// <param name="count">The number of bytes to be written to the current stream.</param>
/// <exception cref="T:System.NotSupportedException">The <see cref="T:System.Security.Cryptography.CryptoStreamMode" /> associated with current <see cref="T:System.Security.Cryptography.CryptoStream" /> object does not match the underlying stream. For example, this exception is thrown when using <see cref="F:System.Security.Cryptography.CryptoStreamMode.Write" /> with an underlying stream that is read only.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">The <paramref name="offset" /> parameter is less than zero.
/// -or-
/// The <paramref name="count" /> parameter is less than zero.</exception>
/// <exception cref="T:System.ArgumentException">The sum of the <paramref name="count" /> and <paramref name="offset" /> parameters is longer than the length of the buffer.</exception>
// Token: 0x06002169 RID: 8553 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002169")]
[Address(RVA = "0x298ECB0", Offset = "0x298DAB0", VA = "0x18298ECB0", Slot = "29")]
public override void Write(byte[] buffer, int offset, int count)
{
}
/// <summary>Writes a sequence of bytes to the current stream asynchronously, advances the current position within the stream by the number of bytes written, and monitors cancellation requests.</summary>
/// <param name="buffer">The buffer to write data from.</param>
/// <param name="offset">The zero-based byte offset in <paramref name="buffer" /> from which to begin writing bytes to the stream.</param>
/// <param name="count">The maximum number of bytes to write.</param>
/// <param name="cancellationToken">The token to monitor for cancellation requests. The default value is <see cref="P:System.Threading.CancellationToken.None" />.</param>
/// <returns>A task that represents the asynchronous write operation.</returns>
/// <exception cref="T:System.ArgumentNullException">
/// <paramref name="buffer" /> is <see langword="null" />.</exception>
/// <exception cref="T:System.ArgumentOutOfRangeException">
/// <paramref name="offset" /> or <paramref name="count" /> is negative.</exception>
/// <exception cref="T:System.ArgumentException">The sum of <paramref name="offset" /> and <paramref name="count" /> is larger than the buffer length.</exception>
/// <exception cref="T:System.NotSupportedException">The stream does not support writing.</exception>
/// <exception cref="T:System.ObjectDisposedException">The stream has been disposed.</exception>
/// <exception cref="T:System.InvalidOperationException">The stream is currently in use by a previous write operation.</exception>
// Token: 0x0600216A RID: 8554 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600216A")]
[Address(RVA = "0x298E960", Offset = "0x298D760", VA = "0x18298E960", Slot = "24")]
public override Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
{
return null;
}
// Token: 0x0600216B RID: 8555 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x600216B")]
[Address(RVA = "0x298E850", Offset = "0x298D650", VA = "0x18298E850")]
private Task WriteAsyncInternal(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
{
return null;
}
/// <summary>Releases all resources used by the <see cref="T:System.Security.Cryptography.CryptoStream" />.</summary>
// Token: 0x0600216C RID: 8556 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600216C")]
[Address(RVA = "0x579920", Offset = "0x578720", VA = "0x180579920")]
public void Clear()
{
}
/// <summary>Releases the unmanaged resources used by the <see cref="T:System.Security.Cryptography.CryptoStream" /> and optionally releases the managed resources.</summary>
/// <param name="disposing">
/// <see langword="true" /> to release both managed and unmanaged resources; <see langword="false" /> to release only unmanaged resources.</param>
// Token: 0x0600216D RID: 8557 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600216D")]
[Address(RVA = "0x298D8C0", Offset = "0x298C6C0", VA = "0x18298D8C0", Slot = "16")]
protected override void Dispose(bool disposing)
{
}
// Token: 0x0600216E RID: 8558 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600216E")]
[Address(RVA = "0x298DD00", Offset = "0x298CB00", VA = "0x18298DD00")]
private void InitializeBuffer()
{
}
// Token: 0x04001320 RID: 4896
[global::Cpp2IlInjected.FieldOffset(Offset = "0x28")]
[Token(Token = "0x4001320")]
private Stream _stream;
// Token: 0x04001321 RID: 4897
[global::Cpp2IlInjected.FieldOffset(Offset = "0x30")]
[Token(Token = "0x4001321")]
private ICryptoTransform _Transform;
// Token: 0x04001322 RID: 4898
[global::Cpp2IlInjected.FieldOffset(Offset = "0x38")]
[Token(Token = "0x4001322")]
private byte[] _InputBuffer;
// Token: 0x04001323 RID: 4899
[global::Cpp2IlInjected.FieldOffset(Offset = "0x40")]
[Token(Token = "0x4001323")]
private int _InputBufferIndex;
// Token: 0x04001324 RID: 4900
[global::Cpp2IlInjected.FieldOffset(Offset = "0x44")]
[Token(Token = "0x4001324")]
private int _InputBlockSize;
// Token: 0x04001325 RID: 4901
[global::Cpp2IlInjected.FieldOffset(Offset = "0x48")]
[Token(Token = "0x4001325")]
private byte[] _OutputBuffer;
// Token: 0x04001326 RID: 4902
[global::Cpp2IlInjected.FieldOffset(Offset = "0x50")]
[Token(Token = "0x4001326")]
private int _OutputBufferIndex;
// Token: 0x04001327 RID: 4903
[global::Cpp2IlInjected.FieldOffset(Offset = "0x54")]
[Token(Token = "0x4001327")]
private int _OutputBlockSize;
// Token: 0x04001328 RID: 4904
[global::Cpp2IlInjected.FieldOffset(Offset = "0x58")]
[Token(Token = "0x4001328")]
private CryptoStreamMode _transformMode;
// Token: 0x04001329 RID: 4905
[global::Cpp2IlInjected.FieldOffset(Offset = "0x5C")]
[Token(Token = "0x4001329")]
private bool _canRead;
// Token: 0x0400132A RID: 4906
[global::Cpp2IlInjected.FieldOffset(Offset = "0x5D")]
[Token(Token = "0x400132A")]
private bool _canWrite;
// Token: 0x0400132B RID: 4907
[global::Cpp2IlInjected.FieldOffset(Offset = "0x5E")]
[Token(Token = "0x400132B")]
private bool _finalBlockTransformed;
// Token: 0x020003DF RID: 991
[Token(Token = "0x20003DF")]
private struct HopToThreadPoolAwaitable : INotifyCompletion
{
// Token: 0x0600216F RID: 8559 RVA: 0x000148B0 File Offset: 0x00012AB0
[Token(Token = "0x600216F")]
[Address(RVA = "0x60EA40", Offset = "0x60D840", VA = "0x18060EA40")]
public CryptoStream.HopToThreadPoolAwaitable GetAwaiter()
{
return default(CryptoStream.HopToThreadPoolAwaitable);
}
// Token: 0x17000495 RID: 1173
// (get) Token: 0x06002170 RID: 8560 RVA: 0x000148C8 File Offset: 0x00012AC8
[Token(Token = "0x17000495")]
public bool IsCompleted
{
[Token(Token = "0x6002170")]
[Address(RVA = "0x403930", Offset = "0x402730", VA = "0x180403930")]
get
{
return default(bool);
}
}
// Token: 0x06002171 RID: 8561 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002171")]
[Address(RVA = "0x298F680", Offset = "0x298E480", VA = "0x18298F680", Slot = "4")]
public void OnCompleted(Action continuation)
{
}
// Token: 0x06002172 RID: 8562 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002172")]
[Address(RVA = "0x402080", Offset = "0x400E80", VA = "0x180402080")]
public void GetResult()
{
}
}
}
}