digest-blake2b 0.0.1
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.
- checksums.yaml +7 -0
- data/.circleci/config.yml +92 -0
- data/.gitignore +45 -0
- data/Gemfile +2 -0
- data/LICENSE +674 -0
- data/README.md +115 -0
- data/Rakefile +46 -0
- data/checksums/.keep +0 -0
- data/digest-blake2b.gemspec +49 -0
- data/ext/digest/blake2b_ext/blake2-config.h +72 -0
- data/ext/digest/blake2b_ext/blake2-impl.h +160 -0
- data/ext/digest/blake2b_ext/blake2.h +195 -0
- data/ext/digest/blake2b_ext/blake2b-load-sse2.h +68 -0
- data/ext/digest/blake2b_ext/blake2b-load-sse41.h +402 -0
- data/ext/digest/blake2b_ext/blake2b-ref.c +373 -0
- data/ext/digest/blake2b_ext/blake2b-round.h +157 -0
- data/ext/digest/blake2b_ext/extconf.rb +3 -0
- data/ext/digest/blake2b_ext/rbext.c +111 -0
- data/lib/digest/blake2b/key.rb +59 -0
- data/lib/digest/blake2b/version.rb +7 -0
- data/lib/digest/blake2b.rb +36 -0
- data/performance/performance_suite.rb +61 -0
- metadata +126 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 6680340b4197471eab8a18c10ba0835f072c33b2537637dab4ff54ca6ce8b66c
|
4
|
+
data.tar.gz: 1e39d0569c7a633da86c4340840bfa32fb8c44027c5da7169578780e9afff150
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 455c90a95243ad8b5978c279947586402a0a819ddca1d204a4032261485d34cffc1a24359243e8317a096bf86454fe0e59094e46fe3f92599abb4a773d3de643
|
7
|
+
data.tar.gz: aff60483ee972a43d4becf643df858d233e145ffb0b4cb3729c40d59a37142dc7bc30ecb43729b068803191c090530b45a5e9ed9f275fbe87899f4fde18b0fe9
|
@@ -0,0 +1,92 @@
|
|
1
|
+
version: 2
|
2
|
+
|
3
|
+
jobs:
|
4
|
+
ruby_2_4:
|
5
|
+
docker:
|
6
|
+
- image: circleci/ruby:2.4-node-browsers
|
7
|
+
environment:
|
8
|
+
STEALTH_ENV: test
|
9
|
+
|
10
|
+
working_directory: ~/repo
|
11
|
+
|
12
|
+
steps:
|
13
|
+
- checkout
|
14
|
+
|
15
|
+
# Download and cache dependencies
|
16
|
+
- restore_cache:
|
17
|
+
keys:
|
18
|
+
- v1-dependencies-{{ checksum "Gemfile.lock" }}
|
19
|
+
# fallback to using the latest cache if no exact match is found
|
20
|
+
- v1-dependencies-
|
21
|
+
|
22
|
+
- run:
|
23
|
+
name: install dependencies
|
24
|
+
command: |
|
25
|
+
bundle install --jobs=4 --retry=3 --path vendor/bundle
|
26
|
+
|
27
|
+
- save_cache:
|
28
|
+
paths:
|
29
|
+
- ./vendor/bundle
|
30
|
+
key: v1-dependencies-{{ checksum "Gemfile.lock" }}
|
31
|
+
|
32
|
+
# run tests!
|
33
|
+
- run:
|
34
|
+
name: run tests
|
35
|
+
command: |
|
36
|
+
mkdir /tmp/test-results
|
37
|
+
|
38
|
+
bundle exec rake test
|
39
|
+
|
40
|
+
# collect reports
|
41
|
+
- store_test_results:
|
42
|
+
path: /tmp/test-results
|
43
|
+
- store_artifacts:
|
44
|
+
path: /tmp/test-results
|
45
|
+
destination: test-results
|
46
|
+
ruby_2_5:
|
47
|
+
docker:
|
48
|
+
- image: circleci/ruby:2.5-node-browsers
|
49
|
+
|
50
|
+
working_directory: ~/repo
|
51
|
+
|
52
|
+
steps:
|
53
|
+
- checkout
|
54
|
+
|
55
|
+
# Download and cache dependencies
|
56
|
+
- restore_cache:
|
57
|
+
keys:
|
58
|
+
- v1-dependencies-{{ checksum "Gemfile.lock" }}
|
59
|
+
# fallback to using the latest cache if no exact match is found
|
60
|
+
- v1-dependencies-
|
61
|
+
|
62
|
+
- run:
|
63
|
+
name: install dependencies
|
64
|
+
command: |
|
65
|
+
bundle install --jobs=4 --retry=3 --path vendor/bundle
|
66
|
+
|
67
|
+
- save_cache:
|
68
|
+
paths:
|
69
|
+
- ./vendor/bundle
|
70
|
+
key: v1-dependencies-{{ checksum "Gemfile.lock" }}
|
71
|
+
|
72
|
+
# run tests!
|
73
|
+
- run:
|
74
|
+
name: run tests
|
75
|
+
command: |
|
76
|
+
mkdir /tmp/test-results
|
77
|
+
|
78
|
+
bundle exec rake test
|
79
|
+
|
80
|
+
# collect reports
|
81
|
+
- store_test_results:
|
82
|
+
path: /tmp/test-results
|
83
|
+
- store_artifacts:
|
84
|
+
path: /tmp/test-results
|
85
|
+
destination: test-results
|
86
|
+
|
87
|
+
workflows:
|
88
|
+
version: 2
|
89
|
+
build:
|
90
|
+
jobs:
|
91
|
+
- ruby_2_4
|
92
|
+
- ruby_2_5
|
data/.gitignore
ADDED
@@ -0,0 +1,45 @@
|
|
1
|
+
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
|
2
|
+
#
|
3
|
+
# If you find yourself ignoring temporary files generated by your text editor
|
4
|
+
# or operating system, you probably want to add a global ignore instead:
|
5
|
+
# git config --global core.excludesfile '~/.gitignore_global'
|
6
|
+
|
7
|
+
/checksums/*
|
8
|
+
!/checksums/.keep
|
9
|
+
/lib/*.bundle
|
10
|
+
/lib/digest/blake2b_ext.so
|
11
|
+
|
12
|
+
*.o
|
13
|
+
*.gem
|
14
|
+
*.rbc
|
15
|
+
/.config
|
16
|
+
/.rake_tasks~
|
17
|
+
/coverage/
|
18
|
+
/InstalledFiles
|
19
|
+
/pkg/
|
20
|
+
/tmp/
|
21
|
+
|
22
|
+
# RSpec configuration and generated files:
|
23
|
+
/.rspec
|
24
|
+
/spec/examples.txt
|
25
|
+
|
26
|
+
# Documentation cache and generated files:
|
27
|
+
/.yardoc/
|
28
|
+
/_yardoc/
|
29
|
+
/doc/
|
30
|
+
/rdoc/
|
31
|
+
|
32
|
+
# Environment normalization:
|
33
|
+
/.bundle/
|
34
|
+
/vendor/bundle/*
|
35
|
+
!/vendor/bundle/.keep
|
36
|
+
/lib/bundler/man/
|
37
|
+
|
38
|
+
# For a library or gem, you might want to ignore these files since the code is
|
39
|
+
# intended to run in multiple environments; otherwise, check them in:
|
40
|
+
/Gemfile.lock
|
41
|
+
/.ruby-version
|
42
|
+
/.ruby-gemset
|
43
|
+
|
44
|
+
# Unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
|
45
|
+
.rvmrc
|
data/Gemfile
ADDED