sha3 1.0.3 → 1.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (56) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data/.rspec +3 -1
  4. data/.rubocop.yml +6 -0
  5. data/Gemfile +3 -1
  6. data/README.md +10 -7
  7. data/Rakefile +10 -37
  8. data/certs/johanns.pem +25 -0
  9. data/ext/sha3/config.h +26 -0
  10. data/ext/sha3/digest.c +6 -6
  11. data/ext/sha3/extconf.rb +40 -16
  12. data/ext/sha3/lib/common/align.h +33 -0
  13. data/ext/sha3/{brg_endian.h → lib/common/brg_endian.h} +8 -7
  14. data/ext/sha3/{KeccakHash.c → lib/high/Keccak/FIPS202/KeccakHash.c} +26 -25
  15. data/ext/sha3/{KeccakHash.h → lib/high/Keccak/FIPS202/KeccakHash.h} +34 -19
  16. data/ext/sha3/lib/high/Keccak/KeccakSponge.c +111 -0
  17. data/ext/sha3/lib/high/Keccak/KeccakSponge.h +76 -0
  18. data/ext/sha3/lib/high/Keccak/KeccakSponge.inc +316 -0
  19. data/ext/sha3/lib/low/KeccakP-1600/common/KeccakP-1600-64.macros +748 -0
  20. data/ext/sha3/lib/low/KeccakP-1600/common/KeccakP-1600-unrolling.macros +305 -0
  21. data/ext/sha3/lib/low/KeccakP-1600/ref-32bits/KeccakP-1600-SnP.h +44 -0
  22. data/ext/sha3/lib/low/KeccakP-1600/ref-32bits/KeccakP-1600-reference.h +23 -0
  23. data/ext/sha3/lib/low/KeccakP-1600/ref-32bits/KeccakP-1600-reference32BI.c +625 -0
  24. data/ext/sha3/lib/low/KeccakP-1600/ref-64bits/KeccakP-1600-SnP.h +44 -0
  25. data/ext/sha3/lib/low/KeccakP-1600/ref-64bits/KeccakP-1600-reference.c +444 -0
  26. data/ext/sha3/lib/low/KeccakP-1600/ref-64bits/KeccakP-1600-reference.h +23 -0
  27. data/lib/sha3/doc.rb +4 -4
  28. data/lib/sha3/version.rb +4 -4
  29. data/lib/sha3.rb +15 -13
  30. data/sha3.gemspec +53 -22
  31. data/tests.sh +8 -7
  32. data.tar.gz.sig +0 -0
  33. metadata +100 -51
  34. metadata.gz.sig +0 -0
  35. data/.gitignore +0 -234
  36. data/.travis.yml +0 -21
  37. data/Gemfile.ci +0 -8
  38. data/ext/sha3/KeccakF-1600-interface.h +0 -40
  39. data/ext/sha3/KeccakSponge.c +0 -192
  40. data/ext/sha3/KeccakSponge.h +0 -113
  41. data/ext/sha3/Optimized64/KeccakF-1600-64.macros +0 -2199
  42. data/ext/sha3/Optimized64/KeccakF-1600-opt64-settings.h +0 -3
  43. data/ext/sha3/Optimized64/KeccakF-1600-opt64.c +0 -508
  44. data/ext/sha3/Optimized64/KeccakF-1600-unrolling.macros +0 -126
  45. data/ext/sha3/Optimized64/SnP-interface.h +0 -47
  46. data/ext/sha3/Reference/KeccakF-1600-reference.c +0 -311
  47. data/ext/sha3/Reference/KeccakF-reference.h +0 -26
  48. data/ext/sha3/Reference/SnP-FBWL-default.c +0 -96
  49. data/ext/sha3/Reference/SnP-FBWL-default.h +0 -26
  50. data/ext/sha3/Reference/SnP-interface.h +0 -42
  51. data/ext/sha3/Reference/displayIntermediateValues.c +0 -158
  52. data/ext/sha3/Reference/displayIntermediateValues.h +0 -34
  53. data/ext/sha3/SnP-Relaned.h +0 -249
  54. data/spec/generate_tests.rb +0 -49
  55. data/spec/sha3_core_spec.rb +0 -148
  56. data/spec/spec_helper.rb +0 -4
