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 CHANGED
Binary file
data/History.txt CHANGED
@@ -1,3 +1,7 @@
1
+ === 1.2.0 / 2009-05-27
2
+
3
+ * Ruby 1.9 Compliant!
4
+
1
5
  === 1.1.0 / 2009-04-06
2
6
 
3
7
  * BUGFIX
data/README.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  = Crypt::XXTEA
2
2
 
3
- * http://github.com/sprsquish/rubytea
3
+ * http://github.com/sprsquish/crypt--xxtea
4
4
 
5
5
  == DESCRIPTION:
6
6
 
data/Rakefile CHANGED
@@ -4,4 +4,5 @@ require './lib/crypt_tea.rb'
4
4
 
5
5
  Hoe.new('crypt-tea', Crypt::XXTEA::VERSION) do |p|
6
6
  p.developer('Jeff Smick', 'sprsquish@gmail.com')
7
+ p.developer('James Zhang', 'james@aftershocksf.com')
7
8
  end
@@ -1,6 +1,6 @@
1
1
  module Crypt
2
2
  class XXTEA
3
- VERSION = '1.1.0'
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 |p|
83
- y = v[p + 1];
84
- z = v[p] = int32(v[p] + mx(z, y, sum, p, e))
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 |p|
112
- z = v[p - 1]
113
- y = v[p] = int32(v[p] - mx(z, y, sum, p, e))
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.1.0
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-04-06 00:00:00 -07:00
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.11.0
45
+ version: 1.12.2
45
46
  version:
46
- description: An implementation of the Tiny Encryption Algorithm that's compatible with PHP's xxTEA
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/rubytea
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.1
95
+ rubygems_version: 1.3.3
90
96
  signing_key:
91
- specification_version: 2
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