tdes 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/tdes/tdes_class.c +6 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c6c14c10e550e551c174f5f7bb326b1f776f438ad24dad86560bf5c1124213a
|
4
|
+
data.tar.gz: c415c650eabd30d776aa3f536be207218c4c666873f5f5c830958995f88d79bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02faa963d70d327db66a18c0879c2af94531a1ca5964d5475ab3668d433b565fa6b3561a2921388267170c746eb48c829b07c961d5b65c8b891cc83250399370
|
7
|
+
data.tar.gz: 0a509a2623c042b551a84f049d35217736f19591f22c4e29b0f9c34a6ed045ce104cd762b5f8b669ac172aab92fcabfb0bd115b0100b599e077ecd219e464941
|
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: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gabriel Bastos
|
8
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
|