This repository has been archived by the owner on Feb 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ruby: Preserve files we wish to keep before filter-branch operation
- Loading branch information
Showing
15 changed files
with
806 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
script: ./ci.sh | ||
|
||
branches: | ||
only: | ||
- master | ||
|
||
matrix: | ||
fast_finish: true | ||
allow_failures: | ||
- rust: nightly | ||
include: | ||
- language: csharp | ||
mono: none | ||
dotnet: 2.0.0 | ||
before_script: cd dotnet | ||
- language: go | ||
go: 1.9 | ||
before_script: cd go | ||
- language: node_js | ||
node_js: 9 | ||
before_script: cd js | ||
- language: python | ||
python: 2.7 | ||
before_script: cd python | ||
- language: python | ||
python: 3.6 | ||
before_script: cd python | ||
- language: ruby | ||
rvm: 2.5.0 | ||
before_install: | ||
- gem update --system | ||
- gem --version | ||
before_script: cd ruby | ||
- language: ruby | ||
rvm: 2.2 | ||
before_script: cd ruby | ||
- language: rust | ||
rust: stable | ||
before_script: cd rust | ||
env: | ||
- CARGO_FEATURES=--features="aes-soft" | ||
- RUSTFLAGS=-Ctarget-feature=+aes | ||
- language: rust | ||
rust: stable | ||
before_script: cd rust | ||
env: | ||
- RUSTFLAGS=-Ctarget-feature=+aes | ||
- language: rust | ||
rust: nightly | ||
before_script: cd rust | ||
env: | ||
- CARGO_FEATURES=--features="aes-soft,nightly" | ||
- RUSTFLAGS=-Ctarget-feature=+aes | ||
- language: rust | ||
rust: nightly | ||
before_script: cd rust | ||
env: | ||
- CARGO_FEATURES=--features="aes-soft,nightly" | ||
- RUSTFLAGS=-Ctarget-feature=+aes | ||
- language: rust | ||
rust: nightly | ||
before_script: cd rust/tests/ffi | ||
env: | ||
- CC=clang | ||
- LDFLAGS=-rtlib=compiler-rt | ||
- RUSTFLAGS=-Ctarget-feature=+aes | ||
script: | ||
- make | ||
- ./ffi_test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Miscreant contributors | ||
|
||
The following people hold copyright over portions of the Miscreant project codebases | ||
and have granted the right to use their contributions under the terms of the | ||
[MIT license](https://github.com/miscreant/miscreant/blob/master/LICENSE.txt). | ||
|
||
* [Tony Arcieri (@tarcieri)](https://github.com/tarcieri) | ||
* [Dmitry Chestnykh (@dchest)](https://github.com/dchest) | ||
* [John Downey (@jtdowney)](https://github.com/jtdowney) | ||
* [Nemanja Mijailovic (@metalnem)](https://github.com/metalnem) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
## [0.3.0] (2017-12-25) | ||
|
||
[0.3.0]: https://github.com/miscreant/miscreant/compare/v0.2.0...v0.3.0 | ||
|
||
* STREAM support (all languages) | ||
* AEAD APIs: TypeScript, Rust | ||
* Rust internals based on RustCrypto project providing ~10% faster performance | ||
|
||
### Notable Pull Requests | ||
|
||
* [#100](https://github.com/miscreant/miscreant/pull/100) | ||
rust: Use AES-CTR implementation from the `aesni` crate | ||
* [#102](https://github.com/miscreant/miscreant/pull/102) | ||
rust: Use cmac and pmac crates from RustCrypto | ||
* [#103](https://github.com/miscreant/miscreant/pull/103) | ||
rust: DRY out and abstract SIV+CTR implementations across key sizes | ||
* [#104](https://github.com/miscreant/miscreant/pull/104) | ||
rust: Deny unsafe_code | ||
* [#105](https://github.com/miscreant/miscreant/pull/105) | ||
rust: AEAD API | ||
* [#112](https://github.com/miscreant/miscreant/pull/112) | ||
rust: STREAM implementation | ||
* [#117](https://github.com/miscreant/miscreant/pull/117) | ||
rust: "std" feature and allocating APIs | ||
* [#120](https://github.com/miscreant/miscreant/pull/120) | ||
rust: Dual license under MIT/Apache 2.0 | ||
* [#122](https://github.com/miscreant/miscreant/pull/122) | ||
ruby: STREAM implementation | ||
* [#124](https://github.com/miscreant/miscreant/pull/124) | ||
python: STREAM implementation | ||
* [#126](https://github.com/miscreant/miscreant/pull/126) | ||
go: Switch to using math.TrailingZeros in PMAC (requires Go 1.9+) | ||
* [#127](https://github.com/miscreant/miscreant/pull/127) | ||
js: AEAD API | ||
* [#131](https://github.com/miscreant/miscreant/pull/131) | ||
js: STREAM implementation | ||
* [#132](https://github.com/miscreant/miscreant/pull/132) | ||
go: STREAM implementation | ||
|
||
## [0.2.0] (2017-10-01) | ||
|
||
[0.2.0]: https://github.com/miscreant/miscreant/compare/v0.1.0...v0.2.0 | ||
|
||
* AES-PMAC-SIV support (all languages) | ||
* AEAD APIs with test vectors: Go, Ruby, Python | ||
* Various breaking API changes from 0.1.0, but hopefully no one was using a v0.1 | ||
crypto library anyway. | ||
|
||
# 0.1.0 (2017-07-31) | ||
|
||
* Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
# Contributor Covenant Code of Conduct | ||
|
||
## Our Pledge | ||
|
||
In the interest of fostering an open and welcoming environment, we as | ||
contributors and maintainers pledge to making participation in our project and | ||
our community a harassment-free experience for everyone, regardless of age, body | ||
size, disability, ethnicity, gender identity and expression, level of experience, | ||
nationality, personal appearance, race, religion, or sexual identity and | ||
orientation. | ||
|
||
## Our Standards | ||
|
||
Examples of behavior that contributes to creating a positive environment | ||
include: | ||
|
||
* Using welcoming and inclusive language | ||
* Being respectful of differing viewpoints and experiences | ||
* Gracefully accepting constructive criticism | ||
* Focusing on what is best for the community | ||
* Showing empathy towards other community members | ||
|
||
Examples of unacceptable behavior by participants include: | ||
|
||
* The use of sexualized language or imagery and unwelcome sexual attention or | ||
advances | ||
* Trolling, insulting/derogatory comments, and personal or political attacks | ||
* Public or private harassment | ||
* Publishing others' private information, such as a physical or electronic | ||
address, without explicit permission | ||
* Other conduct which could reasonably be considered inappropriate in a | ||
professional setting | ||
|
||
## Our Responsibilities | ||
|
||
Project maintainers are responsible for clarifying the standards of acceptable | ||
behavior and are expected to take appropriate and fair corrective action in | ||
response to any instances of unacceptable behavior. | ||
|
||
Project maintainers have the right and responsibility to remove, edit, or | ||
reject comments, commits, code, wiki edits, issues, and other contributions | ||
that are not aligned to this Code of Conduct, or to ban temporarily or | ||
permanently any contributor for other behaviors that they deem inappropriate, | ||
threatening, offensive, or harmful. | ||
|
||
## Scope | ||
|
||
This Code of Conduct applies both within project spaces and in public spaces | ||
when an individual is representing the project or its community. Examples of | ||
representing a project or community include using an official project e-mail | ||
address, posting via an official social media account, or acting as an appointed | ||
representative at an online or offline event. Representation of a project may be | ||
further defined and clarified by project maintainers. | ||
|
||
## Enforcement | ||
|
||
Instances of abusive, harassing, or otherwise unacceptable behavior may be | ||
reported by contacting the project team at [[email protected]]. All | ||
complaints will be reviewed and investigated and will result in a response that | ||
is deemed necessary and appropriate to the circumstances. The project team is | ||
obligated to maintain confidentiality with regard to the reporter of an incident. | ||
Further details of specific enforcement policies may be posted separately. | ||
|
||
Project maintainers who do not follow or enforce the Code of Conduct in good | ||
faith may face temporary or permanent repercussions as determined by other | ||
members of the project's leadership. | ||
|
||
[[email protected]]: mailto:[email protected] | ||
|
||
## Attribution | ||
|
||
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, | ||
available at [http://contributor-covenant.org/version/1/4][version] | ||
|
||
[homepage]: http://contributor-covenant.org | ||
[version]: http://contributor-covenant.org/version/1/4/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
Copyright (c) 2017-2018 The Miscreant Developers. The canonical list of project | ||
contributors who hold copyright over the project can be found at: | ||
|
||
https://github.com/miscreant/miscreant/blob/master/AUTHORS.md | ||
|
||
MIT License | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining | ||
a copy of this software and associated documentation files (the | ||
"Software"), to deal in the Software without restriction, including | ||
without limitation the rights to use, copy, modify, merge, publish, | ||
distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so, subject to | ||
the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be | ||
included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE | ||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION | ||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
branches: | ||
only: | ||
- master | ||
|
||
environment: | ||
PATH: C:\Ruby%RUBY_VERSION%\DevKit\mingw\bin;C:\Ruby%RUBY_VERSION%\bin;C:\Ruby%RUBY_VERSION%\DevKit\bin;%PATH% | ||
matrix: | ||
- LANG: "ruby" | ||
RUBY_VERSION: "24-x64" | ||
- LANG: "ruby" | ||
RUBY_VERSION: "22" | ||
|
||
build: off | ||
|
||
test_script: | ||
- cd %LANG% | ||
- call ci.bat |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"examples:A<O>":[ | ||
{ | ||
"key:d16": "2b7e151628aed2a6abf7158809cf4f3c", | ||
"src:d16": "3243f6a8885a308d313198a2e0370734", | ||
"dst:d16": "3925841d02dc09fbdc118597196a0b32" | ||
}, | ||
{ | ||
"key:d16": "000102030405060708090a0b0c0d0e0f", | ||
"src:d16": "00112233445566778899aabbccddeeff", | ||
"dst:d16": "69c4e0d86a7b0430d8cdb78070b4c55a" | ||
}, | ||
{ | ||
"key:d16": "000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f", | ||
"src:d16": "00112233445566778899aabbccddeeff", | ||
"dst:d16": "8ea2b7ca516745bfeafc49904b496089" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{ | ||
"examples:A<O>":[ | ||
{ | ||
"key:d16":"2b7e151628aed2a6abf7158809cf4f3c", | ||
"message:d16":"", | ||
"tag:d16":"bb1d6929e95937287fa37d129b756746" | ||
}, | ||
{ | ||
"key:d16":"2b7e151628aed2a6abf7158809cf4f3c", | ||
"message:d16":"6bc1bee22e409f96e93d7e117393172a", | ||
"tag:d16":"070a16b46b4d4144f79bdd9dd04a287c" | ||
}, | ||
{ | ||
"key:d16":"2b7e151628aed2a6abf7158809cf4f3c", | ||
"message:d16":"6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e5130c81c46a35ce411", | ||
"tag:d16":"dfa66747de9ae63030ca32611497c827" | ||
}, | ||
{ | ||
"key:d16":"2b7e151628aed2a6abf7158809cf4f3c", | ||
"message:d16":"6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e5130c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be66c3710", | ||
"tag:d16":"51f0bebf7e3b9d92fc49741779363cfe" | ||
}, | ||
{ | ||
"key:d16":"603deb1015ca71be2b73aef0857d77811f352c073b6108d72d9810a30914dff4", | ||
"message:d16":"", | ||
"tag:d16":"028962f61b7bf89efc6b551f4667d983" | ||
}, | ||
{ | ||
"key:d16":"603deb1015ca71be2b73aef0857d77811f352c073b6108d72d9810a30914dff4", | ||
"message:d16":"6bc1bee22e409f96e93d7e117393172a", | ||
"tag:d16":"28a7023f452e8f82bd4bf28d8c37c35c" | ||
}, | ||
{ | ||
"key:d16":"603deb1015ca71be2b73aef0857d77811f352c073b6108d72d9810a30914dff4", | ||
"message:d16":"6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e5130c81c46a35ce411", | ||
"tag:d16":"aaf3d8f1de5640c232f5b169b9c911e6" | ||
}, | ||
{ | ||
"key:d16":"603deb1015ca71be2b73aef0857d77811f352c073b6108d72d9810a30914dff4", | ||
"message:d16":"6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e5130c81c46a35ce411e5fbc1191a0a52eff69f2445df4f9b17ad2b417be66c3710", | ||
"tag:d16":"e1992190549f6ed5696a2c056c315410" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"examples:A<O>":[ | ||
{ | ||
"key:d16":"2b7e151628aed2a6abf7158809cf4f3c", | ||
"iv:d16":"f0f1f2f3f4f5f6f7f8f9fafbfcfdfeff", | ||
"plaintext:d16":"6bc1bee22e409f96e93d7e117393172aae2d8a571e03ac9c9eb76fac45af8e51", | ||
"ciphertext:d16":"874d6191b620e3261bef6864990db6ce9806f66b7970fdff8617187bb9fffdff" | ||
}, | ||
{ | ||
"key:d16":"000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f", | ||
"iv:d16":"202122232425262728292a2b2c2d2e2f", | ||
"plaintext:d16":"000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122", | ||
"ciphertext:d16":"61a7916d4a8a161b14c8f398b94faedba3a3e29ad93f55451ed31fe92d3abf841c7c81" | ||
} | ||
] | ||
} |
Oops, something went wrong.