hpke 0.1.0 → 0.2.0
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/README.md +3 -1
- data/hpke.gemspec +36 -0
- data/lib/hpke/version.rb +1 -1
- metadata +6 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8cdd5f9381b5094a13de8e4058810ed27af3eb4eb483f75f6da7d629451829d0
|
4
|
+
data.tar.gz: 8a94c5f97f3e952bbb585382a7db296fa6a3cffcbfc7dd882b28963aafb88609
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 48f819ac22c7523699642b914cebd3974a1ec8c627778d7b3110dda43696e78b9210a8ae54d2b83775abf184a75aa4ce11d66c6ba0e4b21c108e74f2549bb2f6
|
7
|
+
data.tar.gz: c81a333843dc89149139e80f198ad915078ccc1ea41de1f8eddfccabee4e5a50ec739cd6e21a14de38e4f3dbc1ca7fc4788b3954d505c69faa6945270302c220
|
data/README.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
# hpke-rb
|
2
2
|
|
3
|
+
[](https://badge.fury.io/rb/hpke)
|
4
|
+
|
3
5
|
Hybrid Public Key Encryption (HPKE; [RFC 9180](https://datatracker.ietf.org/doc/html/rfc9180)) in Ruby
|
4
6
|
|
5
7
|
## Note
|
@@ -103,7 +105,7 @@ context_r.open('authentication_associated_data', ciphertext)
|
|
103
105
|
- Hash names (parameter 2 and 3)
|
104
106
|
- `:sha256`, `:sha384`, `:sha512`
|
105
107
|
- AEAD function names (parameter 4)
|
106
|
-
- `:aes_128_gcm`, `:aes_256_gcm`, `:chacha20_poly1305`,
|
108
|
+
- `:aes_128_gcm`, `:aes_256_gcm`, `:chacha20_poly1305`, `:export_only`
|
107
109
|
|
108
110
|
## Development
|
109
111
|
|
data/hpke.gemspec
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "lib/hpke/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = "hpke"
|
7
|
+
spec.version = HPKE::VERSION
|
8
|
+
spec.authors = ["Ryo Kajiwara"]
|
9
|
+
spec.email = ["sylph01@s01.ninja"]
|
10
|
+
|
11
|
+
spec.summary = "Hybrid Public Key Encryption (HPKE; RFC 9180) on Ruby"
|
12
|
+
spec.description = "Hybrid Public Key Encryption (HPKE; RFC 9180) on Ruby"
|
13
|
+
spec.homepage = "https://github.com/sylph01/hpke-rb"
|
14
|
+
spec.license = "MIT"
|
15
|
+
spec.required_ruby_version = ">= 3.1.0"
|
16
|
+
|
17
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
18
|
+
spec.metadata["source_code_uri"] = "https://github.com/sylph01/hpke-rb"
|
19
|
+
|
20
|
+
# Specify which files should be added to the gem when it is released.
|
21
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
22
|
+
spec.files = Dir.chdir(__dir__) do
|
23
|
+
`git ls-files -z`.split("\x0").reject do |f|
|
24
|
+
(File.expand_path(f) == __FILE__) || f.start_with?(*%w[bin/ test/ spec/ features/ .git .circleci appveyor])
|
25
|
+
end
|
26
|
+
end
|
27
|
+
spec.bindir = "exe"
|
28
|
+
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
29
|
+
spec.require_paths = ["lib"]
|
30
|
+
|
31
|
+
# Uncomment to register a new dependency of your gem
|
32
|
+
spec.add_dependency "openssl", "~> 3.3.0"
|
33
|
+
|
34
|
+
# For more information and examples about making a new gem, check out our
|
35
|
+
# guide at: https://bundler.io/guides/creating_gem.html
|
36
|
+
end
|
data/lib/hpke/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hpke
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryo Kajiwara
|
8
|
-
autorequire:
|
9
8
|
bindir: exe
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 2025-04-01 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: openssl
|
@@ -16,14 +15,14 @@ dependencies:
|
|
16
15
|
requirements:
|
17
16
|
- - "~>"
|
18
17
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.
|
18
|
+
version: 3.3.0
|
20
19
|
type: :runtime
|
21
20
|
prerelease: false
|
22
21
|
version_requirements: !ruby/object:Gem::Requirement
|
23
22
|
requirements:
|
24
23
|
- - "~>"
|
25
24
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.
|
25
|
+
version: 3.3.0
|
27
26
|
description: Hybrid Public Key Encryption (HPKE; RFC 9180) on Ruby
|
28
27
|
email:
|
29
28
|
- sylph01@s01.ninja
|
@@ -37,6 +36,7 @@ files:
|
|
37
36
|
- LICENSE.txt
|
38
37
|
- README.md
|
39
38
|
- Rakefile
|
39
|
+
- hpke.gemspec
|
40
40
|
- lib/hpke.rb
|
41
41
|
- lib/hpke/dhkem.rb
|
42
42
|
- lib/hpke/hkdf.rb
|
@@ -49,7 +49,6 @@ licenses:
|
|
49
49
|
metadata:
|
50
50
|
homepage_uri: https://github.com/sylph01/hpke-rb
|
51
51
|
source_code_uri: https://github.com/sylph01/hpke-rb
|
52
|
-
post_install_message:
|
53
52
|
rdoc_options: []
|
54
53
|
require_paths:
|
55
54
|
- lib
|
@@ -64,8 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
64
63
|
- !ruby/object:Gem::Version
|
65
64
|
version: '0'
|
66
65
|
requirements: []
|
67
|
-
rubygems_version: 3.
|
68
|
-
signing_key:
|
66
|
+
rubygems_version: 3.6.5
|
69
67
|
specification_version: 4
|
70
68
|
summary: Hybrid Public Key Encryption (HPKE; RFC 9180) on Ruby
|
71
69
|
test_files: []
|