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 +4 -4
- data/.travis.yml +3 -4
- data/CHANGELOG +5 -0
- data/LICENSE +1 -1
- data/ext/salsa20_ext/ecrypt-config.h +28 -2
- data/salsa20.gemspec +4 -4
- metadata +9 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 433230d966c944524732f4b8d4b5b4c289ebf8cc
|
4
|
+
data.tar.gz: aa1fa5ce217a0fa12b35f3ff62d6361fcfecba28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d24d7731259469f6a58cd952ece4945d05f8e18e6cadfcf6464c12338afb5c47cedb1209b62cd91dd8371c18b87709a9b04bf20966ca309f6b8323f226e0f96
|
7
|
+
data.tar.gz: f6029d2b3061be16e7f83bf68144720827d4b7385308a6b0cb7a4eda8f5a56a67bdc67972a1ad69d777d3553602c3122ca4a13535d22ed1b136ef2f43390872c
|
data/.travis.yml
CHANGED
data/CHANGELOG
CHANGED
data/LICENSE
CHANGED
@@ -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
|
/*
|
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.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', '~>
|
18
|
-
s.add_development_dependency 'rake-compiler', '~> 0
|
19
|
-
s.add_development_dependency 'rdoc', '~>
|
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.
|
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:
|
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: '
|
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: '
|
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
|
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
|
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: '
|
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: '
|
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.
|
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
|