crypt-tea 1.1.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/History.txt +4 -0
- data/README.txt +1 -1
- data/Rakefile +1 -0
- data/lib/crypt_tea/xxtea.rb +9 -7
- metadata +13 -7
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
data/History.txt
CHANGED
data/README.txt
CHANGED
data/Rakefile
CHANGED
data/lib/crypt_tea/xxtea.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
module Crypt
|
2
2
|
class XXTEA
|
3
|
-
VERSION = '1.
|
3
|
+
VERSION = '1.2.0'
|
4
4
|
DELTA = 0x9E3779B9
|
5
5
|
|
6
6
|
def initialize(new_key)
|
@@ -79,9 +79,10 @@ module Crypt
|
|
79
79
|
sum = int32(sum + DELTA)
|
80
80
|
e = sum >> 2 & 3
|
81
81
|
|
82
|
-
n.times do |
|
83
|
-
y = v[
|
84
|
-
z = v[
|
82
|
+
n.times do |i|
|
83
|
+
y = v[i + 1];
|
84
|
+
z = v[i] = int32(v[i] + mx(z, y, sum, i, e))
|
85
|
+
p = i
|
85
86
|
end
|
86
87
|
|
87
88
|
p += 1
|
@@ -108,9 +109,10 @@ module Crypt
|
|
108
109
|
|
109
110
|
while (sum != 0) do
|
110
111
|
e = sum >> 2 & 3
|
111
|
-
n.downto(1) do |
|
112
|
-
z = v[
|
113
|
-
y = v[
|
112
|
+
n.downto(1) do |i|
|
113
|
+
z = v[i - 1]
|
114
|
+
y = v[i] = int32(v[i] - mx(z, y, sum, i, e))
|
115
|
+
p = i
|
114
116
|
end
|
115
117
|
|
116
118
|
p -= 1
|
metadata
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: crypt-tea
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Smick
|
8
|
+
- James Zhang
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain:
|
@@ -30,7 +31,7 @@ cert_chain:
|
|
30
31
|
M6zkPH2hkWs=
|
31
32
|
-----END CERTIFICATE-----
|
32
33
|
|
33
|
-
date: 2009-
|
34
|
+
date: 2009-05-27 00:00:00 -07:00
|
34
35
|
default_executable:
|
35
36
|
dependencies:
|
36
37
|
- !ruby/object:Gem::Dependency
|
@@ -41,11 +42,14 @@ dependencies:
|
|
41
42
|
requirements:
|
42
43
|
- - ">="
|
43
44
|
- !ruby/object:Gem::Version
|
44
|
-
version: 1.
|
45
|
+
version: 1.12.2
|
45
46
|
version:
|
46
|
-
description:
|
47
|
+
description: |-
|
48
|
+
An implementation of the Tiny Encryption Algorithm that's
|
49
|
+
compatible with PHP's xxTEA
|
47
50
|
email:
|
48
51
|
- sprsquish@gmail.com
|
52
|
+
- james@aftershocksf.com
|
49
53
|
executables:
|
50
54
|
- xxtea
|
51
55
|
extensions: []
|
@@ -64,7 +68,9 @@ files:
|
|
64
68
|
- lib/crypt_tea/xxtea.rb
|
65
69
|
- test/test_xxtea.rb
|
66
70
|
has_rdoc: true
|
67
|
-
homepage: http://github.com/sprsquish/
|
71
|
+
homepage: http://github.com/sprsquish/crypt--xxtea
|
72
|
+
licenses: []
|
73
|
+
|
68
74
|
post_install_message:
|
69
75
|
rdoc_options:
|
70
76
|
- --main
|
@@ -86,9 +92,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
86
92
|
requirements: []
|
87
93
|
|
88
94
|
rubyforge_project: crypt-tea
|
89
|
-
rubygems_version: 1.3.
|
95
|
+
rubygems_version: 1.3.3
|
90
96
|
signing_key:
|
91
|
-
specification_version:
|
97
|
+
specification_version: 3
|
92
98
|
summary: An implementation of the Tiny Encryption Algorithm that's compatible with PHP's xxTEA
|
93
99
|
test_files:
|
94
100
|
- test/test_xxtea.rb
|
metadata.gz.sig
CHANGED
Binary file
|