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