-
Notifications
You must be signed in to change notification settings - Fork 114
Crypto: implement TweetNaCl via Crypto++, remove SUPERCOP (ref10) #909
Conversation
Unit test passes. This is most likely because, according to the spec, I2P requires 32byte sk buffer (I hate I2P) but, if 32byte sk were the case, then nothing should work... Certainly, a quick look at the identity code isn't helpful (#366) either. TBD. Update: note as to why 32byte sk buffer, the java implementation appears to take a lazy approach to interop'ing with pre-hashed ed25519 for their offline signing (see If they enforce 32byte sk buffer in place of pure ed25519 for purely implementation reasons and not coherent mathematical reasons, then [insert rage comment]. I'll need more time to confirm (after I return next week). |
Just ran this branch in the Docker testnet, and Kovri exited with the following errors:
Tracking down the cause of the assertion firing, but wanted to leave this here in case it's helpful. |
Just made a PR to your branch, anonimal/kovri#4 with updates that resolves the failed assertion. After applying those patches, rebasing on current master, and resolving some merge conflicts, this branch passes all the live tests. I was able to connect to a server tunnel, and use the IRC + HTTP proxies. Everything looks good to me, unless there was another client destination test you ran that was failing. Update: ironically, shortly after posting this comment, the router's NetDb stalled with |
This should allow users to convert a ed25519 seret key to a public key without rolling their own code
weidai11/cryptopp#668 The fix is useful for implementations whose interface can't clobber the existing sk buffer (or *must* re-use the privkey). We require both. Thanks to noloader for the assistance. Referencing monero-project#909.
Also re-introduces the crypto namespace (lifetime TBD), and implements SecByteBlock (see monero-project#784). Thanks to noloader for the assistance. Referencing monero-project#909. Resolves monero-project#485. Closes monero-project#345.
Also re-introduces the crypto namespace (lifetime TBD), and implements SecByteBlock (see monero-project#784). Thanks to noloader for the assistance. Referencing monero-project#909. Resolves monero-project#485. Closes monero-project#345.
I've closed that PR because this PR resolves that issue (safer than what you were proposing).
Unrelated to this PR. I've seen it without this PR. |
Live tests pass. This PR should be ready to merge. Thank you very much to @noloader for his assistance in weidai11/cryptopp#668. I've credited him in the git log. |
By submitting this pull-request, I confirm the following:
See git-log for details. References anonimal/cryptopp@caa06bf and #784. Resolves #485. Closes #345.