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