salsa20 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -6,3 +6,5 @@ doc
6
6
  pkg
7
7
  *.class
8
8
  tmp/
9
+ *.gem
10
+ Gemfile.lock
@@ -0,0 +1,7 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.1.1
4
+ - 2.0.0
5
+ - 1.9.3
6
+ - 1.8.7
7
+ - rbx-2
data/CHANGELOG CHANGED
@@ -1,3 +1,10 @@
1
+ 0.1.1 Jun 27 2014
2
+
3
+ - Fix tests on Ruby 1.9.x
4
+ - Add bundler support to ease development
5
+ - Add Travis CI config file
6
+ - Detailed dependencies versions
7
+
1
8
  0.1.0 Aug 20 2011
2
9
 
3
10
  - Initial release
data/Gemfile ADDED
@@ -0,0 +1,2 @@
1
+ source "https://rubygems.org"
2
+ gemspec
data/LICENSE CHANGED
@@ -1,25 +1,21 @@
1
- Copyright (C) 2011-2011 Dov Murik. All rights reserved.
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
- Redistribution and use in source and binary forms, with or without
8
- modification, are permitted provided that the following conditions are met:
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
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17
- ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18
- WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19
- DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
20
- FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22
- SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
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
@@ -3,6 +3,8 @@ require 'rdoc/task'
3
3
  require 'rake/extensiontask'
4
4
  require 'rake/testtask'
5
5
 
6
+ task :default => [:compile, :test, :rdoc]
7
+
6
8
  GEMSPEC = eval(File.read(File.expand_path("../salsa20.gemspec", __FILE__)))
7
9
 
8
10
  Rake::ExtensionTask.new('salsa20_ext')
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'salsa20'
3
- s.version = '0.1.0'
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 'rdoc'
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
@@ -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.0
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: 2011-08-20 00:00:00.000000000 +03:00
13
- default_executable:
11
+ date: 2014-06-27 00:00:00.000000000 Z
14
12
  dependencies:
15
13
  - !ruby/object:Gem::Dependency
16
- name: rdoc
17
- requirement: &2156666300 !ruby/object:Gem::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: *2156666300
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: &2156665860 !ruby/object:Gem::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: *2156665860
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: 1.6.2
108
+ rubygems_version: 2.2.1
90
109
  signing_key:
91
- specification_version: 3
110
+ specification_version: 4
92
111
  summary: Salsa20 stream cipher algorithm.
93
112
  test_files:
94
113
  - test/salsa20_test.rb