Ecosyste.ms: OpenCollective

An open API service for software projects hosted on Open Collective.

github.com/cert-manager/crypto

temporary fork to add support for ACME alternative certificate chains
https://github.com/cert-manager/crypto

argon2: add missing amd64 tags

The change fixes argon2_test build failure which currently
reads as follows when built with gccg...

a6600008915114d9c087fad9f03d75087b1a74df authored about 7 years ago
ssh: support chacha20-poly1305 cipher

chacha20-poly1305 is an AEAD which performs well without hardware
support. It is recommended as ...

ee41a25c63fb5b74abf2213abb6dee3751e6ac4a authored about 7 years ago
acme/autocert: support http-01 challenge type

The Manager now loops through known challenge types,
trying to fulfill one at a time until it su...

13931e22f9e72ea58bb73048bc752b48c6d4d4ac authored about 7 years ago
ssh: fix protocol version exchange (for multi-line)

Fixes golang/go#23194

During SSH Protocol Version Exchange, a client may send metadata lines
pr...

5f55bce93ad2c89f411e009659bb1fd83da36e7b authored about 7 years ago
ssh: use t.Run for testing multiple ciphers/macs

Change-Id: I410cecf0269cf2a88a8868d6b88f39f9b7026b6b
Reviewed-on: https://go-review.googlesource...

b3c9a1d25cfbbbab0ff4780b71c4f54e6e92a0de authored about 7 years ago
internal/chacha20: move up from chacha20poly1305/internal/chacha20

This exposes the chacha20 stream cipher to the entire x/crypto
package, and in particular to the...

49373064ff7cc78473ac8c5f4753e53317011567 authored about 7 years ago
ssh: specify InsecureIgnoreHostKey in the benchmarks

Change-Id: I06813be2b44ef8e5eb38fdac2d08a0f5cd840193
Reviewed-on: https://go-review.googlesource...

6bd909f163c83732e0b5e22a27154b1a112c3ff9 authored about 7 years ago
bn256: don't claim a 128-bit security level.

It's no longer true.

Fixes golang/go#19479

Change-Id: I85b0ce850ebde60b816924a25368208527a8e61...

0fcca4842a8d74bfddc2c96a073bd2a4d2a7a2e8 authored about 7 years ago
argon2: fix incorrect key derivation if parallelism > 1

This change fixes an incorrect key derivation if the
degree of parallelism is greater than 1.

T...

2b4b18b6aaeb2c9f7c1cc0145eccaabb3d96cf62 authored about 7 years ago
crypto/ssh: fix typo in error message in certs.go

Fixes golang/go#23266

Change-Id: I8da14425ed69c44a7b0c56b1aa0ea951fe297608
Reviewed-on: https:/...

95a4943f35d008beabde8c11e5075a1b714e6419 authored about 7 years ago
pbkdf2: add benchmarks

Add benchmarks for PBKDF2-HMAC-SHA1 and PBKDF2-HMAC-SHA256.
This is to help measure the crypto/h...

d585fd2cc9195196078f516b69daff6744ef5e84 authored about 7 years ago
ssh: accept ed25519 certs

Change-Id: I1cb0146c4b741f6d489edcf86412001ffc007f4f
Reviewed-on: https://go-review.googlesource...

244f6ce1f09cc9f3d7bffe29b033aaa13c0cc2f3 authored about 7 years ago
argon2: add new package implementing the Argon2 PBKDF family

