Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. c = CipherUtilities.GetCipher("RSA/NONE/OAEPWithSHA1AndMGF1Padding");
  2. c.Init(false, privKey);
  3. outBytes = c.DoFinal(outBytes);
  4. if (!AreEqual(outBytes, input))
  5. {
  6. Fail("OAEP test failed on decrypt expected " + Hex.ToHexString(input) + " got " + Hex.ToHexString(outBytes));
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement