asherah 0.8.0 → 0.8.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 +10 -0
- data/ext/asherah/checksums.yml +5 -5
- data/lib/asherah/config.rb +2 -0
- data/lib/asherah/version.rb +1 -1
- data/lib/asherah.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 01e42d9891c75ba54960500d5483ff22dc640c801eea12479aced509c626bad9
|
|
4
|
+
data.tar.gz: f9abbe6b7aeff3afe7bc639cf07baffbaab151a2152d5209dc3cc801293a63f3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d2a80f9cad55fa3f1d0e6b286d148bc5ef394a002419cd1e26953bff7dfce2d6e9cbfdaf6a0070c768c149bf78751fd298c3b9eb5ab07bdfc3ec4e28152aab00
|
|
7
|
+
data.tar.gz: 1c78bc299a90b153610ea43da8b544e780ce61f147e5c1d9e67e6f17cbbb39b38bc7a54b01b1a631c78fdc9a1b729ed2fa73cec230f65535b42662fdf9985872
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
## [Unreleased]
|
|
2
2
|
|
|
3
|
+
## [0.8.2] - 2026-03-09
|
|
4
|
+
|
|
5
|
+
- Upgrade to use asherah-cobhan v0.5.3
|
|
6
|
+
- Add null_data_check configuration option
|
|
7
|
+
|
|
8
|
+
## [0.8.1] - 2026-03-05
|
|
9
|
+
|
|
10
|
+
- Upgrade to use asherah-cobhan v0.5.1
|
|
11
|
+
- Fix buffer undersize from float truncation in estimate_buffer
|
|
12
|
+
|
|
3
13
|
## [0.8.0] - 2026-03-04
|
|
4
14
|
|
|
5
15
|
- Upgrade to use asherah-cobhan v0.5.0
|
data/ext/asherah/checksums.yml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
version: v0.5.
|
|
2
|
-
libasherah-arm64.so:
|
|
3
|
-
libasherah-x64.so:
|
|
4
|
-
libasherah-arm64.dylib:
|
|
5
|
-
libasherah-x64.dylib:
|
|
1
|
+
version: v0.5.3
|
|
2
|
+
libasherah-arm64.so: 9315240c2eb0aafb342ddbd399ada545faf51cbc651c8f69c3d2dd64eb31c63c
|
|
3
|
+
libasherah-x64.so: a873fafb85b0ee310c78d1cbf8cd5db1684bea7d4db9c6b53dcd8e68e546fcf2
|
|
4
|
+
libasherah-arm64.dylib: 76b4652b02e745992ff1c064722628432fa5e04f49ef2cfed2299215ea71290a
|
|
5
|
+
libasherah-x64.dylib: 0e78b9318a35bbb4bbe12aeed09ee2b850de43ba3660460c5d3b220b010c04f0
|
data/lib/asherah/config.rb
CHANGED
|
@@ -22,6 +22,7 @@ module Asherah
|
|
|
22
22
|
# @attr [Integer] check_interval, The amount of time in seconds before cached keys are considered stale
|
|
23
23
|
# @attr [Boolean] enable_session_caching, Enable shared session caching
|
|
24
24
|
# @attr [Boolean] disable_zero_copy, Disable zero-copy FFI input buffers to prevent use-after-free from caller runtime
|
|
25
|
+
# @attr [Boolean] null_data_check, Log an error if input data is all null before or after encryption
|
|
25
26
|
# @attr [Boolean] verbose, Enable verbose logging output
|
|
26
27
|
class Config
|
|
27
28
|
MAPPING = {
|
|
@@ -42,6 +43,7 @@ module Asherah
|
|
|
42
43
|
session_cache_duration: :SessionCacheDuration,
|
|
43
44
|
enable_session_caching: :EnableSessionCaching,
|
|
44
45
|
disable_zero_copy: :DisableZeroCopy,
|
|
46
|
+
null_data_check: :NullDataCheck,
|
|
45
47
|
expire_after: :ExpireAfter,
|
|
46
48
|
check_interval: :CheckInterval,
|
|
47
49
|
verbose: :Verbose
|
data/lib/asherah/version.rb
CHANGED
data/lib/asherah.rb
CHANGED
|
@@ -124,10 +124,12 @@ module Asherah
|
|
|
124
124
|
private
|
|
125
125
|
|
|
126
126
|
def estimate_buffer(data_bytesize, partition_bytesize)
|
|
127
|
+
est_data_len = (((data_bytesize + ESTIMATED_ENCRYPTION_OVERHEAD) * BASE64_OVERHEAD).to_i + 1)
|
|
128
|
+
|
|
127
129
|
ESTIMATED_ENVELOPE_OVERHEAD +
|
|
128
130
|
@intermediated_key_overhead_bytesize +
|
|
129
131
|
partition_bytesize +
|
|
130
|
-
|
|
132
|
+
est_data_len
|
|
131
133
|
end
|
|
132
134
|
end
|
|
133
135
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: asherah
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.8.
|
|
4
|
+
version: 0.8.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- GoDaddy
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-03-
|
|
11
|
+
date: 2026-03-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cobhan
|