salsa20 0.1.0 → 0.1.1
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.
- checksums.yaml +15 -0
- data/.gitignore +2 -0
- data/.travis.yml +7 -0
- data/CHANGELOG +7 -0
- data/Gemfile +2 -0
- data/LICENSE +16 -20
- data/Rakefile +2 -0
- data/salsa20.gemspec +5 -3
- data/test/salsa20_test.rb +3 -0
- metadata +40 -21
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
ZjVhMWYxYmFjMzMwY2VmNTM4ZGNlODc2OGY4ZjI2Mzc0NWQzOGI0Mg==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
MmI5NDkyMjdjY2RmODllYTk3M2RmNjFjZTM2MDg5NmJjZmU5ZjBiYQ==
|
7
|
+
SHA512:
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
NzMxZWIzN2E0NTNhYjRkNTBjYjkxNThlNzQ2ZmFkOTgxYjBiZjI1NDMyYzQy
|
10
|
+
MmIxMmFjNzE5ZTIwZGEyZDc3ZjA1YjQxZDZhNmY2YTg3MGU4YzY3ODg1NzRj
|
11
|
+
MjJhNjRiZDcwNDEzOTNiOWYwZWZlMDljNmM5MjBlMGUzYmY4NzA=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
MmE3NTVlNTU3N2FhYjllZDU4ODRiYmMxN2ExMDRjYTZhMTk3ODY0YWUxZTE4
|
14
|
+
ZmRmNDJlYWNjYmQ1YjBhNmViNzg1NDIzMzgzZDU1ZDJmNzk4YTk2NmFmYWFm
|
15
|
+
OTc3OTRhMzIzMjhiMDE2YmEyNjdjNjM0OGVlYjg0NmQwNGE2NjY=
|
data/.gitignore
CHANGED
data/.travis.yml
ADDED
data/CHANGELOG
CHANGED
data/Gemfile
ADDED
data/LICENSE
CHANGED
@@ -1,25 +1,21 @@
|
|
1
|
-
Copyright (
|
2
|
-
|
1
|
+
Copyright (c) 2014 Dov Murik
|
3
2
|
|
4
3
|
Original C implementation of the Salsa20 algorithm by Daniel Bernstein.
|
5
4
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
6
11
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
1. Redistributions of source code must retain the above copyright notice, this
|
11
|
-
list of conditions and the following disclaimer.
|
12
|
-
2. Redistributions in binary form must reproduce the above copyright notice,
|
13
|
-
this list of conditions and the following disclaimer in the documentation
|
14
|
-
and/or other materials provided with the distribution.
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
15
14
|
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
24
|
-
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
25
|
-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/Rakefile
CHANGED
data/salsa20.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'salsa20'
|
3
|
-
s.version = '0.1.
|
3
|
+
s.version = '0.1.1'
|
4
4
|
|
5
5
|
s.summary = "Salsa20 stream cipher algorithm."
|
6
6
|
s.description = <<-EOF
|
@@ -13,8 +13,9 @@ Gem::Specification.new do |s|
|
|
13
13
|
|
14
14
|
s.test_files = `git ls-files test`.split("\n")
|
15
15
|
|
16
|
-
s.add_development_dependency '
|
17
|
-
s.add_development_dependency 'rake-compiler'
|
16
|
+
s.add_development_dependency 'rake', '~> 10.0'
|
17
|
+
s.add_development_dependency 'rake-compiler', '~> 0.9'
|
18
|
+
s.add_development_dependency 'rdoc', '~> 4.0'
|
18
19
|
|
19
20
|
s.has_rdoc = true
|
20
21
|
s.rdoc_options += ['--title', 'salsa20', '--main', 'README.rdoc']
|
@@ -25,4 +26,5 @@ Gem::Specification.new do |s|
|
|
25
26
|
s.authors = ["Dov Murik"]
|
26
27
|
s.email = "dov.murik@gmail.com"
|
27
28
|
s.homepage = "https://github.com/dubek/salsa20-ruby"
|
29
|
+
s.license = "MIT"
|
28
30
|
end
|
data/test/salsa20_test.rb
CHANGED
@@ -4,6 +4,9 @@ require 'test/unit'
|
|
4
4
|
class Salsa20Test < Test::Unit::TestCase
|
5
5
|
def test_salsa20_keystream
|
6
6
|
expected = "@\x8D\x94\xF48f9Z)\e\xBD\xB8?\xCC\xEC\xD6g\xB3;\xC7ev\v\xCA]\xEE\x19I;\xA2<\\^\xCEFQn\x94B{+\x06\xE2\x85\x9F\xEC\xBBp@\xA4\x8F\xD8~\xD3\x12\x197\f\xD7'\x8C\xC8\xEF\xFC"
|
7
|
+
if expected.respond_to?(:force_encoding)
|
8
|
+
expected.force_encoding(Encoding::ASCII_8BIT)
|
9
|
+
end
|
7
10
|
assert_equal expected, Salsa20.new("K"*32, "I"*8).encrypt("\x00"*64)
|
8
11
|
end
|
9
12
|
|
metadata
CHANGED
@@ -1,39 +1,57 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: salsa20
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Dov Murik
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
13
|
-
default_executable:
|
11
|
+
date: 2014-06-27 00:00:00.000000000 Z
|
14
12
|
dependencies:
|
15
13
|
- !ruby/object:Gem::Dependency
|
16
|
-
name:
|
17
|
-
requirement:
|
18
|
-
none: false
|
14
|
+
name: rake
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
19
16
|
requirements:
|
20
|
-
- -
|
17
|
+
- - ~>
|
21
18
|
- !ruby/object:Gem::Version
|
22
|
-
version: '0'
|
19
|
+
version: '10.0'
|
23
20
|
type: :development
|
24
21
|
prerelease: false
|
25
|
-
version_requirements:
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '10.0'
|
26
27
|
- !ruby/object:Gem::Dependency
|
27
28
|
name: rake-compiler
|
28
|
-
requirement:
|
29
|
-
none: false
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
33
|
+
version: '0.9'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
|
-
version_requirements:
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ~>
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0.9'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rdoc
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ~>
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '4.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '4.0'
|
37
55
|
description: ! " Salsa20 is a stream cipher algorithm designed by Daniel Bernstein.
|
38
56
|
salsa20-ruby provides\n a simple Ruby wrapper.\n"
|
39
57
|
email: dov.murik@gmail.com
|
@@ -47,7 +65,9 @@ extra_rdoc_files:
|
|
47
65
|
- lib/salsa20.rb
|
48
66
|
files:
|
49
67
|
- .gitignore
|
68
|
+
- .travis.yml
|
50
69
|
- CHANGELOG
|
70
|
+
- Gemfile
|
51
71
|
- LICENSE
|
52
72
|
- README.rdoc
|
53
73
|
- Rakefile
|
@@ -61,9 +81,10 @@ files:
|
|
61
81
|
- lib/salsa20.rb
|
62
82
|
- salsa20.gemspec
|
63
83
|
- test/salsa20_test.rb
|
64
|
-
has_rdoc: true
|
65
84
|
homepage: https://github.com/dubek/salsa20-ruby
|
66
|
-
licenses:
|
85
|
+
licenses:
|
86
|
+
- MIT
|
87
|
+
metadata: {}
|
67
88
|
post_install_message:
|
68
89
|
rdoc_options:
|
69
90
|
- --title
|
@@ -73,22 +94,20 @@ rdoc_options:
|
|
73
94
|
require_paths:
|
74
95
|
- lib
|
75
96
|
required_ruby_version: !ruby/object:Gem::Requirement
|
76
|
-
none: false
|
77
97
|
requirements:
|
78
98
|
- - ! '>='
|
79
99
|
- !ruby/object:Gem::Version
|
80
100
|
version: '0'
|
81
101
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
82
|
-
none: false
|
83
102
|
requirements:
|
84
103
|
- - ! '>='
|
85
104
|
- !ruby/object:Gem::Version
|
86
105
|
version: '0'
|
87
106
|
requirements: []
|
88
107
|
rubyforge_project:
|
89
|
-
rubygems_version:
|
108
|
+
rubygems_version: 2.2.1
|
90
109
|
signing_key:
|
91
|
-
specification_version:
|
110
|
+
specification_version: 4
|
92
111
|
summary: Salsa20 stream cipher algorithm.
|
93
112
|
test_files:
|
94
113
|
- test/salsa20_test.rb
|