metadata CHANGED
@@ -1,126 +1,178 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sha3
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johanns Gregorian
8
8
  autorequire:
9
- bindir: bin
10
- cert_chain: []
11
- date: 2021-09-24 00:00:00.000000000 Z
9
+ bindir: exe
10
+ cert_chain:
11
+ - |
12
+ -----BEGIN CERTIFICATE-----
13
+ MIIETDCCArSgAwIBAgIBATANBgkqhkiG9w0BAQsFADA2MQswCQYDVQQDDAJpbzET
14
+ MBEGCgmSJomT8ixkARkWA2pzZzESMBAGCgmSJomT8ixkARkWAmlvMB4XDTIyMTAy
15
+ NDA2MzcxMVoXDTIzMTAyNDA2MzcxMVowNjELMAkGA1UEAwwCaW8xEzARBgoJkiaJ
16
+ k/IsZAEZFgNqc2cxEjAQBgoJkiaJk/IsZAEZFgJpbzCCAaIwDQYJKoZIhvcNAQEB
17
+ BQADggGPADCCAYoCggGBALQTl5BGmtYGvljWwOTxe2Uul7RoBcSOwFUh03qUvHJf
18
+ 1LmWr6y1j97ogl/VffBXpbtTU4adZa+qTxfMs7GpfKDjikSIieZ7SrMNB68zCH0e
19
+ undHx+bMutN7919rviHfGyaXlQK4SsuWUl4AOlgT69VPQp6dOBYY9T78jbr/ZcG6
20
+ +mDlRpNfPVg5i67euvpR5dO9SpO1HNoHmzx5L4wYNr9QykIft1oA+Ne+SAF66ykn
21
+ agugF/R0Q7s+5Bpt3gr6SF2CvKsNJ2IS5TJO9unhLZ+h8FO7dcQw1EuJ31uHQKiD
22
+ rWUv2tnKCvLkHg0S69VeQtQv58dklJ3iFJcSen4VRtC7r5JMEd1VrdpXU4JQ54gY
23
+ tWrqWmazF9SOErbgvDlJgmlkMMkX6aoZ21/f1s6Z2myzP3KkRBjCf51BrgHTXTJD
24
+ 28ANp21H0o0HhrpVFJVDjToXRLczsw0O9lnL+khzkeZoc+YTZuvJDLKokavXhb4a
25
+ vESgRttXjyN5jBKY7yFhKQIDAQABo2UwYzAJBgNVHRMEAjAAMAsGA1UdDwQEAwIE
26
+ sDAdBgNVHQ4EFgQUKmyX3Q2uwTPM9S5+K/5kg7qe3ugwFAYDVR0RBA0wC4EJaW9A
27
+ anNnLmlvMBQGA1UdEgQNMAuBCWlvQGpzZy5pbzANBgkqhkiG9w0BAQsFAAOCAYEA
28
+ TexWHx3uLVObT+ylm3OE8Iue3cHdrDVE3zSjo8VlU3u1WBznH9MdoiPB7wux61Zx
29
+ jXUzBUaT7y7JnDaVGnECkpHXhfvPOYHBgkqEws6i79lAk/Va2U7EVPj0moM9d4Hv
30
+ 12V8YVM1Z9QnfwBVo7YGb5o7W8lr01jj1gT+Qcw+kln7M3Y9RB+jQ4DwySHVIEMc
31
+ Ow7//MF7bhCz6T5uAOXlGe88wTHKW+fO1AmW5MIQZUojR5Ioxm80v2YdW/JnQZ1l
32
+ 3VFpCutilnhDuzSw3DhgxReX7AK42aXFFclIzi11twW4KUPdt1KIvaoL/DgbZivl
33
+ PVG86dx4gfax2Mc2PiM+d1DiSllh+chh4dqRkIyhj0S4V7McQHkwW1ZBJ3kDf5rt
34
+ 1O/udKquzj7egb6uceqzBB40W/1/CsNkGNpNZ8Bk8lrTmKw+3bJpj+nKWxovmF2p
35
+ VhzZDQf2jkcjBXKNA9Z5ku7g0TCR1/Y1V3ODgkTLqhw+kQZmlbQEVzcwxGk9eL8z
36
+ -----END CERTIFICATE-----
37
+ date: 2022-10-24 00:00:00.000000000 Z
12
38
  dependencies:
