go-zeromq / zmq4

[WIP] Pure-Go implementation of ZeroMQ-4
BSD 3-Clause "New" or "Revised" License
344 stars 57 forks source link

Implement alternative security #134

Open dustinb opened 2 years ago

dustinb commented 2 years ago

Found that encrypting the body before the headers and size are calculated makes implementing an alternate security much easier.

dustinb commented 2 years ago

I was looking at implementing a curve type security mechanism. Not bad is a made up security. I struggled with this because the frame size is calculated before Encrypt is called.

I should clean this PR up and possibly implement curve and see if I run into the same issue