pgp-rb 0.1.3-aarch64-linux → 0.2.1-aarch64-linux

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 22c7a3469c7fde8a46ecdf7d62c68c9749ea597f615f52586df59bf1d71f4081
4
- data.tar.gz: be3ea548a10659b92a021266ef570d695d635333d6e758be3b1265a6542f7d6c
3
+ metadata.gz: 886e279447d40369bf0f786d2b6bfcc07c3b0e867f479dd3580d69628df52ae6
4
+ data.tar.gz: 10a08203d5bbde2570c6eb7964df874c14e1d4dfca9bafcb5514326877061d40
5
5
  SHA512:
6
- metadata.gz: d0e6a92d79f7d4a188e8dae16ff06880136f30f8d5e5cb3bc652a3a9ceb366e9f74f7c85ff24a0e8c78f7d64bea550c2da759b960a63594035f5a7343c103332
7
- data.tar.gz: 8dc0e12adbb400b8a8cc8fae11b19d705f2142385fd3d3377886a34f35804107ac2141023899fc8d0961fee22b0599a10491c0b28210c25ea826080a32501f7d
6
+ metadata.gz: 39aeb04040dfd2bd1e2852f788f4467a7023417aa0b6eee2f6db2e4965a6b2b91b87cbc68949ee215c3be7230fb72a17f6477128c79b201adc25f36aad2eee06
7
+ data.tar.gz: 0e9cfd5251837bf4179c791392cda7487a7ed55fe1eedf3fad81904f4f7e898c951577c315a7b8069e96b3d674bd890e1e26665e104da040aa914b367a8f2e60
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PGP
4
- VERSION = '0.1.3'
4
+ VERSION = '0.2.1'
5
5
  end
data/lib/pgp.rb CHANGED
@@ -17,7 +17,11 @@ module PGP
17
17
  KEY_ALGORITHM_ECDSA = 19
18
18
  KEY_ALGORITHM_ELGAMAL = 20
19
19
  KEY_ALGORITHM_DIFFIE_HELLMAN = 21
20
- KEY_ALGORITHM_EDDSA = 22
20
+ KEY_ALGORITHM_EDDSA_LEGACY = 22
21
+ KEY_ALGORITHM_X25519 = 25
22
+ KEY_ALGORITHM_X448 = 26
23
+ KEY_ALGORITHM_ED25519 = 27
24
+ KEY_ALGORITHM_ED448 = 28
21
25
 
22
26
  KEY_ALGORITHM_NAMES = {
23
27
  KEY_ALGORITHM_RSA => 'RSA (Encrypt and Sign)',
@@ -29,20 +33,24 @@ module PGP
29
33
  KEY_ALGORITHM_ECDSA => 'ECDSA: RFC-6637',
30
34
  KEY_ALGORITHM_ELGAMAL => 'Elgamal (Encrypt and Sign)',
31
35
  KEY_ALGORITHM_DIFFIE_HELLMAN => 'Diffie-Hellman (X9.42, as defined for IETF-S/MIME)',
32
- KEY_ALGORITHM_EDDSA => 'EdDSA'
36
+ KEY_ALGORITHM_EDDSA_LEGACY => 'EdDSA legacy format [deprecated in RFC 9580, superseded by Ed25519 (27)]',
37
+ KEY_ALGORITHM_X25519 => 'X25519 [RFC 9580]',
38
+ KEY_ALGORITHM_X448 => 'X448 [RFC 9580]',
39
+ KEY_ALGORITHM_ED25519 => 'Ed25519 [RFC 9580]',
40
+ KEY_ALGORITHM_ED448 => 'Ed448 [RFC 9580]'
33
41
  }.freeze
34
42
 
35
- ENCRYPTION_ALGORITHM_IDEA = 1
36
- ENCRYPTION_ALGORITHM_TRIPLE_DES = 2
37
- ENCRYPTION_ALGORITHM_CAST5 = 3
38
- ENCRYPTION_ALGORITHM_BLOWFISH = 4
39
- ENCRYPTION_ALGORITHM_AES_128 = 7
40
- ENCRYPTION_ALGORITHM_AES_192 = 8
41
- ENCRYPTION_ALGORITHM_AES_256 = 9
42
- ENCRYPTION_ALGORITHM_TWOFISH = 10
43
- ENCRYPTION_ALGORITHM_CAMELLIA_128 = 11
44
- ENCRYPTION_ALGORITHM_CAMELLIA_192 = 12
45
- ENCRYPTION_ALGORITHM_CAMELLIA_256 = 13
43
+ ENCRIPTION_ALGORITHM_IDEA = 1
44
+ ENCRIPTION_ALGORITHM_TRIPLE_DES = 2
45
+ ENCRIPTION_ALGORITHM_CAST5 = 3
46
+ ENCRIPTION_ALGORITHM_BLOWFISH = 4
47
+ ENCRIPTION_ALGORITHM_AES_128 = 7
48
+ ENCRIPTION_ALGORITHM_AES_192 = 8
49
+ ENCRIPTION_ALGORITHM_AES_256 = 9
50
+ ENCRIPTION_ALGORITHM_TWOFISH = 10
51
+ ENCRIPTION_ALGORITHM_CAMELLIA_128 = 11
52
+ ENCRIPTION_ALGORITHM_CAMELLIA_192 = 12
53
+ ENCRIPTION_ALGORITHM_CAMELLIA_256 = 13
46
54
 
