digest-whirlpool 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +16 -19
- data/Gemfile +4 -0
- data/LICENSE +1 -1
- data/README.rdoc +2 -2
- data/Rakefile +13 -43
- data/digest-whirlpool.gemspec +23 -42
- data/ext/digest/whirlpool/extconf.rb +2 -0
- data/ext/digest/whirlpool/whirlpool.c +6 -2
- data/lib/digest/whirlpool.rb +2 -0
- data/lib/digest/whirlpool/version.rb +5 -0
- metadata +63 -50
- data/VERSION +0 -1
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 78e1353249562970b95f98a0eb63acb1e5a08f24
|
4
|
+
data.tar.gz: ba52002ff6d70224463b0cfe113f7734f69cdf32
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: dc5ec13a3b930aa4f41a84308947f9e08f9592df7e2b76c359ce74cacbe976183f1644a1ddf28816d1a233edbb68a4f41d25c3f26e98a242841a6bc1840fe3ca
|
7
|
+
data.tar.gz: 3d5bc2feba262f7bbce142da1e57b8f8c3bce02449e3cb957795cd6649a8ccbd4bf76629a05e5b886d0bee696d3bc3b2e5d7645bb874bfd030fc269e28b2d01d
|
data/.gitignore
CHANGED
@@ -1,21 +1,18 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
*~
|
10
|
-
\#*
|
11
|
-
.\#*
|
12
|
-
|
13
|
-
## VIM
|
14
|
-
*.swp
|
15
|
-
|
16
|
-
## PROJECT::GENERAL
|
1
|
+
*.gem
|
2
|
+
*.rbc
|
3
|
+
.bundle
|
4
|
+
.config
|
5
|
+
.yardoc
|
6
|
+
Gemfile.lock
|
7
|
+
InstalledFiles
|
8
|
+
_yardoc
|
17
9
|
coverage
|
18
|
-
|
10
|
+
doc/
|
11
|
+
lib/bundler/man
|
12
|
+
lib/**/*.so
|
19
13
|
pkg
|
20
|
-
|
21
|
-
|
14
|
+
rdoc
|
15
|
+
spec/reports
|
16
|
+
test/tmp
|
17
|
+
test/version_tmp
|
18
|
+
tmp
|
data/Gemfile
ADDED
data/LICENSE
CHANGED
data/README.rdoc
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
== Summary
|
4
4
|
|
5
5
|
Digest::Whirlpool is a Ruby library for calculating message digests
|
6
|
-
using the Whirlpool algorithm. The library interface
|
6
|
+
using the Whirlpool algorithm. The library interface conforms to the
|
7
7
|
standard Digest API.
|
8
8
|
|
9
9
|
More information about Whirlpool:
|
@@ -19,4 +19,4 @@ mentioned website.
|
|
19
19
|
|
20
20
|
== License
|
21
21
|
|
22
|
-
See the file LICENSE.
|
22
|
+
See the file LICENSE.
|
data/Rakefile
CHANGED
@@ -1,56 +1,26 @@
|
|
1
|
-
require '
|
2
|
-
require 'rake'
|
1
|
+
require 'bundler/gem_tasks'
|
3
2
|
|
4
|
-
|
5
|
-
require 'jeweler'
|
6
|
-
Jeweler::Tasks.new do |gem|
|
7
|
-
gem.name = "digest-whirlpool"
|
8
|
-
gem.summary = %Q{A Digest module implementing the Whirlpool hashing algorithm}
|
9
|
-
gem.description = <<-EOS
|
10
|
-
This is a Digest module implementing the Whirlpool hashing algorithm.
|
11
|
-
The size of a Whirlpool hash value is 512 bits.
|
12
|
-
EOS
|
13
|
-
gem.email = "knu@idaemons.org"
|
14
|
-
gem.homepage = "http://github.com/knu/ruby-digest-extra"
|
15
|
-
gem.authors = ["Akinori MUSHA"]
|
16
|
-
gem.extensions.concat FileList["ext/**/extconf.rb"]
|
17
|
-
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional set
|
18
|
-
end
|
19
|
-
Jeweler::GemcutterTasks.new
|
20
|
-
rescue LoadError
|
21
|
-
puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
|
22
|
-
end
|
3
|
+
gemspec = Bundler::GemHelper.gemspec
|
23
4
|
|
24
5
|
require 'rake/testtask'
|
25
6
|
Rake::TestTask.new(:test) do |test|
|
26
|
-
test.libs << '
|
27
|
-
test.
|
7
|
+
test.libs << 'test'
|
8
|
+
test.test_files = gemspec.test_files
|
28
9
|
test.verbose = true
|
29
10
|
end
|
30
11
|
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
test.pattern = 'test/**/test_*.rb'
|
36
|
-
test.verbose = true
|
37
|
-
end
|
38
|
-
rescue LoadError
|
39
|
-
task :rcov do
|
40
|
-
abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
|
41
|
-
end
|
12
|
+
require 'rake/extensiontask'
|
13
|
+
Rake::ExtensionTask.new('whirlpool', gemspec) do |ext|
|
14
|
+
ext.ext_dir = 'ext/digest/whirlpool'
|
15
|
+
ext.lib_dir = 'lib/digest'
|
42
16
|
end
|
43
17
|
|
44
|
-
task
|
45
|
-
|
46
|
-
task :default => :test
|
47
|
-
|
48
|
-
require 'rake/rdoctask'
|
18
|
+
require 'rdoc/task'
|
49
19
|
Rake::RDocTask.new do |rdoc|
|
50
|
-
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
51
|
-
|
52
20
|
rdoc.rdoc_dir = 'rdoc'
|
53
|
-
rdoc.title = "
|
54
|
-
rdoc.rdoc_files.include(
|
21
|
+
rdoc.title = "#{gemspec.name} #{gemspec.version}"
|
22
|
+
rdoc.rdoc_files.include(gemspec.extra_rdoc_files)
|
55
23
|
rdoc.rdoc_files.include('lib/**/*.rb')
|
56
24
|
end
|
25
|
+
|
26
|
+
task :default => :test
|
data/digest-whirlpool.gemspec
CHANGED
@@ -1,49 +1,30 @@
|
|
1
|
-
#
|
2
|
-
|
3
|
-
|
4
|
-
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'digest/whirlpool/version'
|
5
5
|
|
6
|
-
Gem::Specification.new do |
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
s.date = %q{2011-09-27}
|
13
|
-
s.description = %q{This is a Digest module implementing the Whirlpool hashing algorithm.
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "digest-whirlpool"
|
8
|
+
spec.version = Digest::Whirlpool::VERSION
|
9
|
+
spec.authors = ["Akinori MUSHA"]
|
10
|
+
spec.email = ["knu@idaemons.org"]
|
11
|
+
spec.description = %q{This is a Digest module implementing the Whirlpool hashing algorithm.
|
14
12
|
The size of a Whirlpool hash value is 512 bits.
|
15
13
|
}
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
14
|
+
spec.summary = %q{A Digest module implementing the Whirlpool hashing algorithm}
|
15
|
+
spec.homepage = "https://github.com/knu/ruby-digest-extra"
|
16
|
+
spec.license = "BSD"
|
17
|
+
|
18
|
+
spec.files = `git ls-files`.split($/)
|
19
|
+
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
20
|
+
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
21
|
+
spec.extensions = ["ext/digest/whirlpool/extconf.rb"]
|
22
|
+
|
23
|
+
spec.extra_rdoc_files = [
|
21
24
|
"LICENSE",
|
22
|
-
"README.rdoc"
|
23
|
-
"Rakefile",
|
24
|
-
"VERSION",
|
25
|
-
"digest-whirlpool.gemspec",
|
26
|
-
"ext/digest/whirlpool/depend",
|
27
|
-
"ext/digest/whirlpool/extconf.rb",
|
28
|
-
"ext/digest/whirlpool/whirlpool-algorithm.c",
|
29
|
-
"ext/digest/whirlpool/whirlpool-algorithm.h",
|
30
|
-
"ext/digest/whirlpool/whirlpool-constants.h",
|
31
|
-
"ext/digest/whirlpool/whirlpool-portability.h",
|
32
|
-
"ext/digest/whirlpool/whirlpool.c",
|
33
|
-
"test/test_digest-whirlpool.rb"
|
25
|
+
"README.rdoc"
|
34
26
|
]
|
35
|
-
s.homepage = %q{http://github.com/knu/ruby-digest-extra}
|
36
|
-
s.require_paths = [%q{lib}]
|
37
|
-
s.rubygems_version = %q{1.8.8}
|
38
|
-
s.summary = %q{A Digest module implementing the Whirlpool hashing algorithm}
|
39
27
|
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
44
|
-
else
|
45
|
-
end
|
46
|
-
else
|
47
|
-
end
|
28
|
+
spec.add_development_dependency "bundler", "~> 1.3"
|
29
|
+
spec.add_development_dependency "rake"
|
48
30
|
end
|
49
|
-
|
@@ -2,11 +2,15 @@
|
|
2
2
|
|
3
3
|
whirlpool.c - provides Digest::Whirlpool class
|
4
4
|
|
5
|
-
Copyright (C) 2006 Akinori MUSHA
|
5
|
+
Copyright (C) 2006-2013 Akinori MUSHA
|
6
6
|
|
7
7
|
************************************************/
|
8
8
|
|
9
|
+
#ifdef HAVE_RUBY_DIGEST_H
|
10
|
+
#include "ruby/digest.h"
|
11
|
+
#else
|
9
12
|
#include "digest.h"
|
13
|
+
#endif
|
10
14
|
#include "whirlpool-algorithm.h"
|
11
15
|
#include "whirlpool-portability.h"
|
12
16
|
|
@@ -15,7 +19,7 @@ static void WP_Update(WP_Struct * const, const unsigned char * const, size_t);
|
|
15
19
|
static rb_digest_metadata_t whirlpool = {
|
16
20
|
RUBY_DIGEST_API_VERSION,
|
17
21
|
WP_DIGEST_SIZE,
|
18
|
-
WBLOCKBYTES,
|
22
|
+
WBLOCKBYTES,
|
19
23
|
sizeof(WP_Struct),
|
20
24
|
(rb_digest_hash_init_func_t)WP_Init,
|
21
25
|
(rb_digest_hash_update_func_t)WP_Update,
|
metadata
CHANGED
@@ -1,41 +1,61 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: digest-whirlpool
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 0
|
9
|
-
- 1
|
10
|
-
version: 1.0.1
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.2
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- Akinori MUSHA
|
14
8
|
autorequire:
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
11
|
+
date: 2013-05-21 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.3'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.3'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
21
41
|
description: |
|
22
42
|
This is a Digest module implementing the Whirlpool hashing algorithm.
|
23
43
|
The size of a Whirlpool hash value is 512 bits.
|
24
|
-
|
25
|
-
|
44
|
+
email:
|
45
|
+
- knu@idaemons.org
|
26
46
|
executables: []
|
27
|
-
|
28
|
-
extensions:
|
47
|
+
extensions:
|
29
48
|
- ext/digest/whirlpool/extconf.rb
|
30
|
-
extra_rdoc_files:
|
31
|
-
|
32
|
-
|
49
|
+
extra_rdoc_files:
|
50
|
+
- LICENSE
|
51
|
+
- README.rdoc
|
52
|
+
files:
|
33
53
|
- .document
|
34
54
|
- .gitignore
|
55
|
+
- Gemfile
|
35
56
|
- LICENSE
|
36
57
|
- README.rdoc
|
37
58
|
- Rakefile
|
38
|
-
- VERSION
|
39
59
|
- digest-whirlpool.gemspec
|
40
60
|
- ext/digest/whirlpool/depend
|
41
61
|
- ext/digest/whirlpool/extconf.rb
|
@@ -44,39 +64,32 @@ files:
|
|
44
64
|
- ext/digest/whirlpool/whirlpool-constants.h
|
45
65
|
- ext/digest/whirlpool/whirlpool-portability.h
|
46
66
|
- ext/digest/whirlpool/whirlpool.c
|
67
|
+
- lib/digest/whirlpool.rb
|
68
|
+
- lib/digest/whirlpool/version.rb
|
47
69
|
- test/test_digest-whirlpool.rb
|
48
|
-
homepage:
|
49
|
-
licenses:
|
50
|
-
|
70
|
+
homepage: https://github.com/knu/ruby-digest-extra
|
71
|
+
licenses:
|
72
|
+
- BSD
|
73
|
+
metadata: {}
|
51
74
|
post_install_message:
|
52
75
|
rdoc_options: []
|
53
|
-
|
54
|
-
require_paths:
|
76
|
+
require_paths:
|
55
77
|
- lib
|
56
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
none: false
|
67
|
-
requirements:
|
68
|
-
- - ">="
|
69
|
-
- !ruby/object:Gem::Version
|
70
|
-
hash: 3
|
71
|
-
segments:
|
72
|
-
- 0
|
73
|
-
version: "0"
|
78
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '>='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
84
|
+
requirements:
|
85
|
+
- - '>='
|
86
|
+
- !ruby/object:Gem::Version
|
87
|
+
version: '0'
|
74
88
|
requirements: []
|
75
|
-
|
76
89
|
rubyforge_project:
|
77
|
-
rubygems_version:
|
90
|
+
rubygems_version: 2.0.3
|
78
91
|
signing_key:
|
79
|
-
specification_version:
|
92
|
+
specification_version: 4
|
80
93
|
summary: A Digest module implementing the Whirlpool hashing algorithm
|
81
|
-
test_files:
|
82
|
-
|
94
|
+
test_files:
|
95
|
+
- test/test_digest-whirlpool.rb
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
1.0.1
|