salsa20 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5d966534c16ad97b8054b7c1ebb287c7543e6ea2
4
- data.tar.gz: b963cde653fa19981b09cd435dc573e257efa267
3
+ metadata.gz: 433230d966c944524732f4b8d4b5b4c289ebf8cc
4
+ data.tar.gz: aa1fa5ce217a0fa12b35f3ff62d6361fcfecba28
5
5
  SHA512:
6
- metadata.gz: ee0265ac7eb9b5bf4e2d3ac77530e031b097937ed565b2d9dd30d1340170c19117180733d82ddd1e549900425f4c244609074e1f56de5fdd65c345b15e884bdb
7
- data.tar.gz: 1c17f1ac17617fc45d72e77d4eb6bc29e834e325cd79de443c62e677c4499c3eeffeb5aa99affb8723c80a608546d803d722bf51d90b591c34b352571b005cf1
6
+ metadata.gz: 1d24d7731259469f6a58cd952ece4945d05f8e18e6cadfcf6464c12338afb5c47cedb1209b62cd91dd8371c18b87709a9b04bf20966ca309f6b8323f226e0f96
7
+ data.tar.gz: f6029d2b3061be16e7f83bf68144720827d4b7385308a6b0cb7a4eda8f5a56a67bdc67972a1ad69d777d3553602c3122ca4a13535d22ed1b136ef2f43390872c
@@ -3,7 +3,6 @@ sudo: false
3
3
  cache: bundler
4
4
  rvm:
5
5
  - ruby-head
6
- - 2.2.3
7
- - 1.9.3
8
- - 1.8.7
9
- - rbx
6
+ - 2.5
7
+ - 2.4
8
+ - 2.3
data/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ 0.1.3 Sep 23 2018
2
+
3
+ - Correct compilation for SmartOS/Illumos on little-endian CPUs (by @bahamas10)
4
+ - Update dependencies versions
5
+
1
6
  0.1.2 Nov 10 2015
2
7
 
3
8
  - Use minitest for unit testing
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014 Dov Murik
1
+ Copyright (c) 2014, 2015, 2018 Dov Murik
2
2
 
3
3
  Original C implementation of the Salsa20 algorithm by Daniel Bernstein.
4
4
 
@@ -9,6 +9,22 @@
9
9
 
10
10
  /* Guess the endianness of the target architecture. */
11
11
 
12
+ /* First try to look for precompiler hints */
13
+ #if defined(__BYTE_ORDER__) && defined(__ORDER_LITTLE_ENDIAN__) \
14
+ && defined(__ORDER_BIG_ENDIAN__)
15
+
16
+ #if __BYTE_ORDER__ == __ORDER_LITTLE_ENDIAN__
17
+ #define ECRYPT_LITTLE_ENDIAN
18
+ #elif __BYTE_ORDER__ == __ORDER_BIG_ENDIAN__
19
+ #define ECRYPT_BIG_ENDIAN
20
+ #endif
21
+
22
+ #endif
23
+
24
+ #if !defined(ECRYPT_BIG_ENDIAN) && !defined(ECRYPT_LITTLE_ENDIAN)
25
+
26
+ /* No precompiler hints, fallback to best guess method */
27
+
12
28
  /*
13
29
  * The LITTLE endian machines:
14
30
  */
@@ -30,11 +46,19 @@
30
46
  /*
31
47
  * The BIG endian machines:
32
48
  */
33
- #elif defined(sun) /* Newer Sparc's */
34
- #define ECRYPT_BIG_ENDIAN
35
49
  #elif defined(__ppc__) /* PowerPC */
36
50
  #define ECRYPT_BIG_ENDIAN
37
51
 
52
+ /*
53
+ * Machines that can be either:
54
+ */
55
+ #elif defined(sun)
56
+ #if defined(__sparc)
57
+ #define ECRYPT_BIG_ENDIAN
58
+ #else
59
+ #define ECRYPT_LITTLE_ENDIAN
60
+ #endif
61
+
38
62
  /*
39
63
  * Finally machines with UNKNOWN endianness:
40
64
  */
@@ -52,6 +76,8 @@
52
76
  #define ECRYPT_UNKNOWN
53
77
  #endif
54
78
 
79
+ #endif /* if !defined(ECRYPT_LITTLE_ENDIAN) ... */
80
+
55
81
  /* ------------------------------------------------------------------------- */
56
82
 
57
83
  /*
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'salsa20'
3
- s.version = '0.1.2'
3
+ s.version = '0.1.3'
4
4
 
5
5
  s.summary = "Salsa20 stream cipher algorithm."
6
6
  s.description = <<-EOF
@@ -14,9 +14,9 @@ Gem::Specification.new do |s|
14
14
  s.test_files = `git ls-files test`.split("\n")
15
15
 
16
16
  s.add_development_dependency 'minitest', "~> 5.0"
17
- s.add_development_dependency 'rake', '~> 10.0'
18
- s.add_development_dependency 'rake-compiler', '~> 0.9'
19
- s.add_development_dependency 'rdoc', '~> 4.0'
17
+ s.add_development_dependency 'rake', '~> 12.0'
18
+ s.add_development_dependency 'rake-compiler', '~> 1.0'
19
+ s.add_development_dependency 'rdoc', '~> 6.0'
20
20
 
21
21
  s.has_rdoc = true
22
22
  s.rdoc_options += ['--title', 'salsa20', '--main', 'README.rdoc']
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: salsa20
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dov Murik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-10 00:00:00.000000000 Z
11
+ date: 2018-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest
@@ -30,42 +30,42 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '10.0'
33
+ version: '12.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '10.0'
40
+ version: '12.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake-compiler
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0.9'
47
+ version: '1.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0.9'
54
+ version: '1.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rdoc
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '4.0'
61
+ version: '6.0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '4.0'
68
+ version: '6.0'
69
69
  description: |2
70
70
  Salsa20 is a stream cipher algorithm designed by Daniel Bernstein. salsa20-ruby provides
71
71
  a simple Ruby wrapper.
@@ -120,10 +120,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  version: '0'
121
121
  requirements: []
122
122
  rubyforge_project:
123
- rubygems_version: 2.4.8
123
+ rubygems_version: 2.5.2.1
124
124
  signing_key:
125
125
  specification_version: 4
126
126
  summary: Salsa20 stream cipher algorithm.
127
127
  test_files:
128
128
  - test/salsa20_test.rb
129
- has_rdoc: true