Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ TransformBlock() [3/3]

int Internal.Cryptography.UniversalCryptoTransform.TransformBlock ( byte[] inputBuffer,
int inputOffset,
int inputCount,
byte[] outputBuffer,
int outputOffset )
inlineinherited

Implements System.Security.Cryptography.ICryptoTransform.

Definition at line 43 of file UniversalCryptoTransform.cs.

44 {
45 if (inputBuffer == null)
46 {
47 throw new ArgumentNullException("inputBuffer");
48 }
49 if (inputOffset < 0)
50 {
51 throw new ArgumentOutOfRangeException("inputOffset");
52 }
53 if (inputOffset > inputBuffer.Length)
54 {
55 throw new ArgumentOutOfRangeException("inputOffset");
56 }
57 if (inputCount <= 0)
58 {
59 throw new ArgumentOutOfRangeException("inputCount");
60 }
61 if (inputCount % InputBlockSize != 0)
62 {
64 }
65 if (inputCount > inputBuffer.Length - inputOffset)
66 {
68 }
69 if (outputBuffer == null)
70 {
71 throw new ArgumentNullException("outputBuffer");
72 }
73 if (outputOffset > outputBuffer.Length)
74 {
75 throw new ArgumentOutOfRangeException("outputOffset");
76 }
77 if (inputCount > outputBuffer.Length - outputOffset)
78 {
80 }
81 return UncheckedTransformBlock(inputBuffer, inputOffset, inputCount, outputBuffer, outputOffset);
82 }
int UncheckedTransformBlock(byte[] inputBuffer, int inputOffset, int inputCount, byte[] outputBuffer, int outputOffset)
static string Cryptography_TransformBeyondEndOfBuffer
Definition SR.cs:144
static string Cryptography_MustTransformWholeBlock
Definition SR.cs:118
Definition SR.cs:7

References System.SR.Cryptography_MustTransformWholeBlock, System.SR.Cryptography_TransformBeyondEndOfBuffer, Internal.Cryptography.UniversalCryptoTransform.InputBlockSize, and Internal.Cryptography.UniversalCryptoTransform.UncheckedTransformBlock().