39
+ - !ruby/object:Gem::Dependency
40
+ name: rake
41
+ requirement: !ruby/object:Gem::Requirement
42
+ requirements:
43
+ - - "~>"
44
+ - !ruby/object:Gem::Version
45
+ version: '13.0'
46
+ type: :development
47
+ prerelease: false
48
+ version_requirements: !ruby/object:Gem::Requirement
49
+ requirements:
50
+ - - "~>"
51
+ - !ruby/object:Gem::Version
52
+ version: '13.0'
13
53
  - !ruby/object:Gem::Dependency
14
54
  name: rake-compiler
15
55
  requirement: !ruby/object:Gem::Requirement
16
56
  requirements:
17
57
  - - "~>"
18
58
  - !ruby/object:Gem::Version
19
- version: '1.1'
59
+ version: '1.2'
20
60
  type: :development
21
61
  prerelease: false
22
62
  version_requirements: !ruby/object:Gem::Requirement
23
63
  requirements:
24
64
  - - "~>"
25
65
  - !ruby/object:Gem::Version
26
- version: '1.1'
66
+ version: '1.2'
27
67
  - !ruby/object:Gem::Dependency
28
68
  name: rspec
29
69
  requirement: !ruby/object:Gem::Requirement
30
70
  requirements:
31
71
  - - "~>"
32
72
  - !ruby/object:Gem::Version
33
- version: '3.3'
73
+ version: '3.11'
34
74
  type: :development
35
75
  prerelease: false
36
76
  version_requirements: !ruby/object:Gem::Requirement
37
77
  requirements:
38
78
  - - "~>"
39
79
  - !ruby/object:Gem::Version
40
- version: '3.3'
80
+ version: '3.11'
41
81
  - !ruby/object:Gem::Dependency
42
- name: rubygems-tasks
82
+ name: rubocop
43
83
  requirement: !ruby/object:Gem::Requirement
44
84
  requirements:
45
85
  - - "~>"
46
86
  - !ruby/object:Gem::Version
47
- version: '0.2'
87
+ version: '1.37'
48
88
  type: :development
49
89
  prerelease: false
50
90
  version_requirements: !ruby/object:Gem::Requirement
51
91
  requirements:
52
92
  - - "~>"
53
93
  - !ruby/object:Gem::Version
54
- version: '0.2'
94
+ version: '1.37'
55
95
  - !ruby/object:Gem::Dependency
56
- name: yard
96
+ name: rubocop-rake
57
97
  requirement: !ruby/object:Gem::Requirement
58
98
  requirements:
59
99
  - - "~>"
60
100
  - !ruby/object:Gem::Version
61
- version: '0.9'
101
+ version: '0.6'
62
102
  type: :development
63
103
  prerelease: false
64
104
  version_requirements: !ruby/object:Gem::Requirement
65
105
  requirements:
66
106
  - - "~>"
67
107
  - !ruby/object:Gem::Version
68
- version: '0.9'
69
- description: SHA3 for Ruby is a native (C) FIPS 202 compliant implementation of SHA3
70
- (Keccak) cryptographic hashing algorithm.
71
- email: io+sha3@jsg.io
108
+ version: '0.6'
109
+ - !ruby/object:Gem::Dependency
110
+ name: rubocop-rspec
111
+ requirement: !ruby/object:Gem::Requirement
112
+ requirements:
113
+ - - "~>"
114
+ - !ruby/object:Gem::Version
115
+ version: '2.14'
116
+ type: :development
117
+ prerelease: false
118
+ version_requirements: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - "~>"
121
+ - !ruby/object:Gem::Version
122
+ version: '2.14'
123
+ description: A XKCP based native (C) binding to SHA3 (FIPS 202) cryptographic hashing
124
+ algorithm.
125
+ email:
126
+ - io+sha3@jsg.io
72
127
  executables: []
73
128
  extensions:
74
129
  - ext/sha3/extconf.rb
75
130
  extra_rdoc_files: []
76
131
  files:
77
132
  - ".document"
78
- - ".gitignore"
79
133
  - ".rspec"
80
- - ".travis.yml"
134
+ - ".rubocop.yml"
81
135
  - ".yardopts"
82
136
  - ChangeLog.rdoc
83
137
  - Gemfile
84
- - Gemfile.ci
85
138
  - LICENSE.txt
86
139
  - README.md
87
140
  - Rakefile
88
- - ext/sha3/KeccakF-1600-interface.h
89
- - ext/sha3/KeccakHash.c
90
- - ext/sha3/KeccakHash.h
91
- - ext/sha3/KeccakSponge.c
92
- - ext/sha3/KeccakSponge.h
93
- - ext/sha3/Optimized64/KeccakF-1600-64.macros
94
- - ext/sha3/Optimized64/KeccakF-1600-opt64-settings.h
95
- - ext/sha3/Optimized64/KeccakF-1600-opt64.c
96
- - ext/sha3/Optimized64/KeccakF-1600-unrolling.macros
97
- - ext/sha3/Optimized64/SnP-interface.h
98
- - ext/sha3/Reference/KeccakF-1600-reference.c
99
- - ext/sha3/Reference/KeccakF-reference.h
100
- - ext/sha3/Reference/SnP-FBWL-default.c
101
- - ext/sha3/Reference/SnP-FBWL-default.h
102
- - ext/sha3/Reference/SnP-interface.h
103
- - ext/sha3/Reference/displayIntermediateValues.c
104
- - ext/sha3/Reference/displayIntermediateValues.h
105
- - ext/sha3/SnP-Relaned.h
106
- - ext/sha3/brg_endian.h
141
+ - certs/johanns.pem
142
+ - ext/sha3/config.h
107
143
  - ext/sha3/digest.c
108
144
  - ext/sha3/digest.h
109
145
  - ext/sha3/extconf.rb
146
+ - ext/sha3/lib/common/align.h
147
+ - ext/sha3/lib/common/brg_endian.h
148
+ - ext/sha3/lib/high/Keccak/FIPS202/KeccakHash.c
149
+ - ext/sha3/lib/high/Keccak/FIPS202/KeccakHash.h
150
+ - ext/sha3/lib/high/Keccak/KeccakSponge.c
151
+ - ext/sha3/lib/high/Keccak/KeccakSponge.h
152
+ - ext/sha3/lib/high/Keccak/KeccakSponge.inc
153
+ - ext/sha3/lib/low/KeccakP-1600/common/KeccakP-1600-64.macros
154
+ - ext/sha3/lib/low/KeccakP-1600/common/KeccakP-1600-unrolling.macros
155
+ - ext/sha3/lib/low/KeccakP-1600/ref-32bits/KeccakP-1600-SnP.h
156
+ - ext/sha3/lib/low/KeccakP-1600/ref-32bits/KeccakP-1600-reference.h
157
+ - ext/sha3/lib/low/KeccakP-1600/ref-32bits/KeccakP-1600-reference32BI.c
158
+ - ext/sha3/lib/low/KeccakP-1600/ref-64bits/KeccakP-1600-SnP.h
159
+ - ext/sha3/lib/low/KeccakP-1600/ref-64bits/KeccakP-1600-reference.c
160
+ - ext/sha3/lib/low/KeccakP-1600/ref-64bits/KeccakP-1600-reference.h
110
161
  - ext/sha3/sha3.c
111
162
  - ext/sha3/sha3.h
112
163
  - lib/sha3.rb
113
164
  - lib/sha3/doc.rb
114
165
  - lib/sha3/version.rb
115
166
  - sha3.gemspec
116
- - spec/generate_tests.rb
117
- - spec/sha3_core_spec.rb
118
- - spec/spec_helper.rb
119
167
  - tests.sh
