Openpgp security update (V2) (#31)
* Change keyring unlock functionalities * Add keyring#Lock, keyring#CheckIntegrity, tests * Update helpers, fix bugs * Update go.mod with ProtonMail/crypto commit * Change key management system * Clear keys from memory + tests * Create SessionKey with direct encryption for datapackets. Move symmetrickey to password. * Fix upstream dependencies * Update module to V2, documentation * Add linter * Add v2 folder to .gitignore * Minor changes to KeyID getters * Remove old changelog * Improve docs, remove compilation script
This commit is contained in:
parent
136c0a5495
commit
54f45d0471
46 changed files with 2588 additions and 1770 deletions
39
.travis.yml
39
.travis.yml
|
|
@ -1,7 +1,42 @@
|
|||
# use the latest ubuntu environment (18.04) available on travis
|
||||
dist: bionic
|
||||
|
||||
language: go
|
||||
|
||||
# Force-enable Go modules. Also force go to use the code in vendor/
|
||||
# These will both be unnecessary when Go 1.14 lands.
|
||||
env: GO111MODULE=on
|
||||
|
||||
go:
|
||||
- 1.11.x
|
||||
- 1.12.x
|
||||
env:
|
||||
- GO111MODULE=on GOFLAGS=-mod=readonly
|
||||
- 1.13.x
|
||||
|
||||
# Only clone the most recent commit.
|
||||
git:
|
||||
depth: 1
|
||||
|
||||
# Skip the install step. Don't `go get` dependencies. Only build with the code
|
||||
# in vendor/
|
||||
install: true
|
||||
|
||||
# Don't email me the results of the test runs.
|
||||
notifications:
|
||||
email: false
|
||||
|
||||
# Anything in before_script that returns a nonzero exit code will flunk the
|
||||
# build and immediately stop. It's sorta like having set -e enabled in bash.
|
||||
# Make sure you've pinned the version of golangci-lint by running this command
|
||||
# in your project directory:
|
||||
# GO111MODULE=on go get github.com/golangci/golangci-lint@v1.21.0
|
||||
# You should see this line in your go.mod file:
|
||||
# github.com/golangci/golangci-lint v1.21.0
|
||||
before_script:
|
||||
- go install github.com/golangci/golangci-lint/cmd/golangci-lint
|
||||
|
||||
# script always runs to completion (set +e). If we have linter issues AND a
|
||||
# failing test, we want to see both. Configure golangci-lint with a
|
||||
# .golangci.yml file at the top level of your repo.
|
||||
script:
|
||||
- golangci-lint run # run a bunch of code checkers/linters in parallel
|
||||
- go test -v -race ./... # Run all the tests with the race detector enabled
|
||||
Loading…
Add table
Add a link
Reference in a new issue