10 references to ThrowsCryptographicException
Microsoft.AspNetCore.DataProtection.Tests (10)
KeyManagement\KeyRingBasedDataProtectorTests.cs (10)
135
var ex = ExceptionAssert2.
ThrowsCryptographicException
(() => protector.Protect(new byte[0]));
167
var ex = ExceptionAssert2.
ThrowsCryptographicException
(() => protector.Unprotect(badProtectedPayload));
185
var ex = ExceptionAssert2.
ThrowsCryptographicException
(() => protector.Unprotect(badProtectedPayload));
203
var ex = ExceptionAssert2.
ThrowsCryptographicException
(() => protector.Unprotect(badProtectedPayload));
234
var ex = ExceptionAssert2.
ThrowsCryptographicException
(() => protector.Unprotect(protectedData));
287
var ex = ExceptionAssert2.
ThrowsCryptographicException
(() => protector.Unprotect(protectedData));
323
var ex = ExceptionAssert2.
ThrowsCryptographicException
(() => protector.Unprotect(protectedData));
421
var ex = ExceptionAssert2.
ThrowsCryptographicException
(() => protector.Unprotect(protectedData));
762
var ex = ExceptionAssert2.
ThrowsCryptographicException
(() => protector.Unprotect(shortCiphertext, ref destination));
783
var ex = ExceptionAssert2.
ThrowsCryptographicException
(() => protector.Unprotect(new byte[10], ref buffer));