1 write to _symmetricAlgorithmBlockSizeInBytes
Microsoft.AspNetCore.DataProtection (1)
Managed\ManagedAuthenticatedEncryptor.cs (1)
55
_symmetricAlgorithmBlockSizeInBytes
= symmetricAlgorithm.GetBlockSizeInBytes();
13 references to _symmetricAlgorithmBlockSizeInBytes
Microsoft.AspNetCore.DataProtection (13)
Managed\ManagedAuthenticatedEncryptor.cs (13)
68
AlgorithmAssert.IsAllowableSymmetricAlgorithmBlockSize(checked((uint)
_symmetricAlgorithmBlockSizeInBytes
* 8));
82
if (ciphertext.Length < checked(KEY_MODIFIER_SIZE_IN_BYTES +
_symmetricAlgorithmBlockSizeInBytes
+ _validationAlgorithmDigestLengthInBytes))
88
var estimatedDecryptedSize = ciphertext.Length - (KEY_MODIFIER_SIZE_IN_BYTES +
_symmetricAlgorithmBlockSizeInBytes
+ _validationAlgorithmDigestLengthInBytes);
96
var ciphertextOffset = ivOffset +
_symmetricAlgorithmBlockSizeInBytes
;
142
var iv = ciphertext.Slice(ivOffset,
_symmetricAlgorithmBlockSizeInBytes
);
175
var ivLength =
_symmetricAlgorithmBlockSizeInBytes
;
289
var outputSize = KEY_MODIFIER_SIZE_IN_BYTES +
_symmetricAlgorithmBlockSizeInBytes
/* IV */ + cipherTextLength + _validationAlgorithmDigestLengthInBytes /* MAC */;
473
var outputSize = protectedPayload.Count - (KEY_MODIFIER_SIZE_IN_BYTES +
_symmetricAlgorithmBlockSizeInBytes
+ _validationAlgorithmDigestLengthInBytes);
605
+
_symmetricAlgorithmBlockSizeInBytes
/* ciphertext of encrypted empty string */
616
BitHelpers.WriteTo(retVal, ref idx,
_symmetricAlgorithmBlockSizeInBytes
);
639
rgbIV: new byte[
_symmetricAlgorithmBlockSizeInBytes
]))
642
CryptoUtil.Assert(ciphertext != null && ciphertext.Length ==
_symmetricAlgorithmBlockSizeInBytes
, "ciphertext != null && ciphertext.Length == _symmetricAlgorithmBlockSizeInBytes");
647
idx +=
_symmetricAlgorithmBlockSizeInBytes
;