47
55
  # Public Key class provides an native extension representation for working with PGP public keys.
48
56
  class PublicKey
@@ -65,9 +73,9 @@ module PGP
65
73
  # Checks if the public key supports signing.
66
74
  # @return [Boolean] true if the key supports signing, false otherwise.
67
75
 
68
- # @!method encryption_supported?
69
- # Checks if the public key supports encryption.
70
- # @return [Boolean] true if the key supports encryption, false otherwise.
76
+ # @!method ENCRIPTION_supported?
77
+ # Checks if the public key supports ENCRIPTION.
78
+ # @return [Boolean] true if the key supports ENCRIPTION, false otherwise.
71
79
 
72
80
  # @!method version
73
81
  # Returns the version of the public key.
@@ -84,7 +92,7 @@ module PGP
84
92
  # @!method encrypt_with_algorithm(input, algorithm)
85
93
  # Encrypts data with the specified algorithm.
86
94
  # @param input [String] the data to be encrypted.
87
- # @param algorithm [Integer] the encryption algorithm identifier.
95
+ # @param algorithm [Integer] the ENCRIPTION algorithm identifier.
88
96
  # @return [String] the encrypted data encoded by base64.
89
97
 
90
98
  # Returns a string representation of the PublicKey object, including its fingerprint, algorithm name, and version.
@@ -107,11 +115,11 @@ module PGP
107
115
  expires_at.to_i <= Time.now.to_i
108
116
  end
109
117
 
110
- # Encrypts data using the specified encryption algorithm.
118
+ # Encrypts data using the specified ENCRIPTION algorithm.
111
119
  # @param data [String] the data to be encrypted.
112
- # @param algorithm [Integer] the encryption algorithm to use, defaults to AES-128.
120
+ # @param algorithm [Integer] the ENCRIPTION algorithm to use, defaults to AES-128.
113
121
  # @return [String] the encrypted data encoded by base64.
114
- def encrypt(data, algorithm = ENCRYPTION_ALGORITHM_AES_128)
122
+ def encrypt(data, algorithm = ENCRIPTION_ALGORITHM_AES_128)
115
123
  encrypt_with_algorithm(data, algorithm)
116
124
  end
117
125
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pgp-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.2.1
5
5
  platform: aarch64-linux
6
6
  authors:
7
7
  - Kirill Zaitsev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-07-22 00:00:00.000000000 Z
11
+ date: 2024-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry
@@ -87,9 +87,8 @@ executables: []
87
87
  extensions: []
88
88
  extra_rdoc_files: []
89
89
  files:
90
- - lib/pgp-rb/3.1/pgp_rb.so
91
90
  - lib/pgp-rb/3.2/pgp_rb.so
92
- - lib/pgp-rb/3.3/pgp_rb.so
91
+ - lib/pgp-rb/3.4/pgp_rb.so
93
92
  - lib/pgp-rb/version.rb
94
93
  - lib/pgp.rb
95
94
  homepage: https://some
@@ -110,17 +109,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
110
109
  requirements:
111
110
  - - ">="
112
111
  - !ruby/object:Gem::Version
113
- version: '3.1'
112
+ version: '3.2'
114
113
  - - "<"
115
114
  - !ruby/object:Gem::Version
116
- version: 3.4.dev
115
+ version: 3.5.dev
117
116
  required_rubygems_version: !ruby/object:Gem::Requirement
118
117
  requirements:
119
118
  - - ">="
120
119
  - !ruby/object:Gem::Version
121
120
  version: '0'
122
121
  requirements: []
123
- rubygems_version: 3.4.4
122
+ rubygems_version: 3.5.23
124
123
  signing_key:
125
124
  specification_version: 4
126
125
  summary: rPGP ruby wrapper
Binary file
Binary file