Closed epoberezkin closed 2 years ago
Hi,
Sorry for not commenting earlier, I was away until midweek.
Thanks for reporting this issue, release 3.4.0-rc2 should fix it for you.
Let me know how you go.
I'll do a non candidate release in a day or so should all be well.
MW
Great, thank you for fixing it!
Btw, I was already using this fork that improves OAEP: https://github.com/bcgit/pc-dart/pull/98
Any chance we could merge it in - it seems completely backwards compatible to me and maybe only misses some docs…
@mwcw It would be great to connect, because to me the issues we were encountering with cryptography were the main concern to use Flutter/Dart as a platform for our simplex.chat mobile app, but maybe if we could put some efforts to addressing any issues we can encounter going forward it might be viable still…
Example to reproduce is below. Sorry it's 4096 bytes block, occasionally, depending on the data, the difference starts in the beginning of the block, but usually it is closer to the end of the block...
expectedH
is the encryption result produced by Haskell cryptonite library, it consistently matches the result from JS webcrypto. pointycastle result consistently does not match both webcrypto and cryptonite, in this case starting from the byte 3776 out of 4096, but it depends on the data being encrypted.