Skip to content
This repository has been archived by the owner on Feb 5, 2021. It is now read-only.

Commit

Permalink
js: Preserve files we wish to keep before filter-branch operation
Browse files Browse the repository at this point in the history
  • Loading branch information
tarcieri committed Sep 22, 2018
1 parent 2817334 commit 5bc5ed3
Show file tree
Hide file tree
Showing 15 changed files with 788 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .codeclimate.yml
@@ -0,0 +1,7 @@
engines:
gofmt:
enabled: true

ratings:
paths:
- "go/**/*.go"
69 changes: 69 additions & 0 deletions .travis.yml
@@ -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
10 changes: 10 additions & 0 deletions AUTHORS.md
@@ -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)
51 changes: 51 additions & 0 deletions CHANGES.md
@@ -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
76 changes: 76 additions & 0 deletions CODE_OF_CONDUCT.md
@@ -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 [bascule@gmail.com]. 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.

[bascule@gmail.com]: mailto:bascule@gmail.com

## 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/
17 changes: 17 additions & 0 deletions appveyor.yml
@@ -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
19 changes: 19 additions & 0 deletions vectors/aes.tjson
@@ -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"
}
]
}
44 changes: 44 additions & 0 deletions vectors/aes_cmac.tjson
@@ -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"
}
]
}
16 changes: 16 additions & 0 deletions vectors/aes_ctr.tjson
@@ -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"
}
]
}

0 comments on commit 5bc5ed3

Please sign in to comment.