This CL adds the package argon2. The argon2 package implements
the Argon2 PBKDF family (Argon2i,...

625c6a7b44f373b8dc893b6d82b1f976a505f885 authored about 7 years ago
all: run gofmt -s on source code

Per the description, the "-s" file issues slight simplifications to
the source code.

Change-Id:...

94eea52f7b742c7cbe0b03b22f0c4c8631ece122 authored about 7 years ago
all: fix errors reported by vet, golint

None are "wrong" per se, but there are a lot of good suggestions and
in one case a docstring tha...

e8f229864d71a49e5fdc4a9a134c5f85c4c33d64 authored about 7 years ago
crypto/ssh: only show banner once

Only show the SSH banner once, even if the client attempts
authentication with the "none" type a...

48a5a650cfc529a2517eb6a4d6d6749872520525 authored about 7 years ago
nacl/auth: use KeySize constant consistently.

Fixes golang/go#21788

Change-Id: I9310b438ce90cd3bba48295c829d44779c9f09c5
Reviewed-on: https:/...

365904b0f3154c6e11a9cf541c9803d1dca0445a authored about 7 years ago
ssh/terminal: handle non-ASCII characters when reading passwords

ReadPassword uses Windows ReadFile to read from console handle.
But ReadFile does not split inpu...

b080dc9a8c480b08e698fb1219160d598526310f authored about 7 years ago
ssh: add support for banners

According to RFC 4252 section 5.4, the banner is sent between the
ssh-connection request and res...

9f005a07e0d31d45e6656d241bb5c0f2efd4bc94 authored about 7 years ago
ssh: remove unused parameter of newGCMCipher

The macKey parameter of newGCMCipher is not used inside the function.
Remove it and adjust the o...

6a293f2d4b14b8e6d3f0539e383f6d0d30fce3fd authored about 7 years ago
terminal/ssh: use ioctl wrappers from x/sys/unix

Use the ioctl wrapper functions from x/sys/unix instead of manually
re-implementing them.

Chang...

687d4b818545e443c8ba223cbef20b1721afd4db authored about 7 years ago
ocsp: fix vet format string issues

Fix the following format string issues reported by go vet:

ocsp_test.go:46: Errorf format %d ...

ca1fcd4ab4c10bc58852a894bcf195fab2229efe authored about 7 years ago
blake2s: fix vet format string issue

Fix the following format string issue reported by go vet:

blake2s_test.go:188: Fatalf format ...

3680b74baed71629f388a7469a82ff4b295c2135 authored about 7 years ago
ed25519: update document to mention RFC 8032

The EdDSA draft has been approved as RFC 8032.

Change-Id: I2c0fba98d63ea51a7bb79acef55b9847cd0f...

bd6f299fb381e4c3393d1c4b1f0b94f5e77650c8 authored about 7 years ago
Revert "ssh: add support for banners"

This reverts commit ed5229da99e3a6df35c756cd64b6982d19505d86.

Reason for revert: missing langua...

2509b142fb2b797aa7587dad548f113b2c0f20ce authored over 7 years ago
ocsp: remove incorrect iota and update docs on CreateRequest

Change-Id: Ib347b468035d699156b6bff6c30fb653a1c5804d
Reviewed-on: https://go-review.googlesource...

edd5e9b0879d13ee6970a50153d85b8fec9f7686 authored over 7 years ago
acme, acme/autocert: add missing articles

Some sentences are missing the word "the" and others have it too
often.

Change-Id: I01a631e8f26...

541b9d50ad47e36efd8fb423e938e59ff1691f68 authored over 7 years ago
acme: fill Subject CN field in the tls-sni challenge certs

This is purely for debugging purposes, where an external system
may have a lookup mechanism base...

959b3afb35f6a769732990dceca09da087ee47f5 authored over 7 years ago
ssh: add support for banners

According to RFC 4252 section 5.4, the banner is sent between the
ssh-connection request and res...

ed5229da99e3a6df35c756cd64b6982d19505d86 authored over 7 years ago
scrypt: add missing license header

Change-Id: I17daa73c1957ed276ee32419248f321e018f5091
Reviewed-on: https://go-review.googlesource...

9419663f5a44be8b34ca85f08abc5fe1be11f8a3 authored over 7 years ago
scrypt: update recommended parameters for 2017

Previously we documented recommended parameters for scrypt from 2009,
which was eight years ago....

34d0413e1bf9c8d5ccc42391da5c92d16c595f74 authored over 7 years ago
acme/autocert: add Cache to Manager example

If you don't use a cache you're just begging for Let's Encrypt
to ban you for a week due to dupl...

76eec36fa14229c4b25bb894c2d0e591527af429 authored over 7 years ago
blake2b: fix typo in error message

io.EOF is expected by the test, but the error message mentions os.EOF.
Adjust it to io.EOF.

Cha...

c84b36c635ad003a10f0c755dff5685ceef18c71 authored over 7 years ago
ssh: remove unused buffer.eof return value

buffer.eof always returns nil and none of the callers check the return
value.

Change-Id: I2053c...

847319b7fc94cab682988f93da778204da164588 authored over 7 years ago
acme: reword the godoc to be more human readable

Updates #21902

Change-Id: I2988ba001450339d196da3a0f0687897e807e886
Reviewed-on: https://go-rev...

7d9177d70076375b9a59c8fde23d52d9c4a7ecd5 authored over 7 years ago
all: fix article typos

a -> an

Change-Id: I95a940df64cb825887b75a80eadc822095b49781
Reviewed-on: https://go-review.goo...

b0c9c05bfe149df95eb1d25642162cca051e0466 authored over 7 years ago
cryptobyte: include changes from review of 57810

I forgot to upload the final set of changes before submitting.

Change-Id: I3e60c6e2aad25af7f500...

faadfbdc035307d901e69eea569f5dda451a3ee3 authored over 7 years ago
cryptobyte: various API and documentation updates.

Change-Id: I83236ecea0774d4ec49e978a391eb3ff5dabdeb6
Reviewed-on: https://go-review.googlesource...

2bcb7b5baf829ed280ed1fd7320ad473b6849d60 authored over 7 years ago
ssh: reject unsupported DSA key sizes

Fixes golang/go#19424.

Change-Id: I73370603dd612979420d608b73d67e673a52362b
Reviewed-on: https:...

88e95fbb56610f02dbc78ebc3b207bec8cf56b86 authored over 7 years ago
all: make overlap rules wording consistent

Updates golang/go#21279

Change-Id: I686835c644f52e3d5ea2b7e6431ef096d188c19d
Reviewed-on: https...

74b34b9dd60829a9fcaf56a59e81c3877a8ecd2c authored over 7 years ago
nacl/[secret]box: clarify message size comment.

While package comments shouldn't be novels, this throwaway word was not
sufficient (and wasn't m...

9ba3862cf6a5452ae579de98f9364dd2e544844c authored over 7 years ago
openpgp: check errors from ReadKeyRing during test

Otherwise if ReadKeyRing is buggy the errors point elsewhere.

Change-Id: Id2df4b6763ddf93fad5a9...

8f297cd68bfa04239297e192d8ebff8928eab7a3 authored over 7 years ago
sha3: delete unused field

Change-Id: I7dcb8a5ee07cc39e0c503f211f8f77732f006ad6
Reviewed-on: https://go-review.googlesource...

81e90905daefcd6fd217b62423c0908922eadb30 authored over 7 years ago
ssh/terminal: set termios VMIN and VTIME in MakeRaw

The Solaris version of MakeRaw already sets VMIN and VTIME explicitly
such that a read returns w...

eb71ad9bd329b5ac0fd0148dd99bd62e8be8e035 authored over 7 years ago
ssh/agent: use right message to unlock agent, with related integration tests

Change-Id: Ie2e7618be63179fb65b8eea60684254712149a77
Reviewed-on: https://go-review.googlesource...

b176d7def5d71bdd214203491f89843ed217f420 authored over 7 years ago
nacl/auth: add crypto_auth primitive

This matches the implementation in NaCL, so a user can generate
a crypto_auth digest in another ...

81db3efc71b576a04b145ca576c0bb9c0fb74d4f authored over 7 years ago
ssh: fix documentation on ServerConfig.PublicKeyCallback

Fix leftovers from the old days to match today's method signature.

Fixes golang/go#21325

Chang...

76c7c60c071b310d16774257b879b9d476db77f3 authored over 7 years ago
ssh/terminal: use console functions, types and consts from x/sys/windows

Use GetConsoleMode, SetConsoleMode and GetConsoleScreenBufferInfo and
the corresponding types an...

42ff06aea7c329876e5a0fe94acc96902accf0ad authored over 7 years ago
ed25519: don't use constant-time functions in Verify.

Verify operates only on public data and thus is not constant-time. The
use of a constant-time fu...

c412588e259ef2d488e15762500456cd3b171bad authored over 7 years ago
openpgp/packet: fix AES-192 encrypted session keys

The existing implementation checks to see if the session key size is a
multiple of the cipher bl...

418008d6189cfc4ba88f220353d087d3ddfd7a31 authored over 7 years ago
salsa20/salsa: fix out of bounds write

Fixes golang/go#21104

Change-Id: I59054f9e2beed8a0c7efd513eb84795dc0308353
Reviewed-on: https:/...

358f15eacb587b056fc93273b930314a5cda12fe authored over 7 years ago
ssh/terminal: use termios ioctl read/write constants from x/sys/unix

Use the TCGETS/TCSETS and TIOCGETA/TIOCSETA definitions from x/sys/unix
instead of manually decl...

558b6879de74bc843225cde5686419267ff707ca authored over 7 years ago
acme: clarify the purpose of CertOption interface

This change also moves CertOption and its relevant types and
functions from acme.go to types.go....

27b9897dfcda296fc086003b6e46fca80a29512d authored over 7 years ago
ssh/agent: parse constraints when adding keys

Change-Id: I264fc3e3e441d6e5ff7c5aa624eee1018cf9e4de
Reviewed-on: https://go-review.googlesource...

2faea1465de239e4babd8f5905cc25b781712442 authored over 7 years ago
ssh: add Session.WindowChange to send window change events

Change-Id: Ib89c0a4e46c9a7f90a53f21b06fcddfdf13c7fd9
Reviewed-on: https://go-review.googlesource...

8c55ac71e05f0f9c5570ea47328f41a0ddd8d63d authored over 7 years ago
md4: move the example to the right directory

Mistake from https://golang.org/cl/49030 (noted in comments after submission)

Change-Id: Id1c94...

6914964337150723782436d56b3f21610a74ce7b authored over 7 years ago
md4: add example for New

Change-Id: I221d65fd495594ee409b999c7e0f0407b2331ac2
Reviewed-on: https://go-review.googlesource...

4bc1c249b153ce1da9f55437759cec51fe6acabb authored over 7 years ago
README: add improvements

Move the README to README.md so Gerrit can render it; currently
Gerrit only renders files named ...

4d70248d17d12d1edb7153434a74001c1540938b authored over 7 years ago
sha3: added example output

Output for sha3.ShakeSum256 and sha3.NewShake256 examples is now
verified.

Change-Id: I31e186a0...

7f7c0c2d75ebb4e32a21396ce36e87b6dadc91c9 authored over 7 years ago
ocsp: remove a redundant conditional expression from an if statement

cert can never be nil here. The statement was incorrectly moved in
e1a4589.

Change-Id: I1fb2aa0...

dd85ac7e6a88fc6ca420478e934de5f1a42dd3c6 authored over 7 years ago
ssh: fix a formatting bug in a test

Change-Id: I34cc1a5a8c59c5e4c0313d7a41c3f31cdbad9e98
Reviewed-on: https://go-review.googlesource...

3627ff35f31987174dbee61d9d1dcc1c643e7174 authored over 7 years ago
blake2b: implement BLAKE2X

This CL implements the BLAKE2X, a extensible-output function (XOF), on
top of BLAKE2b. BLAKE2X i...

08a7dbd3d99261d9ae86ef1b3b8bdb0382fb82cd authored over 7 years ago
ssh: allow up to 255 bytes of padding in AES-GCM

The writing side would generate a maximum of 19 bytes of padding, so
the reading side erroneousl...

a48ac81e47fd6f9ed1258f3b60ae9e75f93cb7ed authored over 7 years ago
ssh: fix if/else returns to adhere to Go style guidelines

Change-Id: Iea55e6397c49046d7d3e0eb66a392f1779d91802
Reviewed-on: https://go-review.googlesource...

d625dfd80595a76324dea1452ceb9cfbcaee8e3e authored over 7 years ago
blake2s: implement BLAKE2X

This CL implements BLAKE2X, a extensible-output functions (XOF) on top of BLAKE2s.
BLAKE2x is de...

b286ef4198388fdb0e4ae62be12820df5da9b4c2 authored over 7 years ago
acme, acme/autocert: use canonical http header keys

Change-Id: I6aebbd0c351c1dcc27504f5a6fe02bfe7ebe805b
Reviewed-on: https://go-review.googlesource...

51714a8c4ac1764f07ab4127d7f739351ced4759 authored over 7 years ago
ssh: return authErr array if all authentication attempts fail

Change-Id: I4d6cab266410a8c7960073665eddf8935693087f
Reviewed-on: https://go-review.googlesource...

69be088f860613049aa58c65154d1b1d32bbdf90 authored over 7 years ago
acme: fix mismatched format arguments in acme_test.go

Change-Id: I4d685309e375fd0bb50d1d32c60ac48a7f2515fc
Reviewed-on: https://go-review.googlesource...

5746f0a2e262b80ccdf839a4a37a6b97962210f1 authored over 7 years ago
acme/autocert: clean up temporary directories in TestDirCache()

Change-Id: I5de781adf4071158404da6252d06e4c2c33f298b
Reviewed-on: https://go-review.googlesource...

368a6044bc0e88e78f6dd705a6c8eb1fd69b6676 authored over 7 years ago
all: use HTTPS for links that support it

Many websites now support HTTPS that may not at the time the code was
committed; let's use the H...

5ef0053f77724838734b6945dd364d3847e5de1d authored over 7 years ago
ssh: signal incorrect private key passwords with x509.IncorrectPasswordError

Fixes golang/go#20781

Change-Id: Iae42fff3c9b0b9984509e44a92f9bc99a1a12470
Reviewed-on: https:/...

84f24dfdf3c414ed893ca1b318d0045ef5a1f607 authored over 7 years ago
all: gofmt ./...

Change-Id: I8ffee4dc712091e424b83a9f5a3cc2a6724abefc
Reviewed-on: https://go-review.googlesource...

adbae1b6b6fb4b02448a0fc0dbbc9ba2b95b294d authored over 7 years ago
ssh: clarify intended use of Permissions.

The Permissions struct should be used to pass information from
authentication callback to server...

2ad6eb5ede58ae56b1ad87d91bcd2e5e88109b1d authored over 7 years ago
nacl/secretbox: add benchmarks

Initial results on an Ivy Bridge system for reference:

BenchmarkSeal8Bytes-8 5000000 ...

93b5df3bf36996258d005da151953da2030e346b authored over 7 years ago
acme/autocert: enable HTTP/2 on listener

Enables HTTP/2 on any servers used with the autocert listener
by setting "h2" in NextProtos of t...

850760c427c516be930bc91280636328f1a62286 authored over 7 years ago
ssh: add ParsePrivateKeysWithPassphrase

ssh package doesn't provide way to parse private keys with passphrase.

Fixes golang/go#18692

C...

fea6c2c83557701d46ea1cc0ea4c8272632fa3bd authored over 7 years ago
nacl/box: Add examples

These largely follow the pattern laid out in the secretbox example
file. Hopefully they should d...

e7ba82683099cae71475961448ab8f903ea77c26 authored over 7 years ago
blake2s: add 128-bit digest support.

Although a 128-bit digest provides little collision resistance it can be
used as a MAC, as found...

6e3a28fe265a887689d699f026ed05db85ae44d6 authored over 7 years ago
ocsp: enhance errors for responses without a matching SingleResponse

ParseResponseForCert would previously complain about an invalid hash OID
if the response contain...

e1a4589e7d3ea14a3352255d04b6f1a418845e5e authored over 7 years ago
xts: fix incorrect length check

This change does two things:
1. Fix a length checking bug in the Decrypt function.
2. Use bina...

976dfd0a58d32e9a0be8513f2a36e866b0760329 authored over 7 years ago
ssh: fixing a small typo in connection.go

Change-Id: Iffbed7e16a8bb32c5ff7c393f3b6ad7dcffc69ac
Reviewed-on: https://go-review.googlesource...

080743b21912ae11ad9222778a048b795a5aae00 authored over 7 years ago
x/crypto/ssh: fix host certificate principal evaluation to check for hostname only

SSH host certificates are expected to contain hostnames only,
not "host:port" format.

This chan...

7e9105388ebff089b3f99f0ef676ea55a6da3a7e authored over 7 years ago
bcrypt: fix C compatibility code

The bcrypt implementation must append a zero byte to the user provided key
to be compatible to C...

6c586e17d90a7d08bbbc4069984180dce3b04117 authored over 7 years ago
chacha20poly1305: fix style nits in variable names

Change-Id: I3ac9dc7bf1c1c6ff39b3385cbf965dfb57f8327a
Reviewed-on: https://go-review.googlesource...

0fe963104e9d1877082f8fb38f816fcd97eb1d10 authored over 7 years ago
blake2b: fix self-assignment in test

Fix self-assignment of useAVX variable. (vet warning)

Change-Id: I4194d7640f17cbf71dae27ce271d6...

ab89591268e0c8b748cbe4047b00197516011af5 authored over 7 years ago
ssh: change the local copy of the ServerConfig passed to NewServerConn

Otherwise callers are forced to serialize access to the ServerConfig.

Change-Id: Id36f4d2877ea2...

122d919ec1efcfb58483215da23f815853e24b81 authored over 7 years ago
acme/autocert: validate SNI value even more

Follow-up to https://golang.org/cl/42497

Change-Id: I638e7ba5e924a74ce5318e4b50fb18082fd1a43f
R...

5a033cc77e57eca05bdb50522851d29e03569cbe authored over 7 years ago
autocert: validate SNI values more, add tests

Change-Id: I810c8dcc90c056d7fa66bba59c0936f54aabdfc7
Reviewed-on: https://go-review.googlesource...

04eae0b62feaaf659a0ce2c4e8dc70b6ae2fff67 authored over 7 years ago
crypto/ssh: fix tests on Go 1.7 on OpenBSD and Windows

Dialing the 0.0.0.0 address (as returned by net.Addr().String() for a
net.Listen("tcp", ":1") ad...

2292f58bd515b6671df42f503e853e6daffe15e5 authored over 7 years ago
chacha20poly1305: add runtime internal independent cpu feature detection

Change-Id: I150c5e0453b0fa3457d4786fe90901a54e216b02
Reviewed-on: https://go-review.googlesource...

12e9ca725de4806fbda1610fd95aacad15bd6810 authored over 7 years ago
ssh/knownhosts: test coverage for IsHostAuthority

Change-Id: Iad24fed7cec998e02620ec0eb61658786156ba41
Reviewed-on: https://go-review.googlesource...

d1464577745bc7f4e74f65be9cfbd09436a729d6 authored over 7 years ago
acme/autocert: remove failed state entries

This change makes the Manager try creating a certificate
again, after a previously unsuccessful ...

8e03fc1ab6a36bdb9e7dee75a213c30f0249d0c1 authored over 7 years ago
ssh/knownhosts: add IsHostAuthority.

This is a breaking change.

This adds a new hostkey callback which takes the hostname field
rest...

527d12e53572562de9fd348d50e1ee4096803cec authored over 7 years ago
acme: add missing err assignment check

Spotted it thanks to a proposal in
https://github.com/golang/go/issues/19727.

Change-Id: I389a3...

c7af5bf2638a1164f2eb5467c39c6cffbd13a02e authored almost 8 years ago
acme: add function to check rate limits

This change exposes a function to extract rate limit duration
from a client error using Retry-Af...

5f995c0d1c72642b4845a718a648d17fce6ed6fa authored almost 8 years ago
acme: replace ErrAuthorizationFailed with a type

This provides acme users with more insights into authorization failures.

Updates golang/go#1980...

141c762c16f10ba7daaac32541e4f703e53afb13 authored almost 8 years ago
acme/autocert: treat invalid cert as a cache miss

A cached cert data may be corrupted or simply contain an expired
certificate, which results in G...

0e4becf93e416602ac28708cc8fab681fe79fdc7 authored almost 8 years ago
acme: generate correct ES512 signatures

The correct curve name for ES512 signatures is P-521, not P-512.
Author: Matthew Endsley <mendsl...

2b0eeecfe7b67ec0fa096091d2fe37e8fd4db78c authored almost 8 years ago
acme/autocert: return error if Prompt not set

Without this, autocert will panic with an unhelpful nil pointer inside
the acme client.

Reorgan...

3543873453996aaab2fc6b3928a35fc5ca2b5afb authored almost 8 years ago
ssh/terminal: implement missing functions for Solaris/OmniOS

terminal.MakeRaw
terminal.Restore
terminal.GetState
terminal.GetSize

Fixes gola...

96846453c37f0876340a66a47f3f75b1f3a6cd2d authored almost 8 years ago