tdes 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/ext/tdes/tdes_class.c +6 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5cddfd30668bdad791c32854d5f95a48f4aec801af4a12e97bcfe8fae8ea1cd8
4
- data.tar.gz: 54cf93e8fd85596f4e03dc7be34ed12799522d0f3ceb1af9e25b930b6f873658
3
+ metadata.gz: 3c6c14c10e550e551c174f5f7bb326b1f776f438ad24dad86560bf5c1124213a
4
+ data.tar.gz: c415c650eabd30d776aa3f536be207218c4c666873f5f5c830958995f88d79bc
5
5
  SHA512:
6
- metadata.gz: 53819b240e65d3a46e1c0fe3e73b5f81b5ddcd4533a9f2b94125e4ec76a2511b98193c980a2dafa595dfe04368ffd3ad827ab920e92955d9e6b7725410c7f299
7
- data.tar.gz: ee16aff6d21f5060e0607574c947d158deb6872a7baf6b449a34383ee9107b72fa333af0e213fb25d2c58e1e4b2d776b93092685b769683e391857d20c0483a7
6
+ metadata.gz: 02faa963d70d327db66a18c0879c2af94531a1ca5964d5475ab3668d433b565fa6b3561a2921388267170c746eb48c829b07c961d5b65c8b891cc83250399370
7
+ data.tar.gz: 0a509a2623c042b551a84f049d35217736f19591f22c4e29b0f9c34a6ed045ce104cd762b5f8b669ac172aab92fcabfb0bd115b0100b599e077ecd219e464941
@@ -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.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-06 00:00:00.000000000 Z
11
+ date: 2022-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake-compiler