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