Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- c = CipherUtilities.GetCipher("RSA/NONE/OAEPWithSHA1AndMGF1Padding");
- c.Init(false, privKey);
- outBytes = c.DoFinal(outBytes);
- if (!AreEqual(outBytes, input))
- {
- Fail("OAEP test failed on decrypt expected " + Hex.ToHexString(input) + " got " + Hex.ToHexString(outBytes));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement