ffi-hydrogen 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +13 -0
- data/.rspec +3 -0
- data/.rubocop.yml +30 -0
- data/.travis.yml +10 -0
- data/Gemfile +6 -0
- data/LICENSE.txt +21 -0
- data/README.md +72 -0
- data/Rakefile +46 -0
- data/bench/both.rb +86 -0
- data/bench/encode.rb +57 -0
- data/bench/encrypt.rb +80 -0
- data/bench/init.rb +5 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/ffi-hydrogen.gemspec +31 -0
- data/lib/ffi/hydrogen.rb +216 -0
- data/vendor/.clang-format +2 -0
- data/vendor/.gitignore +3 -0
- data/vendor/README.md +2 -0
- data/vendor/libhydrogen/.clang-format +95 -0
- data/vendor/libhydrogen/.gitignore +32 -0
- data/vendor/libhydrogen/.travis.yml +22 -0
- data/vendor/libhydrogen/LICENSE +18 -0
- data/vendor/libhydrogen/Makefile +61 -0
- data/vendor/libhydrogen/Makefile.arduino +51 -0
- data/vendor/libhydrogen/README.md +29 -0
- data/vendor/libhydrogen/hydrogen.c +18 -0
- data/vendor/libhydrogen/hydrogen.h +317 -0
- data/vendor/libhydrogen/impl/common.h +316 -0
- data/vendor/libhydrogen/impl/core.h +220 -0
- data/vendor/libhydrogen/impl/gimli-core/portable.h +39 -0
- data/vendor/libhydrogen/impl/gimli-core/sse2.h +97 -0
- data/vendor/libhydrogen/impl/gimli-core.h +25 -0
- data/vendor/libhydrogen/impl/hash.h +138 -0
- data/vendor/libhydrogen/impl/hydrogen_p.h +83 -0
- data/vendor/libhydrogen/impl/kdf.h +20 -0
- data/vendor/libhydrogen/impl/kx.h +441 -0
- data/vendor/libhydrogen/impl/pwhash.h +281 -0
- data/vendor/libhydrogen/impl/random.h +376 -0
- data/vendor/libhydrogen/impl/secretbox.h +236 -0
- data/vendor/libhydrogen/impl/sign.h +207 -0
- data/vendor/libhydrogen/impl/x25519.h +383 -0
- data/vendor/libhydrogen/library.properties +10 -0
- data/vendor/libhydrogen/logo.png +0 -0
- data/vendor/libhydrogen/tests/tests.c +431 -0
- data/vendor/main.c +140 -0
- data/vendor/stringencoders/.gitignore +25 -0
- data/vendor/stringencoders/.travis.yml +13 -0
- data/vendor/stringencoders/AUTHORS +1 -0
- data/vendor/stringencoders/COPYING +2 -0
- data/vendor/stringencoders/ChangeLog +170 -0
- data/vendor/stringencoders/Doxyfile +276 -0
- data/vendor/stringencoders/INSTALL +119 -0
- data/vendor/stringencoders/LICENSE +22 -0
- data/vendor/stringencoders/Makefile.am +3 -0
- data/vendor/stringencoders/NEWS +3 -0
- data/vendor/stringencoders/README +2 -0
- data/vendor/stringencoders/README.md +32 -0
- data/vendor/stringencoders/bootstrap.sh +3 -0
- data/vendor/stringencoders/configure-gcc-hardened.sh +16 -0
- data/vendor/stringencoders/configure.ac +44 -0
- data/vendor/stringencoders/doxy/footer.html +34 -0
- data/vendor/stringencoders/doxy/header.html +85 -0
- data/vendor/stringencoders/indent.sh +9 -0
- data/vendor/stringencoders/javascript/base64-speed.html +43 -0
- data/vendor/stringencoders/javascript/base64-test.html +209 -0
- data/vendor/stringencoders/javascript/base64.html +18 -0
- data/vendor/stringencoders/javascript/base64.js +176 -0
- data/vendor/stringencoders/javascript/qunit.css +119 -0
- data/vendor/stringencoders/javascript/qunit.js +1062 -0
- data/vendor/stringencoders/javascript/urlparse-test.html +367 -0
- data/vendor/stringencoders/javascript/urlparse.js +328 -0
- data/vendor/stringencoders/make-ci.sh +13 -0
- data/vendor/stringencoders/makerelease.sh +16 -0
- data/vendor/stringencoders/python/b85.py +176 -0
- data/vendor/stringencoders/src/Makefile.am +134 -0
- data/vendor/stringencoders/src/arraytoc.c +85 -0
- data/vendor/stringencoders/src/arraytoc.h +43 -0
- data/vendor/stringencoders/src/extern_c_begin.h +3 -0
- data/vendor/stringencoders/src/extern_c_end.h +3 -0
- data/vendor/stringencoders/src/html_named_entities_generator.py +203 -0
- data/vendor/stringencoders/src/modp_ascii.c +159 -0
- data/vendor/stringencoders/src/modp_ascii.h +162 -0
- data/vendor/stringencoders/src/modp_ascii_data.h +84 -0
- data/vendor/stringencoders/src/modp_ascii_gen.c +55 -0
- data/vendor/stringencoders/src/modp_b16.c +125 -0
- data/vendor/stringencoders/src/modp_b16.h +148 -0
- data/vendor/stringencoders/src/modp_b16_data.h +104 -0
- data/vendor/stringencoders/src/modp_b16_gen.c +65 -0
- data/vendor/stringencoders/src/modp_b2.c +69 -0
- data/vendor/stringencoders/src/modp_b2.h +130 -0
- data/vendor/stringencoders/src/modp_b2_data.h +44 -0
- data/vendor/stringencoders/src/modp_b2_gen.c +36 -0
- data/vendor/stringencoders/src/modp_b36.c +108 -0
- data/vendor/stringencoders/src/modp_b36.h +170 -0
- data/vendor/stringencoders/src/modp_b64.c +254 -0
- data/vendor/stringencoders/src/modp_b64.h +236 -0
- data/vendor/stringencoders/src/modp_b64_data.h +477 -0
- data/vendor/stringencoders/src/modp_b64_gen.c +168 -0
- data/vendor/stringencoders/src/modp_b64r.c +254 -0
- data/vendor/stringencoders/src/modp_b64r.h +242 -0
- data/vendor/stringencoders/src/modp_b64r_data.h +477 -0
- data/vendor/stringencoders/src/modp_b64w.c +254 -0
- data/vendor/stringencoders/src/modp_b64w.h +231 -0
- data/vendor/stringencoders/src/modp_b64w_data.h +477 -0
- data/vendor/stringencoders/src/modp_b85.c +109 -0
- data/vendor/stringencoders/src/modp_b85.h +171 -0
- data/vendor/stringencoders/src/modp_b85_data.h +36 -0
- data/vendor/stringencoders/src/modp_b85_gen.c +65 -0
- data/vendor/stringencoders/src/modp_bjavascript.c +65 -0
- data/vendor/stringencoders/src/modp_bjavascript.h +105 -0
- data/vendor/stringencoders/src/modp_bjavascript_data.h +84 -0
- data/vendor/stringencoders/src/modp_bjavascript_gen.c +58 -0
- data/vendor/stringencoders/src/modp_burl.c +228 -0
- data/vendor/stringencoders/src/modp_burl.h +259 -0
- data/vendor/stringencoders/src/modp_burl_data.h +136 -0
- data/vendor/stringencoders/src/modp_burl_gen.c +121 -0
- data/vendor/stringencoders/src/modp_html.c +128 -0
- data/vendor/stringencoders/src/modp_html.h +53 -0
- data/vendor/stringencoders/src/modp_html_named_entities.h +9910 -0
- data/vendor/stringencoders/src/modp_json.c +315 -0
- data/vendor/stringencoders/src/modp_json.h +103 -0
- data/vendor/stringencoders/src/modp_json_data.h +57 -0
- data/vendor/stringencoders/src/modp_json_gen.py +60 -0
- data/vendor/stringencoders/src/modp_mainpage.h +120 -0
- data/vendor/stringencoders/src/modp_numtoa.c +350 -0
- data/vendor/stringencoders/src/modp_numtoa.h +100 -0
- data/vendor/stringencoders/src/modp_qsiter.c +76 -0
- data/vendor/stringencoders/src/modp_qsiter.h +71 -0
- data/vendor/stringencoders/src/modp_stdint.h +43 -0
- data/vendor/stringencoders/src/modp_utf8.c +88 -0
- data/vendor/stringencoders/src/modp_utf8.h +38 -0
- data/vendor/stringencoders/src/modp_xml.c +311 -0
- data/vendor/stringencoders/src/modp_xml.h +166 -0
- data/vendor/stringencoders/src/stringencoders.pc +10 -0
- data/vendor/stringencoders/src/stringencoders.pc.in +10 -0
- data/vendor/stringencoders/test/Makefile.am +113 -0
- data/vendor/stringencoders/test/apr_base64.c +262 -0
- data/vendor/stringencoders/test/apr_base64.h +120 -0
- data/vendor/stringencoders/test/cxx_test.cc +482 -0
- data/vendor/stringencoders/test/minunit.h +82 -0
- data/vendor/stringencoders/test/modp_ascii_test.c +281 -0
- data/vendor/stringencoders/test/modp_b16_test.c +288 -0
- data/vendor/stringencoders/test/modp_b2_test.c +250 -0
- data/vendor/stringencoders/test/modp_b64_test.c +266 -0
- data/vendor/stringencoders/test/modp_b85_test.c +130 -0
- data/vendor/stringencoders/test/modp_bjavascript_test.c +137 -0
- data/vendor/stringencoders/test/modp_burl_test.c +423 -0
- data/vendor/stringencoders/test/modp_html_test.c +296 -0
- data/vendor/stringencoders/test/modp_json_test.c +336 -0
- data/vendor/stringencoders/test/modp_numtoa_test.c +545 -0
- data/vendor/stringencoders/test/modp_qsiter_test.c +280 -0
- data/vendor/stringencoders/test/modp_utf8_test.c +188 -0
- data/vendor/stringencoders/test/modp_xml_test.c +339 -0
- data/vendor/stringencoders/test/speedtest.c +241 -0
- data/vendor/stringencoders/test/speedtest_ascii.c +345 -0
- data/vendor/stringencoders/test/speedtest_msg.c +78 -0
- data/vendor/stringencoders/test/speedtest_numtoa.c +276 -0
- metadata +314 -0
@@ -0,0 +1,119 @@
|
|
1
|
+
|
2
|
+
ol#qunit-tests {
|
3
|
+
font-family:"Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial;
|
4
|
+
margin:0;
|
5
|
+
padding:0;
|
6
|
+
list-style-position:inside;
|
7
|
+
|
8
|
+
font-size: smaller;
|
9
|
+
}
|
10
|
+
ol#qunit-tests li{
|
11
|
+
padding:0.4em 0.5em 0.4em 2.5em;
|
12
|
+
border-bottom:1px solid #fff;
|
13
|
+
font-size:small;
|
14
|
+
list-style-position:inside;
|
15
|
+
}
|
16
|
+
ol#qunit-tests li ol{
|
17
|
+
box-shadow: inset 0px 2px 13px #999;
|
18
|
+
-moz-box-shadow: inset 0px 2px 13px #999;
|
19
|
+
-webkit-box-shadow: inset 0px 2px 13px #999;
|
20
|
+
margin-top:0.5em;
|
21
|
+
margin-left:0;
|
22
|
+
padding:0.5em;
|
23
|
+
background-color:#fff;
|
24
|
+
border-radius:15px;
|
25
|
+
-moz-border-radius: 15px;
|
26
|
+
-webkit-border-radius: 15px;
|
27
|
+
}
|
28
|
+
ol#qunit-tests li li{
|
29
|
+
border-bottom:none;
|
30
|
+
margin:0.5em;
|
31
|
+
background-color:#fff;
|
32
|
+
list-style-position: inside;
|
33
|
+
padding:0.4em 0.5em 0.4em 0.5em;
|
34
|
+
}
|
35
|
+
|
36
|
+
ol#qunit-tests li li.pass{
|
37
|
+
border-left:26px solid #C6E746;
|
38
|
+
background-color:#fff;
|
39
|
+
color:#5E740B;
|
40
|
+
}
|
41
|
+
ol#qunit-tests li li.fail{
|
42
|
+
border-left:26px solid #EE5757;
|
43
|
+
background-color:#fff;
|
44
|
+
color:#710909;
|
45
|
+
}
|
46
|
+
ol#qunit-tests li.pass{
|
47
|
+
background-color:#D2E0E6;
|
48
|
+
color:#528CE0;
|
49
|
+
}
|
50
|
+
ol#qunit-tests li.fail{
|
51
|
+
background-color:#EE5757;
|
52
|
+
color:#000;
|
53
|
+
}
|
54
|
+
ol#qunit-tests li strong {
|
55
|
+
cursor:pointer;
|
56
|
+
}
|
57
|
+
h1#qunit-header{
|
58
|
+
background-color:#0d3349;
|
59
|
+
margin:0;
|
60
|
+
padding:0.5em 0 0.5em 1em;
|
61
|
+
color:#fff;
|
62
|
+
font-family:"Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial;
|
63
|
+
border-top-right-radius:15px;
|
64
|
+
border-top-left-radius:15px;
|
65
|
+
-moz-border-radius-topright:15px;
|
66
|
+
-moz-border-radius-topleft:15px;
|
67
|
+
-webkit-border-top-right-radius:15px;
|
68
|
+
-webkit-border-top-left-radius:15px;
|
69
|
+
text-shadow: rgba(0, 0, 0, 0.5) 4px 4px 1px;
|
70
|
+
}
|
71
|
+
h2#qunit-banner{
|
72
|
+
font-family:"Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial;
|
73
|
+
height:5px;
|
74
|
+
margin:0;
|
75
|
+
padding:0;
|
76
|
+
}
|
77
|
+
h2#qunit-banner.qunit-pass{
|
78
|
+
background-color:#C6E746;
|
79
|
+
}
|
80
|
+
h2#qunit-banner.qunit-fail, #qunit-testrunner-toolbar {
|
81
|
+
background-color:#EE5757;
|
82
|
+
}
|
83
|
+
#qunit-testrunner-toolbar {
|
84
|
+
font-family:"Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial;
|
85
|
+
padding:0;
|
86
|
+
/*width:80%;*/
|
87
|
+
padding:0em 0 0.5em 2em;
|
88
|
+
font-size: small;
|
89
|
+
}
|
90
|
+
h2#qunit-userAgent {
|
91
|
+
font-family:"Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial;
|
92
|
+
background-color:#2b81af;
|
93
|
+
margin:0;
|
94
|
+
padding:0;
|
95
|
+
color:#fff;
|
96
|
+
font-size: small;
|
97
|
+
padding:0.5em 0 0.5em 2.5em;
|
98
|
+
text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 1px;
|
99
|
+
}
|
100
|
+
p#qunit-testresult{
|
101
|
+
font-family:"Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial;
|
102
|
+
margin:0;
|
103
|
+
font-size: small;
|
104
|
+
color:#2b81af;
|
105
|
+
border-bottom-right-radius:15px;
|
106
|
+
border-bottom-left-radius:15px;
|
107
|
+
-moz-border-radius-bottomright:15px;
|
108
|
+
-moz-border-radius-bottomleft:15px;
|
109
|
+
-webkit-border-bottom-right-radius:15px;
|
110
|
+
-webkit-border-bottom-left-radius:15px;
|
111
|
+
background-color:#D2E0E6;
|
112
|
+
padding:0.5em 0.5em 0.5em 2.5em;
|
113
|
+
}
|
114
|
+
strong b.fail{
|
115
|
+
color:#710909;
|
116
|
+
}
|
117
|
+
strong b.pass{
|
118
|
+
color:#5E740B;
|
119
|
+
}
|