digest-kangarootwelve 0.4.4 → 0.4.5

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
  SHA256:
3
- metadata.gz: a6d704428596e208194d0a66067cd47fd93f86c87a4ed83aa68bf365dd118cc9
4
- data.tar.gz: a582a30602bd9573c4188280a4b8a9d7e5ee5a9bb383b93be7c86434d274c4f9
3
+ metadata.gz: 5c8b25102cf3f6a925000487653a245a6f153de17a12319ebfd1c6c25549daf6
4
+ data.tar.gz: 12d05f0e8b6927105aebc1feffb5bb68482f9235fa6afcee2265b4eeba54cdb2
5
5
  SHA512:
6
- metadata.gz: 78db569f6b9c4943f970aece5c07900f4e6d312bc9d294b70331d8cad4cc511af259ffb579531e1266f0ff1f0d31da82cefb7fe7dd377c7eecb613c444c684d1
7
- data.tar.gz: 8e11295c04a7b274f4b60f6bbd789bc4bd3f3a1c391b69103aa45a17c68331c9e877539ec47208f04d31e4602f5236f20e811989ae9d7798f06ba85381939027
6
+ metadata.gz: f3e2047eb8379800ba6fe5bd2b4af801ea3a64e1d62581dd9f0267e2d0ee87c5e963e1e2874d5b57f99c4e5f007fb07fe8749ce3ea452482ea076964e213af6f
7
+ data.tar.gz: 9af6b30aef3113ad635cb870628adce507728d684de587d54fb0c14a96d9e0ee1aa984a4cdf32fd18fa50ed1bd1df2711e166c65c656ebc1391963d36b44685f
data/Rakefile CHANGED
@@ -1,11 +1,23 @@
1
1
  # build, clean, clobber, release[remote]
2
+
2
3
  require 'bundler/gem_tasks'
3
4
 
4
- # compile, compile:digest/kangarootwelve
5
- require 'rake/extensiontask'
6
- Rake::ExtensionTask.new('digest/kangarootwelve', Bundler::GemHelper.gemspec)
5
+ # clean
6
+
7
+ CLEAN.include "ext/digest/kangarootwelve/Makefile"
8
+ CLEAN.include "ext/digest/kangarootwelve/**/*.o"
9
+ CLEAN.include "ext/digest/kangarootwelve/**/*.so"
10
+
11
+ # clobber
12
+
13
+ if File.exist?(".git")
14
+ CLOBBER.include "LICENSE.XKCP"
15
+ CLOBBER.include "ext/digest/kangarootwelve/XKCP"
16
+ CLOBBER.include "ext/digest/kangarootwelve/targets"
17
+ end
7
18
 
8
19
  # initialize_xkcp
20
+
9
21
  desc "Initialize and update XKCP submodule"
10
22
  task :initialize_xkcp => ".git" do |t|
11
23
  puts "Initializing and updating XKCP submodule"
@@ -16,6 +28,7 @@ file "XKCP/Makefile.build" => :initialize_xkcp
16
28
  file "XKCP/README.markdown" => :initialize_xkcp
17
29
 
18
30
  # import_xkcp_license
31
+
19
32
  task :import_xkcp_license do
20
33
  Rake::Task["XKCP/README.markdown"].invoke
21
34
  puts "Extracting XKCP license from \"XKCP/README.markdown\" and saving it to \"LICENSE.XKCP\"."
@@ -30,9 +43,8 @@ end.instance_eval do
30
43
  end
31
44
  end
32
45
 
33
- Rake::Task[:build].prerequisites.unshift :import_xkcp_license
34
-
35
46
  # import_xkcp_files_lazy
47
+
36
48
  task :import_xkcp_files_lazy do
37
49
  Rake::Task[:import_xkcp_files].invoke
38
50
  end.instance_eval do
@@ -41,10 +53,20 @@ end.instance_eval do
41
53
  end
42
54
  end
43
55
 
44
- Rake::Task[:build].prerequisites.unshift :import_xkcp_files_lazy
56
+ # build
57
+
58
+ Rake::Task[:build].prerequisites.unshift :import_xkcp_files
59
+ Rake::Task[:build].prerequisites.unshift :import_xkcp_license
60
+ Rake::Task[:build].prerequisites.unshift :clobber
61
+
62
+ # compile, compile:digest/kangarootwelve
63
+
64
+ require 'rake/extensiontask'
65
+ Rake::ExtensionTask.new('digest/kangarootwelve', Bundler::GemHelper.gemspec)
45
66
  Rake::Task[:compile].prerequisites.unshift :import_xkcp_files_lazy
46
67
 
47
68
  # compile_lazy
69
+
48
70
  task :compile_lazy do
49
71
  Rake::Task[:compile].invoke
50
72
  end.instance_eval do
@@ -54,19 +76,16 @@ end.instance_eval do
54
76
  end
55
77
 
56
78
  # test
79
+
57
80
  require 'rake/testtask'
81
+
58
82
  Rake::TestTask.new(:test => :compile_lazy) do |t|
59
83
  t.test_files = FileList['test/test.rb']
60
84
  t.verbose = true
61
85
  end
62
86
 
63
87
  # default
64
- task :default => [:compile, :test]
65
88
 
66
- if File.exist?(".git")
67
- CLOBBER.include "LICENSE.XKCP"
68
- CLOBBER.include "ext/digest/kangarootwelve/XKCP"
69
- CLOBBER.include "ext/digest/kangarootwelve/targets"
70
- end
89
+ task :default => [:compile, :test]
71
90
 
72
91
  # Run `rake --tasks` or `rake --tasks --all` for a list of tasks.
@@ -25,7 +25,7 @@ Please refer to SnP-documentation.h for more details.
25
25
 
26
26
  #define KeccakP1600_implementation "implementation optimized for XOP (" KeccakP1600_implementation_config ")"
27
27
  #define KeccakP1600_stateSizeInBytes 200
28
- #define KeccakP1600_stateAlignment 8
28
+ #define KeccakP1600_stateAlignment 16
29
29
 
30
30
  #include <stddef.h>
31
31
 
@@ -1,5 +1,5 @@
1
1
  module Digest
2
2
  module KangarooTwelve
3
- VERSION = "0.4.4"
3
+ VERSION = "0.4.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: digest-kangarootwelve
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - konsolebox
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-02 00:00:00.000000000 Z
11
+ date: 2022-05-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -902,7 +902,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
902
902
  - !ruby/object:Gem::Version
903
903
  version: '0'
904
904
  requirements: []
905
- rubygems_version: 3.2.22
905
+ rubygems_version: 3.3.8
906
906
  signing_key:
907
907
  specification_version: 4
908
908
  summary: KangarooTwelve for Ruby