twofish 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/twofish.rb +2 -0
- data/test/test_twofish.rb +4 -1
- metadata +25 -40
data/lib/twofish.rb
CHANGED
data/test/test_twofish.rb
CHANGED
@@ -286,5 +286,8 @@ class TestPadding < TestBasics
|
|
286
286
|
assert_equal(TO_PAD, Padding::unpad(TO_PAD+"\0"*10, BLOCK_SIZE, :zero_byte))
|
287
287
|
end
|
288
288
|
|
289
|
+
def test_pad_block_size_zero_byte
|
290
|
+
to_pad = TO_PAD * BLOCK_SIZE
|
291
|
+
assert_equal(to_pad, Padding::pad(to_pad, BLOCK_SIZE, :zero_byte))
|
292
|
+
end
|
289
293
|
end
|
290
|
-
|
metadata
CHANGED
@@ -1,70 +1,55 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: twofish
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
- 1
|
7
|
-
- 0
|
8
|
-
- 1
|
9
|
-
version: 1.0.1
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.2
|
5
|
+
prerelease:
|
10
6
|
platform: ruby
|
11
|
-
authors:
|
7
|
+
authors:
|
12
8
|
- Martin Carpenter
|
13
9
|
autorequire:
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
|
-
|
17
|
-
date: 2011-06-23 00:00:00 +02:00
|
18
|
-
default_executable:
|
12
|
+
date: 2011-11-21 00:00:00.000000000Z
|
19
13
|
dependencies: []
|
20
|
-
|
21
|
-
|
14
|
+
description: Twofish symmetric cipher in pure Ruby with ECB and CBC cipher modes derived
|
15
|
+
from an original Perl implementation by Guido Flohr
|
22
16
|
email: mcarpenter@free.fr
|
23
17
|
executables: []
|
24
|
-
|
25
18
|
extensions: []
|
26
|
-
|
27
|
-
extra_rdoc_files:
|
19
|
+
extra_rdoc_files:
|
28
20
|
- LICENSE
|
29
21
|
- Rakefile
|
30
22
|
- README.rdoc
|
31
|
-
files:
|
23
|
+
files:
|
32
24
|
- lib/twofish.rb
|
33
25
|
- test/test_twofish.rb
|
34
26
|
- LICENSE
|
35
27
|
- Rakefile
|
36
28
|
- README.rdoc
|
37
|
-
has_rdoc: true
|
38
29
|
homepage: http://mcarpenter.org/projects/twofish
|
39
|
-
licenses:
|
30
|
+
licenses:
|
40
31
|
- BSD
|
41
32
|
post_install_message:
|
42
33
|
rdoc_options: []
|
43
|
-
|
44
|
-
require_paths:
|
34
|
+
require_paths:
|
45
35
|
- lib
|
46
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
36
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
47
37
|
none: false
|
48
|
-
requirements:
|
49
|
-
- -
|
50
|
-
- !ruby/object:Gem::Version
|
51
|
-
|
52
|
-
|
53
|
-
version: "0"
|
54
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ! '>='
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
version: '0'
|
42
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
55
43
|
none: false
|
56
|
-
requirements:
|
57
|
-
- -
|
58
|
-
- !ruby/object:Gem::Version
|
59
|
-
|
60
|
-
- 0
|
61
|
-
version: "0"
|
44
|
+
requirements:
|
45
|
+
- - ! '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
62
48
|
requirements: []
|
63
|
-
|
64
49
|
rubyforge_project:
|
65
|
-
rubygems_version: 1.
|
50
|
+
rubygems_version: 1.8.10
|
66
51
|
signing_key:
|
67
52
|
specification_version: 3
|
68
53
|
summary: Twofish symmetric cipher in pure Ruby
|
69
|
-
test_files:
|
70
|
-
|
54
|
+
test_files:
|
55
|
+
- test/test_twofish.rb
|