1 write to _symmetricAlgorithmBlockSizeInBytes
Microsoft.AspNetCore.DataProtection (1)
Managed\ManagedAuthenticatedEncryptor.cs (1)
52
_symmetricAlgorithmBlockSizeInBytes
= symmetricAlgorithm.GetBlockSizeInBytes();
11 references to _symmetricAlgorithmBlockSizeInBytes
Microsoft.AspNetCore.DataProtection (11)
Managed\ManagedAuthenticatedEncryptor.cs (11)
65
AlgorithmAssert.IsAllowableSymmetricAlgorithmBlockSize(checked((uint)
_symmetricAlgorithmBlockSizeInBytes
* 8));
84
+
_symmetricAlgorithmBlockSizeInBytes
/* ciphertext of encrypted empty string */
95
BitHelpers.WriteTo(retVal, ref idx,
_symmetricAlgorithmBlockSizeInBytes
);
118
rgbIV: new byte[
_symmetricAlgorithmBlockSizeInBytes
]))
121
CryptoUtil.Assert(ciphertext != null && ciphertext.Length ==
_symmetricAlgorithmBlockSizeInBytes
, "ciphertext != null && ciphertext.Length == _symmetricAlgorithmBlockSizeInBytes");
126
idx +=
_symmetricAlgorithmBlockSizeInBytes
;
173
if (protectedPayload.Count < checked(KEY_MODIFIER_SIZE_IN_BYTES +
_symmetricAlgorithmBlockSizeInBytes
+ _validationAlgorithmDigestLengthInBytes))
191
ciphertextOffset = ivOffset +
_symmetricAlgorithmBlockSizeInBytes
;
214
: new byte[
_symmetricAlgorithmBlockSizeInBytes
];
254
var iv = protectedPayload.Array.AsSpan(ivOffset,
_symmetricAlgorithmBlockSizeInBytes
);
306
var ivLength =
_symmetricAlgorithmBlockSizeInBytes
;