Skip to content

chore: setup github actions #64

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: ci
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node: [6, 8, 10, 12, 14, 16]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- run: |
npm install
npm test
2 changes: 1 addition & 1 deletion authCipher.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function calcIv (self, iv, ck) {
ghash.update(Buffer.alloc(8, 0))
var ivBits = len * 8
var tail = Buffer.alloc(8)
tail.writeUIntBE(ivBits, 0, 8)
tail.writeUIntBE(ivBits, 2, 6)
ghash.update(tail)
self._finID = ghash.state
var out = Buffer.from(self._finID)
Expand Down
10 changes: 5 additions & 5 deletions ghash.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// SJCL is open. You can use, modify and redistribute it under a BSD
// license or under the GNU GPL, version 2.0.
//
//---------------------------------------------------------------------
// ---------------------------------------------------------------------
//
// http://opensource.org/licenses/BSD-2-Clause
//
Expand All @@ -22,20 +22,20 @@
// project by the Stanford Computer Security Lab to build a secure,
// powerful, fast, small, easy-to-use, cross-browser library for
// cryptography in Javascript.
//
//
// Copyright (c) 2009-2015, Emily Stark, Mike Hamburg and Dan Boneh at
// Stanford University.
//
//
// This program is free software; you can redistribute it and/or modify it
// under the terms of the GNU General Public License as published by the
// Free Software Foundation; either version 2 of the License, or (at your
// option) any later version.
//
//
// This program is distributed in the hope that it will be useful, but
// WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
// Public License for more details.
//
//
// You should have received a copy of the GNU General Public License along
// with this program; if not, write to the Free Software Foundation, Inc.,
// 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Expand Down