pgp-rb 0.1.1-aarch64-linux → 0.1.2-aarch64-linux

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a621e6d634d3ec9240cc4bf74b2ea45f375424dd5164a101f586db849bda42f1
4
- data.tar.gz: da97fa5b38282ad40bf9e2ae8383f275aacd3e4e94425d41f3513f7f51ecd711
3
+ metadata.gz: 865d4a996b3050a70762af4ea160848e4e4f320624ff4a67744f78c471d52a27
4
+ data.tar.gz: c1267addbf7d970654cbba79ab3c6d2466743c9e431819d5d4d2325e9f1e9d3f
5
5
  SHA512:
6
- metadata.gz: 260352ec932e8bc6a1309ae19a7a0794e18347301030db3e53b2473fbbc7504bb70e984fbd39848ad839655401fc915aacbcd22523f9fe02988eebbfb21d509b
7
- data.tar.gz: 50e6f87d7c6a3803c93054e605c1bc76eedce66eb51ce61fbfe52c404a143a8d668ef0c2a0f0b4ea4750e4735773a76278e3f3194212f86a8b9bba2b4f40fd0c
6
+ metadata.gz: 54bcc9269a0900163d2997106aa11d536f0a2929e9f7781ff6a3d6786edebe1e8de622a963fde5900b15e4ecf15a2df1ca3f1e17d0c7bd0bcd0a939d39fa6356
7
+ data.tar.gz: 41b87dfcc6d497584abc593c478c581d6a03253777a0e3c320d223d8c670d5320a0d0e6432e43f179f4c78d3c87c3bdbc645fc03c6d5819e92231d9345803488
Binary file
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PGP
4
- VERSION = '0.1.1'
4
+ VERSION = '0.1.2'
5
5
  end
data/lib/pgp.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+
2
3
  begin
3
4
  /(?<ruby_version>\d+\.\d+)/ =~ RUBY_VERSION
4
5
  require_relative "pgp-rb/#{ruby_version}/pgp_rb"
@@ -31,17 +32,17 @@ module PGP
31
32
  KEY_ALGORITHM_EDDSA => 'EdDSA'
32
33
  }.freeze
33
34
 
34
- ENCRIPTION_ALGORITHM_IDEA = 1
35
- ENCRIPTION_ALGORITHM_TRIPLE_DES = 2
36
- ENCRIPTION_ALGORITHM_CAST5 = 3
37
- ENCRIPTION_ALGORITHM_BLOWFISH = 4
38
- ENCRIPTION_ALGORITHM_AES_128 = 7
39
- ENCRIPTION_ALGORITHM_AES_192 = 8
40
- ENCRIPTION_ALGORITHM_AES_256 = 9
41
- ENCRIPTION_ALGORITHM_TWOFISH = 10
42
- ENCRIPTION_ALGORITHM_CAMELLIA_128 = 11
43
- ENCRIPTION_ALGORITHM_CAMELLIA_192 = 12
44
- ENCRIPTION_ALGORITHM_CAMELLIA_256 = 13
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
45
46
 
46
47
  # Public Key class provides an native extension representation for working with PGP public keys.
47
48
  class PublicKey
@@ -110,7 +111,7 @@ module PGP
110
111
  # @param data [String] the data to be encrypted.
111
112
  # @param algorithm [Integer] the encryption algorithm to use, defaults to AES-128.
112
113
  # @return [String] the encrypted data encoded by base64.
113
- def encrypt(data, algorithm = ENCRIPTION_ALGORITHM_AES_128)
114
+ def encrypt(data, algorithm = ENCRYPTION_ALGORITHM_AES_128)
114
115
  encrypt_with_algorithm(data, algorithm)
115
116
  end
116
117
  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.1
4
+ version: 0.1.2
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-02-26 00:00:00.000000000 Z
11
+ date: 2024-05-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry