10 references to ThrowsCryptographicException
Microsoft.AspNetCore.DataProtection.Tests (10)
KeyManagement\KeyRingBasedDataProtectorTests.cs (10)
128
var ex = ExceptionAssert2.
ThrowsCryptographicException
(() => protector.Protect(new byte[0]));
160
var ex = ExceptionAssert2.
ThrowsCryptographicException
(() => protector.Unprotect(badProtectedPayload));
178
var ex = ExceptionAssert2.
ThrowsCryptographicException
(() => protector.Unprotect(badProtectedPayload));
196
var ex = ExceptionAssert2.
ThrowsCryptographicException
(() => protector.Unprotect(badProtectedPayload));
227
var ex = ExceptionAssert2.
ThrowsCryptographicException
(() => protector.Unprotect(protectedData));
280
var ex = ExceptionAssert2.
ThrowsCryptographicException
(() => protector.Unprotect(protectedData));
316
var ex = ExceptionAssert2.
ThrowsCryptographicException
(() => protector.Unprotect(protectedData));
414
var ex = ExceptionAssert2.
ThrowsCryptographicException
(() => protector.Unprotect(protectedData));
754
var ex = ExceptionAssert2.
ThrowsCryptographicException
(() => protector.Unprotect(shortCiphertext, ref destination));
775
var ex = ExceptionAssert2.
ThrowsCryptographicException
(() => protector.Unprotect(new byte[10], ref buffer));