tdes 3.0.4 → 3.0.6
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 +7 -4
- data/ext/tdes/tdes_class.c +1 -0
- data/lib/tdes/version.rb +1 -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: 8b22686cb757de014badfd6044d55b0cbc3a2b3b7317507936fa6e5b3efb4e7b
|
4
|
+
data.tar.gz: 7b8730ef0dcda04a114e30bab61a72a78d1adff3488c16f35a1036d6de0198c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fdcc9beee5c41e9c9b5fd46cdb163d14dbf2b0d6b20dc02da0794b6acd2cf3cfe279f57be16b7a090e31039b5866cb7009199793b4ed0805e7058b988f8c5b0e
|
7
|
+
data.tar.gz: 32e0a9b28e2c6ad41e5cccd1a0435be0e5a9d88d357bf1c3e28334e792da3215e99fc8ce5785e2bed4f7f32057c497ab8e8987d6987d0bf3ad59254256f7621c
|
data/ext/tdes/extconf.rb
CHANGED
@@ -10,11 +10,14 @@ with_cflags(cflags) do
|
|
10
10
|
abort 'missing openssl/des.h' unless have_header('openssl/des.h')
|
11
11
|
abort 'missing type DES_key_schedule' unless have_type('DES_key_schedule', 'openssl/des.h')
|
12
12
|
abort 'missing type DES_cblock' unless have_type('DES_cblock', 'openssl/des.h')
|
13
|
-
abort 'missing DES_set_key_checked' unless have_func('DES_set_key_checked', 'openssl/des.h')
|
14
|
-
abort 'missing DES_ecb3_encrypt' unless have_func('DES_ecb3_encrypt', 'openssl/des.h')
|
15
13
|
|
16
|
-
#
|
17
|
-
|
14
|
+
# On MacOS, have_func does not work well because the default compiler is clang instead of gcc
|
15
|
+
unless RUBY_PLATFORM.downcase.include? 'darwin'
|
16
|
+
abort 'missing DES_set_key_checked' unless have_func('int DES_set_key_checked', 'openssl/des.h')
|
17
|
+
abort 'missing DES_ecb3_encrypt' unless have_func('DES_ecb3_encrypt', 'openssl/des.h')
|
18
|
+
# Check for a symbol/function specific to OpenSSL 3.x
|
19
|
+
abort 'OpenSSL 3.x required (missing EVP_Cipher function)' unless have_func('EVP_Cipher')
|
20
|
+
end
|
18
21
|
|
19
22
|
create_makefile 'tdes/tdes'
|
20
23
|
end
|
data/ext/tdes/tdes_class.c
CHANGED
@@ -83,6 +83,7 @@ static VALUE tdes_decrypt(VALUE self, VALUE data) {
|
|
83
83
|
|
84
84
|
void setup_tdes_class(VALUE module) {
|
85
85
|
VALUE tdes_class = rb_define_class_under(module, "TDES", rb_cObject);
|
86
|
+
rb_undef_alloc_func(tdes_class);
|
86
87
|
rb_define_singleton_method(tdes_class, "new", tdes_new, 1);
|
87
88
|
rb_define_method(tdes_class, "encrypt", tdes_encrypt, 1);
|
88
89
|
rb_define_method(tdes_class, "decrypt", tdes_decrypt, 1);
|
data/lib/tdes/version.rb
CHANGED
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: 3.0.
|
4
|
+
version: 3.0.6
|
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: 2024-
|
11
|
+
date: 2024-09-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|
@@ -60,7 +60,7 @@ licenses:
|
|
60
60
|
- MIT
|
61
61
|
metadata:
|
62
62
|
rubygems_mfa_required: 'true'
|
63
|
-
post_install_message:
|
63
|
+
post_install_message:
|
64
64
|
rdoc_options:
|
65
65
|
- "--main"
|
66
66
|
- readme.md
|
@@ -77,8 +77,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
77
77
|
- !ruby/object:Gem::Version
|
78
78
|
version: '0'
|
79
79
|
requirements: []
|
80
|
-
rubygems_version: 3.
|
81
|
-
signing_key:
|
80
|
+
rubygems_version: 3.5.18
|
81
|
+
signing_key:
|
82
82
|
specification_version: 4
|
83
83
|
summary: triple DES encryption implemented in C
|
84
84
|
test_files: []
|