2 writes to m_depadBuffer
System.Core (2)
System\Security\Cryptography\CapiSymmetricAlgorithm.cs (2)
138
m_depadBuffer
= new byte[InputBlockSize];
466
m_depadBuffer
= null;
25 references to m_depadBuffer
System.Core (25)
System\Security\Cryptography\CapiSymmetricAlgorithm.cs (25)
88
Contract.Ensures(
m_depadBuffer
== null);
98
if (
m_depadBuffer
!= null) {
99
Array.Clear(
m_depadBuffer
, 0,
m_depadBuffer
.Length);
113
Contract.Requires(
m_depadBuffer
== null || (m_paddingMode != PaddingMode.None && m_paddingMode != PaddingMode.Zeros));
130
if (
m_depadBuffer
!= null) {
131
int depadDecryptLength = RawDecryptBlocks(
m_depadBuffer
, 0,
m_depadBuffer
.Length);
132
Buffer.BlockCopy(
m_depadBuffer
, 0, outputBuffer, outputOffset, depadDecryptLength);
133
Array.Clear(
m_depadBuffer
, 0,
m_depadBuffer
.Length);
142
Debug.Assert(inputCount >=
m_depadBuffer
.Length, "inputCount >= m_depadBuffer.Length");
144
inputOffset + inputCount -
m_depadBuffer
.Length,
145
m_depadBuffer
,
147
m_depadBuffer
.Length);
148
inputCount -=
m_depadBuffer
.Length;
428
Contract.Ensures(
m_depadBuffer
== null);
464
if (
m_depadBuffer
!= null) {
465
Array.Clear(
m_depadBuffer
, 0,
m_depadBuffer
.Length);
552
if (
m_depadBuffer
== null) {
557
ciphertext = new byte[
m_depadBuffer
.Length + inputCount];
558
Buffer.BlockCopy(
m_depadBuffer
, 0, ciphertext, 0,
m_depadBuffer
.Length);
559
Buffer.BlockCopy(inputBuffer, inputOffset, ciphertext,
m_depadBuffer
.Length, inputCount);