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