1 write to _symmetricAlgorithmBlockSizeInBytes
Microsoft.AspNetCore.DataProtection (1)
Cng\CbcAuthenticatedEncryptor.cs (1)
45
_symmetricAlgorithmBlockSizeInBytes
= symmetricAlgorithmHandle.GetCipherBlockLength();
23 references to _symmetricAlgorithmBlockSizeInBytes
Microsoft.AspNetCore.DataProtection (23)
Cng\CbcAuthenticatedEncryptor.cs (23)
52
AlgorithmAssert.IsAllowableSymmetricAlgorithmBlockSize(checked(
_symmetricAlgorithmBlockSizeInBytes
* 8));
68
+
_symmetricAlgorithmBlockSizeInBytes
/* ciphertext of encrypted empty string */
81
BitHelpers.WriteTo(ref ptr,
_symmetricAlgorithmBlockSizeInBytes
);
112
fixed (byte* pbIV = new byte[
_symmetricAlgorithmBlockSizeInBytes
] /* will be zero-initialized */)
120
cbOutput:
_symmetricAlgorithmBlockSizeInBytes
);
123
ptr +=
_symmetricAlgorithmBlockSizeInBytes
;
147
if (cbCiphertext < checked(KEY_MODIFIER_SIZE_IN_BYTES +
_symmetricAlgorithmBlockSizeInBytes
+ _hmacAlgorithmDigestLengthInBytes))
154
var cbEncryptedData = checked(cbCiphertext - (KEY_MODIFIER_SIZE_IN_BYTES +
_symmetricAlgorithmBlockSizeInBytes
+ _hmacAlgorithmDigestLengthInBytes));
159
byte* pbEncryptedData = &pbIV[
_symmetricAlgorithmBlockSizeInBytes
];
186
if (!ValidateHash(hashHandle, pbIV,
_symmetricAlgorithmBlockSizeInBytes
+ cbEncryptedData, pbActualHmac))
217
byte* pbClonedIV = stackalloc byte[checked((int)
_symmetricAlgorithmBlockSizeInBytes
)];
218
UnsafeBufferUtil.BlockCopy(from: pbIV, to: pbClonedIV, byteCount:
_symmetricAlgorithmBlockSizeInBytes
);
233
cbIV:
_symmetricAlgorithmBlockSizeInBytes
,
253
cbIV:
_symmetricAlgorithmBlockSizeInBytes
,
281
byte* pbClonedIV = stackalloc byte[checked((int)
_symmetricAlgorithmBlockSizeInBytes
)];
282
UnsafeBufferUtil.BlockCopy(from: pbIV, to: pbClonedIV, byteCount:
_symmetricAlgorithmBlockSizeInBytes
);
291
cbIV:
_symmetricAlgorithmBlockSizeInBytes
,
312
var cbKeyModifierAndIV = checked(KEY_MODIFIER_SIZE_IN_BYTES +
_symmetricAlgorithmBlockSizeInBytes
);
341
var retVal = new byte[checked(cbPreBuffer + KEY_MODIFIER_SIZE_IN_BYTES +
_symmetricAlgorithmBlockSizeInBytes
+ cbOutputCiphertext + _hmacAlgorithmDigestLengthInBytes + cbPostBuffer)];
347
byte* pbOutputCiphertext = &pbOutputIV[
_symmetricAlgorithmBlockSizeInBytes
];
372
cbInput: checked(
_symmetricAlgorithmBlockSizeInBytes
+ cbOutputCiphertext),
393
byte* pbIV = stackalloc byte[checked((int)
_symmetricAlgorithmBlockSizeInBytes
)];
404
cbIV:
_symmetricAlgorithmBlockSizeInBytes
,