1 write to _symmetricAlgorithmBlockSizeInBytes
Microsoft.AspNetCore.DataProtection (1)
Cng\CbcAuthenticatedEncryptor.cs (1)
49
_symmetricAlgorithmBlockSizeInBytes
= symmetricAlgorithmHandle.GetCipherBlockLength();
32 references to _symmetricAlgorithmBlockSizeInBytes
Microsoft.AspNetCore.DataProtection (32)
Cng\CbcAuthenticatedEncryptor.cs (32)
56
AlgorithmAssert.IsAllowableSymmetricAlgorithmBlockSize(checked(
_symmetricAlgorithmBlockSizeInBytes
* 8));
69
if (ciphertext.Length < checked(KEY_MODIFIER_SIZE_IN_BYTES +
_symmetricAlgorithmBlockSizeInBytes
+ _hmacAlgorithmDigestLengthInBytes))
74
var cbEncryptedDataLength = checked(ciphertext.Length - (int)(KEY_MODIFIER_SIZE_IN_BYTES +
_symmetricAlgorithmBlockSizeInBytes
+ _hmacAlgorithmDigestLengthInBytes));
83
byte* pbEncryptedData = &pbIV[
_symmetricAlgorithmBlockSizeInBytes
];
110
if (!ValidateHash(hashHandle, pbIV,
_symmetricAlgorithmBlockSizeInBytes
+ (uint)cbEncryptedDataLength, pbActualHmac))
120
byte* pbClonedIV = stackalloc byte[checked((int)
_symmetricAlgorithmBlockSizeInBytes
)];
121
UnsafeBufferUtil.BlockCopy(from: pbIV, to: pbClonedIV, byteCount:
_symmetricAlgorithmBlockSizeInBytes
);
130
cbIV:
_symmetricAlgorithmBlockSizeInBytes
,
141
byte* pbClonedIV2 = stackalloc byte[(int)
_symmetricAlgorithmBlockSizeInBytes
];
142
UnsafeBufferUtil.BlockCopy(from: pbIV, to: pbClonedIV2, byteCount:
_symmetricAlgorithmBlockSizeInBytes
);
154
cbIV:
_symmetricAlgorithmBlockSizeInBytes
,
180
var outputSize = ciphertext.Count - (int)(KEY_MODIFIER_SIZE_IN_BYTES +
_symmetricAlgorithmBlockSizeInBytes
+ _hmacAlgorithmDigestLengthInBytes);
225
byte* pbClonedIV = stackalloc byte[checked((int)
_symmetricAlgorithmBlockSizeInBytes
)];
226
UnsafeBufferUtil.BlockCopy(from: pbIV, to: pbClonedIV, byteCount:
_symmetricAlgorithmBlockSizeInBytes
);
235
cbIV:
_symmetricAlgorithmBlockSizeInBytes
,
249
return checked((int)(KEY_MODIFIER_SIZE_IN_BYTES +
_symmetricAlgorithmBlockSizeInBytes
+ paddedCiphertextLength + _hmacAlgorithmDigestLengthInBytes));
265
var cbKeyModifierAndIV = checked(KEY_MODIFIER_SIZE_IN_BYTES +
_symmetricAlgorithmBlockSizeInBytes
);
305
cbIV:
_symmetricAlgorithmBlockSizeInBytes
,
323
byte* pbOutputCiphertext = &pbOutputIV[
_symmetricAlgorithmBlockSizeInBytes
];
330
byte* pbClonedIV = stackalloc byte[checked((int)
_symmetricAlgorithmBlockSizeInBytes
)];
331
UnsafeBufferUtil.BlockCopy(from: pbIV, to: pbClonedIV, byteCount:
_symmetricAlgorithmBlockSizeInBytes
);
340
cbIV:
_symmetricAlgorithmBlockSizeInBytes
,
354
cbInput: checked(
_symmetricAlgorithmBlockSizeInBytes
+ dwCiphertextSize),
446
byte* pbDummyIV = stackalloc byte[checked((int)
_symmetricAlgorithmBlockSizeInBytes
)];
455
cbIV:
_symmetricAlgorithmBlockSizeInBytes
,
468
byte* pbIV = stackalloc byte[checked((int)
_symmetricAlgorithmBlockSizeInBytes
)];
478
cbIV:
_symmetricAlgorithmBlockSizeInBytes
,
505
+
_symmetricAlgorithmBlockSizeInBytes
/* ciphertext of encrypted empty string */
518
BitHelpers.WriteTo(ref ptr,
_symmetricAlgorithmBlockSizeInBytes
);
549
fixed (byte* pbIV = new byte[
_symmetricAlgorithmBlockSizeInBytes
] /* will be zero-initialized */)
557
cbOutput:
_symmetricAlgorithmBlockSizeInBytes
);
560
ptr +=
_symmetricAlgorithmBlockSizeInBytes
;