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
{
/// Defines a stream that links data streams to cryptographic transformations.
// Token: 0x020003DE RID: 990
[Token(Token = "0x20003DE")]
[ComVisible(true)]
public class CryptoStream : Stream, IDisposable
{
/// Initializes a new instance of the class with a target data stream, the transformation to use, and the mode of the stream.
/// The stream on which to perform the cryptographic transformation.
/// The cryptographic transformation that is to be performed on the stream.
/// One of the values.
///
/// is invalid.
// 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)
{
}
/// Gets a value indicating whether the current is readable.
///
/// if the current stream is readable; otherwise, .
// 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);
}
}
/// Gets a value indicating whether you can seek within the current .
/// Always .
// 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);
}
}
/// Gets a value indicating whether the current is writable.
///
/// if the current stream is writable; otherwise, .
// 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);
}
}
/// Gets the length in bytes of the stream.
/// This property is not supported.
/// This property is not supported.
// 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;
}
}
/// Gets or sets the position within the current stream.
/// This property is not supported.
/// This property is not supported.
// 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
{
}
}
/// Gets a value indicating whether the final buffer block has been written to the underlying stream.
///
/// if the final block has been flushed; otherwise, .
// 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);
}
}
/// Updates the underlying data source or repository with the current state of the buffer, then clears the buffer.
/// The key is corrupt which can cause invalid padding to the stream.
/// The current stream is not writable.
/// -or-
/// The final block has already been transformed.
// Token: 0x06002161 RID: 8545 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x6002161")]
[Address(RVA = "0x298DB20", Offset = "0x298C920", VA = "0x18298DB20")]
public void FlushFinalBlock()
{
}
/// Clears all buffers for the current stream and causes any buffered data to be written to the underlying device.
// 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()
{
}
/// Clears all buffers for the current stream asynchronously, causes any buffered data to be written to the underlying device, and monitors cancellation requests.
/// The token to monitor for cancellation requests. The default value is .
/// A task that represents the asynchronous flush operation.
/// The stream has been disposed.
// 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;
}
/// Sets the position within the current stream.
/// A byte offset relative to the parameter.
/// A object indicating the reference point used to obtain the new position.
/// This method is not supported.
/// This method is not supported.
// 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;
}
/// Sets the length of the current stream.
/// The desired length of the current stream in bytes.
/// This property exists only to support inheritance from , and cannot be used.
// 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)
{
}
/// Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.
/// An array of bytes. A maximum of bytes are read from the current stream and stored in .
/// The byte offset in at which to begin storing the data read from the current stream.
/// The maximum number of bytes to be read from the current stream.
/// 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.
/// The associated with current object does not match the underlying stream. For example, this exception is thrown when using with an underlying stream that is write only.
/// The parameter is less than zero.
/// -or-
/// The parameter is less than zero.
/// Thesum of the and parameters is longer than the length of the buffer.
// 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;
}
/// 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.
/// The buffer to write the data into.
/// The byte offset in at which to begin writing data from the stream.
/// The maximum number of bytes to read.
/// The token to monitor for cancellation requests. The default value is .
/// A task that represents the asynchronous read operation. The value of the task object's 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.
///
/// is .
///
/// or is negative.
/// The sum of and is larger than the buffer length.
/// The stream does not support reading.
/// The stream has been disposed.
/// The stream is currently in use by a previous read operation.
// Token: 0x06002167 RID: 8551 RVA: 0x00002082 File Offset: 0x00000282
[Token(Token = "0x6002167")]
[Address(RVA = "0x298DEB0", Offset = "0x298CCB0", VA = "0x18298DEB0", Slot = "21")]
public override Task 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 ReadAsyncInternal(byte[] buffer, int offset, int count, CancellationToken cancellationToken)
{
return null;
}
/// Writes a sequence of bytes to the current and advances the current position within the stream by the number of bytes written.
/// An array of bytes. This method copies bytes from to the current stream.
/// The byte offset in at which to begin copying bytes to the current stream.
/// The number of bytes to be written to the current stream.
/// The associated with current object does not match the underlying stream. For example, this exception is thrown when using with an underlying stream that is read only.
/// The parameter is less than zero.
/// -or-
/// The parameter is less than zero.
/// The sum of the and parameters is longer than the length of the buffer.
// 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)
{
}
/// 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.
/// The buffer to write data from.
/// The zero-based byte offset in from which to begin writing bytes to the stream.
/// The maximum number of bytes to write.
/// The token to monitor for cancellation requests. The default value is .
/// A task that represents the asynchronous write operation.
///
/// is .
///
/// or is negative.
/// The sum of and is larger than the buffer length.
/// The stream does not support writing.
/// The stream has been disposed.
/// The stream is currently in use by a previous write operation.
// 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;
}
/// Releases all resources used by the .
// Token: 0x0600216C RID: 8556 RVA: 0x00002050 File Offset: 0x00000250
[Token(Token = "0x600216C")]
[Address(RVA = "0x579920", Offset = "0x578720", VA = "0x180579920")]
public void Clear()
{
}
/// Releases the unmanaged resources used by the and optionally releases the managed resources.
///
/// to release both managed and unmanaged resources; to release only unmanaged resources.
// 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()
{
}
}
}
}