1 write to _symmetricAlgorithmBlockSizeInBytes
Microsoft.AspNetCore.DataProtection (1)
Managed\ManagedAuthenticatedEncryptor.cs (1)
50
_symmetricAlgorithmBlockSizeInBytes
= symmetricAlgorithm.GetBlockSizeInBytes();
10 references to _symmetricAlgorithmBlockSizeInBytes
Microsoft.AspNetCore.DataProtection (10)
Managed\ManagedAuthenticatedEncryptor.cs (10)
63
AlgorithmAssert.IsAllowableSymmetricAlgorithmBlockSize(checked((uint)
_symmetricAlgorithmBlockSizeInBytes
* 8));
82
+
_symmetricAlgorithmBlockSizeInBytes
/* ciphertext of encrypted empty string */
93
BitHelpers.WriteTo(retVal, ref idx,
_symmetricAlgorithmBlockSizeInBytes
);
115
rgbIV: new byte[
_symmetricAlgorithmBlockSizeInBytes
]))
118
CryptoUtil.Assert(ciphertext != null && ciphertext.Length ==
_symmetricAlgorithmBlockSizeInBytes
, "ciphertext != null && ciphertext.Length == _symmetricAlgorithmBlockSizeInBytes");
123
idx +=
_symmetricAlgorithmBlockSizeInBytes
;
165
if (protectedPayload.Count < checked(KEY_MODIFIER_SIZE_IN_BYTES +
_symmetricAlgorithmBlockSizeInBytes
+ _validationAlgorithmDigestLengthInBytes))
186
ciphertextOffset = ivOffset +
_symmetricAlgorithmBlockSizeInBytes
;
190
var iv = new byte[
_symmetricAlgorithmBlockSizeInBytes
];
293
var iv = _genRandom.GenRandom(
_symmetricAlgorithmBlockSizeInBytes
);