120
- homepage: https://github.com/johanns/sha3#readme
168
+ homepage: https://github.com/johanns/sha3
121
169
  licenses:
122
170
  - MIT
123
- metadata: {}
171
+ metadata:
172
+ changelog_uri: https://github.com/johanns/sha3/CHANGELOG.md
173
+ homepage_uri: https://github.com/johanns/sha3
174
+ source_code_uri: https://github.com/johanns/sha3
175
+ rubygems_mfa_required: 'true'
124
176
  post_install_message:
125
177
  rdoc_options: []
126
178
  require_paths:
@@ -129,18 +181,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
129
181
  requirements:
130
182
  - - ">="
131
183
  - !ruby/object:Gem::Version
132
- version: '0'
184
+ version: 2.6.0
133
185
  required_rubygems_version: !ruby/object:Gem::Requirement
134
186
  requirements:
135
187
  - - ">="
136
188
  - !ruby/object:Gem::Version
137
189
  version: '0'
138
190
  requirements: []
139
- rubygems_version: 3.2.22
191
+ rubygems_version: 3.3.7
140
192
  signing_key:
141
193
  specification_version: 4
142
- summary: SHA3 for Ruby
143
- test_files:
144
- - spec/generate_tests.rb
145
- - spec/sha3_core_spec.rb
146
- - spec/spec_helper.rb
194
+ summary: SHA3 (FIPS 202) cryptographic hashing algorithm
195
+ test_files: []
metadata.gz.sig ADDED
Binary file
data/.gitignore DELETED
@@ -1,234 +0,0 @@
1
-
2
- # Created by https://www.toptal.com/developers/gitignore/api/c,clion,visualstudiocode,ruby
3
- # Edit at https://www.toptal.com/developers/gitignore?templates=c,clion,visualstudiocode,ruby
4
-
5
- ### C ###
6
- # Prerequisites
7
- *.d
8
-
9
- # Object files
10
- *.o
11
- *.ko
12
- *.obj
13
- *.elf
14
-
15
- # Linker output
16
- *.ilk
17
- *.map
18
- *.exp
19
-
20
- # Precompiled Headers
21
- *.gch
22
- *.pch
23
-
24
- # Libraries
25
- *.lib
26
- *.a
27
- *.la
28
- *.lo
29
-
30
- # Shared objects (inc. Windows DLLs)
31
- *.dll
32
- *.so
33
- *.so.*
34
- *.dylib
35
-
36
- # Executables
37
- *.exe
38
- *.out
39
- *.app
40
- *.i*86
41
- *.x86_64
42
- *.hex
43
-
44
- # Debug files
45
- *.dSYM/
46
- *.su
47
- *.idb
48
- *.pdb
49
-
50
- # Kernel Module Compile Results
51
- *.mod*
52
- *.cmd
53
- .tmp_versions/
54
- modules.order
55
- Module.symvers
56
- Mkfile.old
57
- dkms.conf
58
-
59
- ### CLion ###
60
- # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
61
- # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
62
-
63
- # User-specific stuff
64
- .idea/**/workspace.xml
65
- .idea/**/tasks.xml
66
- .idea/**/usage.statistics.xml
67
- .idea/**/dictionaries
68
- .idea/**/shelf
69
-
70
- # Generated files
71
- .idea/**/contentModel.xml
72
-
73
- # Sensitive or high-churn files
74
- .idea/**/dataSources/
75
- .idea/**/dataSources.ids
76
- .idea/**/dataSources.local.xml
77
- .idea/**/sqlDataSources.xml
78
- .idea/**/dynamic.xml
79
- .idea/**/uiDesigner.xml
80
- .idea/**/dbnavigator.xml
81
-
82
- # Gradle
83
- .idea/**/gradle.xml
84
- .idea/**/libraries
85
-
86
- # Gradle and Maven with auto-import
87
- # When using Gradle or Maven with auto-import, you should exclude module files,
88
- # since they will be recreated, and may cause churn. Uncomment if using
89
- # auto-import.
90
- # .idea/artifacts
91
- # .idea/compiler.xml
92
- # .idea/jarRepositories.xml
93
- # .idea/modules.xml
94
- # .idea/*.iml
95
- # .idea/modules
96
- # *.iml
97
- # *.ipr
98
-
99
- # CMake
100
- cmake-build-*/
101
-
102
- # Mongo Explorer plugin
103
- .idea/**/mongoSettings.xml
104
-
105
- # File-based project format
106
- *.iws
107
-
108
- # IntelliJ
109
- out/
110
-
111
- # mpeltonen/sbt-idea plugin
112
- .idea_modules/
113
-
114
- # JIRA plugin
115
- atlassian-ide-plugin.xml
116
-
117
- # Cursive Clojure plugin
118
- .idea/replstate.xml
119
-
120
- # Crashlytics plugin (for Android Studio and IntelliJ)
121
- com_crashlytics_export_strings.xml
122
- crashlytics.properties
123
- crashlytics-build.properties
124
- fabric.properties
125
-
126
- # Editor-based Rest Client
127
- .idea/httpRequests
128
-
129
- # Android studio 3.1+ serialized cache file
130
- .idea/caches/build_file_checksums.ser
131
-
132
- ### CLion Patch ###
133
- # Comment Reason: https://github.com/joeblau/gitignore.io/issues/186#issuecomment-215987721
134
-
135
- # *.iml
136
- # modules.xml
137
- # .idea/misc.xml
138
- # *.ipr
139
-
140
- # Sonarlint plugin
141
- # https://plugins.jetbrains.com/plugin/7973-sonarlint
142
- .idea/**/sonarlint/
143
-
144
- # SonarQube Plugin
145
- # https://plugins.jetbrains.com/plugin/7238-sonarqube-community-plugin
146
- .idea/**/sonarIssues.xml
147
-
148
- # Markdown Navigator plugin
149
- # https://plugins.jetbrains.com/plugin/7896-markdown-navigator-enhanced
150
- .idea/**/markdown-navigator.xml
151
- .idea/**/markdown-navigator-enh.xml
152
- .idea/**/markdown-navigator/
153
-
154
- # Cache file creation bug
155
- # See https://youtrack.jetbrains.com/issue/JBR-2257
156
- .idea/$CACHE_FILE$
157
-
158
- # CodeStream plugin
159
- # https://plugins.jetbrains.com/plugin/12206-codestream
160
- .idea/codestream.xml
161
-
162
- ### Ruby ###
163
- *.gem
164
- *.rbc
165
- /.config
166
- /coverage/
167
- /InstalledFiles
168
- /pkg/
169
- /spec/reports/
170
- /spec/examples.txt
171
- /test/tmp/
172
- /test/version_tmp/
173
- /tmp/
174
-
175
- # Used by dotenv library to load environment variables.
176
- # .env
177
-
178
- # Ignore Byebug command history file.
179
- .byebug_history
180
-
181
- ## Specific to RubyMotion:
182
- .dat*
183
- .repl_history
184
- build/
185
- *.bridgesupport
186
- build-iPhoneOS/
187
- build-iPhoneSimulator/
188
-
189
- ## Specific to RubyMotion (use of CocoaPods):
190
- #
191
- # We recommend against adding the Pods directory to your .gitignore. However
192
- # you should judge for yourself, the pros and cons are mentioned at:
193
- # https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
194
- # vendor/Pods/
195
-
196
- ## Documentation cache and generated files:
197
- /.yardoc/
198
- /_yardoc/
199
- /doc/
200
- /rdoc/
201
-
202
- ## Environment normalization:
203
- /.bundle/
204
- /vendor/bundle
205
- /lib/bundler/man/
206
-
207
- # for a library or gem, you might want to ignore these files since the code is
208
- # intended to run in multiple environments; otherwise, check them in:
209
- # Gemfile.lock
210
- # .ruby-version
211
- # .ruby-gemset
212
-
213
- # unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
214
- .rvmrc
215
-
216
- # Used by RuboCop. Remote config files pulled in from inherit_from directive.
217
- # .rubocop-https?--*
218
-
219
- ### Ruby Patch ###
220
- # Used by RuboCop. Remote config files pulled in from inherit_from directive.
221
- # .rubocop-https?--*
222
-
223
- ### VisualStudioCode ###
224
- .vscode/*
225
- !.vscode/tasks.json
226
- !.vscode/launch.json
227
- *.code-workspace
228
-
229
- ### VisualStudioCode Patch ###
230
- # Ignore all local history of files
231
- .history
232
- .ionide
233
-
234
- # End of https://www.toptal.com/developers/gitignore/api/c,clion,visualstudiocode,ruby
data/.travis.yml DELETED
@@ -1,21 +0,0 @@
1
- arch:
2
- - amd64
3
- - arm64
4
-
5
- branches:
6
- only:
7
- - master
8
- - develop
9
-
10
- gemfile: Gemfile.ci
11
-
12
- language: ruby
13
-
14
- os:
15
- - linux
16
-
17
- rvm:
18
- - ruby-head
19
- - 2.7
20
- - 2.6
21
- - 2.5
data/Gemfile.ci DELETED
@@ -1,8 +0,0 @@
1
- source 'http://rubygems.org'
2
-
3
- gemspec
4
-
5
- gem 'rake'
6
- gem 'rspec'
7
- gem 'rubygems-tasks'
8
- gem 'yard'
@@ -1,40 +0,0 @@
1
- /*
2
- Implementation by the Keccak, Keyak and Ketje Teams, namely, Guido Bertoni,
3
- Joan Daemen, Michaël Peeters, Gilles Van Assche and Ronny Van Keer, hereby
4
- denoted as "the implementer".
5
-
6
- For more information, feedback or questions, please refer to our websites:
7
- http://keccak.noekeon.org/
8
- http://keyak.noekeon.org/
9
- http://ketje.noekeon.org/
10
-
11
- To the extent possible under law, the implementer has waived all copyright
12
- and related or neighboring rights to the source code in this file.
13
- http://creativecommons.org/publicdomain/zero/1.0/
14
- */
15
-
16
- #ifndef _KeccakF1600Interface_h_
17
- #define _KeccakF1600Interface_h_
18
-
19
- #include <string.h>
20
-
21
- #define KeccakF_width 1600
22
- #define KeccakF_laneInBytes 8
23
- #define KeccakF_stateSizeInBytes (KeccakF_width/8)
24
- #define KeccakF_1600
25
-
26
- void KeccakF1600_Initialize( void );
27
- void KeccakF1600_StateInitialize(void *state);
28
- void KeccakF1600_StateXORBytes(void *state, const unsigned char *data, unsigned int offset, unsigned int length);
29
- void KeccakF1600_StateOverwriteBytes(void *state, const unsigned char *data, unsigned int offset, unsigned int length);
30
- void KeccakF1600_StateOverwriteWithZeroes(void *state, unsigned int byteCount);
31
- void KeccakF1600_StateComplementBit(void *state, unsigned int position);
32
- void KeccakF1600_StatePermute(void *state);
33
- void KeccakF1600_StateExtractBytes(const void *state, unsigned char *data, unsigned int offset, unsigned int length);
34
- void KeccakF1600_StateExtractAndXORBytes(const void *state, unsigned char *data, unsigned int offset, unsigned int length);
35
- size_t KeccakF1600_FBWL_Absorb(void *state, unsigned int laneCount, const unsigned char *data, size_t dataByteLen, unsigned char trailingBits);
36
- size_t KeccakF1600_FBWL_Squeeze(void *state, unsigned int laneCount, unsigned char *data, size_t dataByteLen);
37
- size_t KeccakF1600_FBWL_Wrap(void *state, unsigned int laneCount, const unsigned char *dataIn, unsigned char *dataOut, size_t dataByteLen, unsigned char trailingBits);
38
- size_t KeccakF1600_FBWL_Unwrap(void *state, unsigned int laneCount, const unsigned char *dataIn, unsigned char *dataOut, size_t dataByteLen, unsigned char trailingBits);
39
-
40
- #endif