omq-curve 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/omq/curve/version.rb +1 -1
- data/lib/omq/zmtp/mechanism/curve.rb +6 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 320bd39874679cadea5a673ee44625ad9d6e20e0835728c51657b7dc12c979f4
|
|
4
|
+
data.tar.gz: 2e5428680c0512a4d890bb54954603208c005dba013df41329a277938c055bae
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 35d767569e5cd76b7ad8029ceb0335db861e5ecf9ccf7f07102601969fd35969f6ac1f2e741c9d4862355a07b81ab50b2543c5c3214f67d54ab1d798363efad8
|
|
7
|
+
data.tar.gz: ed45da6fd7c222347a51ec3869c5bc4abf4e836572868314ea47fe4ed6dd65d4a1fb80615f4ddbea476933969cad4ca6f10a04459a0f089c4105184d96ef3dcd
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.2 — 2026-03-26
|
|
4
|
+
|
|
5
|
+
### Improved
|
|
6
|
+
|
|
7
|
+
- Inline frame wire encoding in encrypt, bypassing `Frame.new.to_wire`
|
|
8
|
+
and its `IO::Buffer` allocation — especially helps larger messages
|
|
9
|
+
(4KB TCP: +87% vs v0.2.0)
|
|
10
|
+
|
|
3
11
|
## 0.2.1 — 2026-03-26
|
|
4
12
|
|
|
5
13
|
### Improved
|
data/lib/omq/curve/version.rb
CHANGED
|
@@ -134,7 +134,12 @@ module OMQ
|
|
|
134
134
|
short_nonce = nonce.byteslice(16, 8)
|
|
135
135
|
|
|
136
136
|
msg_body = "\x07MESSAGE".b + short_nonce + ciphertext
|
|
137
|
-
|
|
137
|
+
size = msg_body.bytesize
|
|
138
|
+
if size > 255
|
|
139
|
+
"\x02".b + [size].pack("Q>") + msg_body
|
|
140
|
+
else
|
|
141
|
+
"\x00".b + size.chr.b + msg_body
|
|
142
|
+
end
|
|
138
143
|
end
|
|
139
144
|
|
|
140
145
|
# Decrypts a CurveZMQ MESSAGE command into a Frame.
|