5 references to GetCipherBlockLength
Microsoft.AspNetCore.Cryptography.Internal.Tests (1)
Cng\CachedAlgorithmHandlesTests.cs (1)
117Assert.Equal((uint)(128 / 8), algorithmHandle.GetCipherBlockLength());
Microsoft.AspNetCore.DataProtection (4)
AuthenticatedEncryption\CngCbcAuthenticatedEncryptorFactory.cs (1)
131AlgorithmAssert.IsAllowableSymmetricAlgorithmBlockSize(checked(algorithmHandle.GetCipherBlockLength() * 8));
AuthenticatedEncryption\CngGcmAuthenticatedEncryptorFactory.cs (1)
97CryptoUtil.Assert(algorithmHandle.GetCipherBlockLength() == 128 / 8, "GCM requires a block cipher algorithm with a 128-bit block size.");
Cng\CbcAuthenticatedEncryptor.cs (1)
45_symmetricAlgorithmBlockSizeInBytes = symmetricAlgorithmHandle.GetCipherBlockLength();
Cng\CngGcmAuthenticatedEncryptor.cs (1)
44CryptoUtil.Assert(symmetricAlgorithmHandle.GetCipherBlockLength() == 128 / 8, "GCM requires a block cipher algorithm with a 128-bit block size.");