11 references to AlgorithmAssert
Microsoft.AspNetCore.DataProtection (11)
AuthenticatedEncryption\CngCbcAuthenticatedEncryptorFactory.cs (3)
94
AlgorithmAssert
.IsAllowableValidationAlgorithmDigestSize(checked(digestSize * 8));
131
AlgorithmAssert
.IsAllowableSymmetricAlgorithmBlockSize(checked(algorithmHandle.GetCipherBlockLength() * 8));
132
AlgorithmAssert
.IsAllowableSymmetricAlgorithmKeySize(checked((uint)configuration.EncryptionAlgorithmKeySize));
AuthenticatedEncryption\CngGcmAuthenticatedEncryptorFactory.cs (1)
98
AlgorithmAssert
.IsAllowableSymmetricAlgorithmKeySize(checked((uint)configuration.EncryptionAlgorithmKeySize));
Cng\CbcAuthenticatedEncryptor.cs (3)
52
AlgorithmAssert
.IsAllowableSymmetricAlgorithmBlockSize(checked(_symmetricAlgorithmBlockSizeInBytes * 8));
53
AlgorithmAssert
.IsAllowableSymmetricAlgorithmKeySize(checked(_symmetricAlgorithmSubkeyLengthInBytes * 8));
54
AlgorithmAssert
.IsAllowableValidationAlgorithmDigestSize(checked(_hmacAlgorithmDigestLengthInBytes * 8));
Cng\CngGcmAuthenticatedEncryptor.cs (1)
43
AlgorithmAssert
.IsAllowableSymmetricAlgorithmKeySize(checked(symmetricAlgorithmKeySizeInBytes * 8));
Managed\ManagedAuthenticatedEncryptor.cs (3)
63
AlgorithmAssert
.IsAllowableSymmetricAlgorithmBlockSize(checked((uint)_symmetricAlgorithmBlockSizeInBytes * 8));
64
AlgorithmAssert
.IsAllowableSymmetricAlgorithmKeySize(checked((uint)_symmetricAlgorithmSubkeyLengthInBytes * 8));
65
AlgorithmAssert
.IsAllowableValidationAlgorithmDigestSize(checked((uint)_validationAlgorithmDigestLengthInBytes * 8));