tdes 2.0.0 → 3.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/tdes/extconf.rb +5 -0
- data/ext/tdes/tdes_class.c +6 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b31d6bd07ddb3f0fc2e238d88b24ed7f4ce7810a9a1839187622472c5e4fab7
|
4
|
+
data.tar.gz: 667681e3a1e9aaa3b6462215f553dd2da0ad77e49f0d19ede49132dabe2587d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5ee3fce85a38a66eca812d8e69d6cce99be0d45f057999432de9433c16c49604b8a125f1857e5a18c27b16deb90a7c5de688e1cff178fc02a2e21bf089c761d
|
7
|
+
data.tar.gz: e455ede1db33dd4d1fc01c2a7ee49dd6f9f30633edee6e9c53d01f0fe403aef04898cfb34d98f5307ded9c4c505bf29fa57f13abf2e095fb4ca97beefdbd226f
|
data/ext/tdes/extconf.rb
CHANGED
@@ -13,6 +13,11 @@ with_cflags(cflags) do
|
|
13
13
|
abort 'missing DES_set_key_checked' unless have_func('DES_set_key_checked', 'openssl/des.h')
|
14
14
|
abort 'missing DES_ecb3_encrypt' unless have_func('DES_ecb3_encrypt', 'openssl/des.h')
|
15
15
|
|
16
|
+
# Check for a symbol/function specific to OpenSSL 3.x
|
17
|
+
unless have_func('EVP_Cipher')
|
18
|
+
abort 'OpenSSL 3.x required (missing EVP_Cipher function)'
|
19
|
+
end
|
20
|
+
|
16
21
|
create_makefile 'tdes/tdes'
|
17
22
|
end
|
18
23
|
end
|
data/ext/tdes/tdes_class.c
CHANGED
@@ -21,10 +21,15 @@ VALUE tdes_new(VALUE class, VALUE key) {
|
|
21
21
|
|
22
22
|
switch (key_length) {
|
23
23
|
case 24:
|
24
|
+
DES_set_key_unchecked((void*) raw_key + 0, &key_data->ks1);
|
25
|
+
DES_set_key_unchecked((void*) raw_key + 8, &key_data->ks2);
|
24
26
|
DES_set_key_unchecked((void*) raw_key + 16, &key_data->ks3);
|
27
|
+
break;
|
28
|
+
|
25
29
|
case 16:
|
26
|
-
DES_set_key_unchecked((void*) raw_key + 8, &key_data->ks2);
|
27
30
|
DES_set_key_unchecked((void*) raw_key + 0, &key_data->ks1);
|
31
|
+
DES_set_key_unchecked((void*) raw_key + 8, &key_data->ks2);
|
32
|
+
DES_set_key_unchecked((void*) raw_key + 0, &key_data->ks3);
|
28
33
|
break;
|
29
34
|
|
30
35
|
default:
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tdes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 3.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gabriel Bastos
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-07-
|
11
|
+
date: 2022-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake-compiler
|
@@ -56,7 +56,7 @@ homepage: https://github.com/cloudwalk/ruby-3des
|
|
56
56
|
licenses:
|
57
57
|
- MIT
|
58
58
|
metadata: {}
|
59
|
-
post_install_message:
|
59
|
+
post_install_message:
|
60
60
|
rdoc_options: []
|
61
61
|
require_paths:
|
62
62
|
- lib
|
@@ -71,8 +71,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
71
71
|
- !ruby/object:Gem::Version
|
72
72
|
version: '0'
|
73
73
|
requirements: []
|
74
|
-
rubygems_version: 3.
|
75
|
-
signing_key:
|
74
|
+
rubygems_version: 3.3.5
|
75
|
+
signing_key:
|
76
76
|
specification_version: 4
|
77
77
|
summary: triple DES encryption implemented in C
|
78
78
|
test_files: []
|