commit | 650f4a345ab4e5b245a3034b110ebc7299e68186 | [log] [tgz] |
---|---|---|
author | Damien Tournoud <damien@platform.sh> | Wed Sep 27 11:16:38 2017 +0200 |
committer | Adam Langley <agl@golang.org> | Wed Feb 14 00:00:28 2018 +0000 |
tree | dc438fe21707260f9853fa1d3b7782354eac61b4 | |
parent | 3a6c3ce65c4f0844ac396b02aebda1496fd2ac9d [diff] |
openpgp: allow NewEntity to specify the default cipher The openpgp package promotes bad defaults by not setting the preferred cipher and hash of new entities created by `openpgp.NewEntity`. The preferred hash can be set by passing a `packet.Config` with a `DefaultHash` set, but the same cannot be done for the preferred cipher. This change copies the DefaultCipher into the self-signature, similar to DefaultHash. Change-Id: I80e1289d67b7cd4079be8c1d5ba603a555dbe5c1 Reviewed-on: https://go-review.googlesource.com/66430 Run-TryBot: Adam Langley <agl@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Adam Langley <agl@golang.org>
This repository holds supplementary Go cryptography libraries.
The easiest way to install is to run go get -u golang.org/x/crypto/...
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/crypto
.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the crypto repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/crypto:” in the subject line, so it is easy to find.
Note that contributions to the cryptography package receive additional scrutiny due to their sensitive nature. Patches may take longer than normal to receive feedback.