<div dir="auto"><div>Thanks! Yes, cacophony and snow's multipsk set.<br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Trevor Perrin <<a href="mailto:trevp@trevp.net" rel="noreferrer noreferrer" target="_blank">trevp@trevp.net</a>> schrieb am Do., 18. Apr. 2019, 05:46:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Nice!, looks very clean, and you're doing some interesting things with<br>
handling modifiers programmatically.<br>
<br>
I've added it to Wiki:<br>
<br>
<a href="https://github.com/noiseprotocol/noise_wiki/wiki" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">https://github.com/noiseprotocol/noise_wiki/wiki</a><br>
<br>
It appears you're passing the cacophony test vectors? Given that, our<br>
typical process is to let people review and test for a couple months<br>
to make sure it's mature, and then link it from the main<br>
<a href="http://noiseprotocol.org" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">noiseprotocol.org</a> website, so that seems like a good approach here.<br>
<br>
Trevor<br>
<br>
On Wed, Apr 17, 2019 at 1:31 PM Tarek Galal <<a href="mailto:tare2.galal@gmail.com" rel="noreferrer noreferrer noreferrer" target="_blank">tare2.galal@gmail.com</a>> wrote:<br>
><br>
> Hi Noise,<br>
><br>
> I published dissononce; a python implementation for Noise based on revision 34. I'm aware of Piotr's also python implementation, which is great and a very helpful reference. However I had a slightly different idea for what a python implementation for Noise could look like.<br>
><br>
> - I went for pushing and preferring a more verbose composition-style of Noise Protocols rather than resolving using string names.<br>
> - It's intended by this implementation to also be a simple to understand practical reference to Noise spec, therefore the library tries to segregate Noise spec implementation from any own features of the lib.<br>
> - A verbose package structure to ease navigation for someone learning about Noise.<br>
> - Implementations for crypto algorithms are organized under stable/experimental/dangerous categories.<br>
> - Flexible Pattern modifiers; a Pattern Modifier modifies a given Handshake Pattern rather than a Handshake Pattern modifying itself based on a given Pattern Modifier's name.<br>
> - Access to underlying crypto primitives and providers is abstracted, resulting in crypto backend flexibility where an explicitly defined backend is unnecessary.<br>
> - No limitations imposed by the library itself on supported python versions. It's up to underlying dependencies which at the moment happily work on python 2.5-3.7<br>
><br>
> code on github: <a href="https://github.com/tgalal/dissononce" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">https://github.com/tgalal/dissononce</a><br>
> published on pypi: <a href="https://pypi.org/project/dissononce" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">https://pypi.org/project/dissononce</a><br>
><br>
> Side note: I think the concepts of defining, modifying and processing tokens could be done in a kind of more "autonomous" way where a defined token also has some associated "token processor" defined. The token processor is then what takes care of updating the HandshakeState depending on the token's meaning. This kind of separation between token processing and HandshakeState could allow for flexibility adopting new (and experimental) tokens, even those which don't officially exist Noise spec, without having to diverge HandshakeState implementations from the official spec in order to include processing rules for those tokens. Implementation-wise I'm still thinking of the How as this might introduce complexities understanding the code which I'd like to avoid. Anyways, only an idea for now.<br>
><br>
> Finally a question; I was trying to plug in a DH functions implementation based on pynacl when I found that the shared secrets it calculates are not consistent with those produced by cryptography lib (uses OpenSSL v1.1 as backend I believe) for the same keypairs and of course fail the tests. I'm not a cryptographer myself so it's a bit hard to pin point the exact reason. This is pynacl's docs about shared secrets which fail and this is cryptography's key exchange docs which succeed the tests. I'd appreciate any hints as it would be great if I could consider this in dissononce's design and docs.<br>
><br>
> Feedback is very welcome, thanks!<br>
><br>
><br>
> _______________________________________________<br>
> Noise mailing list<br>
> <a href="mailto:Noise@moderncrypto.org" rel="noreferrer noreferrer noreferrer" target="_blank">Noise@moderncrypto.org</a><br>
> <a href="https://moderncrypto.org/mailman/listinfo/noise" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">https://moderncrypto.org/mailman/listinfo/noise</a><br>
</blockquote></div>
</div></div>