12 references to CryptoUtil
Microsoft.AspNetCore.Cryptography.Internal (12)
Cng\BCRYPT_KEY_LENGTHS_STRUCT.cs (1)
27CryptoUtil.Assert(keyLengthInBits % 8 == 0, "keyLengthInBits % 8 == 0");
SafeHandles\BCryptAlgorithmHandle.cs (9)
34CryptoUtil.AssertSafeHandleIsValid(retVal); 57CryptoUtil.AssertSafeHandleIsValid(retVal); 72CryptoUtil.Assert(byteLengthOfNameWithTerminatingNull % sizeof(char) == 0 && byteLengthOfNameWithTerminatingNull > sizeof(char) && byteLengthOfNameWithTerminatingNull <= StackAllocCharSize * sizeof(char), "byteLengthOfNameWithTerminatingNull % sizeof(char) == 0 && byteLengthOfNameWithTerminatingNull > sizeof(char) && byteLengthOfNameWithTerminatingNull <= StackAllocCharSize * sizeof(char)"); 82CryptoUtil.Assert(numBytesCopied == byteLengthOfNameWithTerminatingNull, "numBytesCopied == byteLengthOfNameWithTerminatingNull"); 93CryptoUtil.Assert(numBytesCopied == sizeof(uint), "numBytesCopied == sizeof(uint)"); 104CryptoUtil.Assert(numBytesCopied == sizeof(uint), "numBytesCopied == sizeof(uint)"); 115CryptoUtil.Assert(numBytesCopied == sizeof(BCRYPT_KEY_LENGTHS_STRUCT), "numBytesCopied == sizeof(BCRYPT_KEY_LENGTHS_STRUCT)"); 126CryptoUtil.Assert(numBytesCopied == sizeof(uint), "numBytesCopied == sizeof(uint)"); 148CryptoUtil.AssertSafeHandleIsValid(algHandle);
SafeHandles\BCryptHashHandle.cs (1)
23CryptoUtil.AssertSafeHandleIsValid(duplicateHandle);
SafeHandles\NCryptDescriptorHandle.cs (1)
28CryptoUtil.AssertSafeHandleIsValid(ruleStringHandle);