Ecosyste.ms: OpenCollective

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

github.com/ooni/oocrypto

Fork of Go crypto/tls with extra patches from the OONI team
https://github.com/ooni/oocrypto

crypto/x509: always emit a critical SAN extension if the Subject is empty.

The RFC is a little ambiguous here: “the subject field contains an empty
sequence” could mean th...

7646bd21c047139c66c2d7ed146e3beb5d188525 authored about 7 years ago by Adam Langley <[email protected]>
crypto/x509: relax EKU checking in some cases.

CL 71030 enforced EKU nesting at verification time, to go along with the
change in name constrai...

875d879060f2bf110b3491504d5ba2c7963eacb3 authored about 7 years ago by Adam Langley <[email protected]>
crypto/x509: don't fail to parse addition elements in GeneralSubtree.

The GeneralSubtree structure can have additional elements after the name
(minimum and maximum, w...

8ffd8ae805a5fa908b059afad8da83cb5f925fa3 authored about 7 years ago by Adam Langley <[email protected]>
crypto/cipher: use raw bytes for keys in docs

Using ASCII values for keys is a bad idea since it makes them vastly
easier to guess. Instead, u...

c3498b693b3ddfaf15c8a6d123b5b2eac049abdd authored about 7 years ago by Kevin Burke <[email protected]>
crypto/sha1, crypto/sha256: add go:noescape annotations

Additions to:
https://go-review.googlesource.com/c/go/+/61570
https://go-review.googlesource.com...

243c95ca29bf3b20828e78212587a1a8bbe35bc0 authored about 7 years ago by Brad Fitzpatrick <[email protected]>
crypto/sha1, crypto/sha256: fix typo fisrt -> first

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

89781e4afc083a7aa300ec4a24790ffdba381bf6 authored about 7 years ago by Marko Mudrinic <[email protected]>
crypto, hash: document marshal/unmarshal implementation

Unless you go back and read the hash package documentation, it's
not clear that all the hash pac...

a81bd6781d9c6ffef2b0f0bcf60b2027795a3bce authored about 7 years ago by Roger Peppe <[email protected]>
crypto/sha256: optimize arm64 sha256 implemention

Optimize with ARMv8 SHA256 instructions.
Result (Cortex-A72)

name old time/op new ...

9b2366f54b4af08b88f1beef853f8e11d8ae3a8a authored about 7 years ago by fanzha02 <[email protected]>
crypto/sha1: optimize arm64 sha1 implemention

Optimize with ARMv8 SHA1 instructions.
Results (Cortex-A72)

name old time/op new...

46107b7fbebcb5ea9c3dde41faffe9882c3a9a7d authored about 7 years ago by fanzha02 <[email protected]>
crypto/elliptic: reduce allocations in s390x P256 code

The Go compiler assumes that pointers escape when passed into assembly
functions. To override th...

3a76e3d41cb12f664ff2b1ba6dc2b1aad77ffa2a authored about 7 years ago by Michael Munday <[email protected]>
crypto/x509: handle name constraints with cryptobyte

This allows better precision and (the motivation) empty strings to
be handled correctly. With th...

d406c00d055c3b55aa437f7ca7369d1c2cf98e4b authored about 7 years ago by Adam Langley <[email protected]>
crypto/subtle: simplify and speed up constant-time primitives

This changes improves the ConstantTimeByteEq and ConstantTimeEq
primitives to both simplify them...

e2cc64504731f80928acb506fca831a713191896 authored about 7 years ago by Bryan A Ford <[email protected]>
crypto/tls: limit number of consecutive warning alerts

In the current implementation, it is possible for a client to
continuously send warning alerts, ...

dc1f087677eee5c62ddd9f6f2ea6b342f78bc0af authored about 7 years ago by filewalkwithme <[email protected]>
crypto/tls: advertise support for SHA-512 signatures in 1.2

This is the equivalent change to 1c105980 but for SHA-512.

SHA-512 certificates are already sup...

52b3aacde3098d964fb42019921a34dae2e75231 authored about 7 years ago by Filippo Valsorda <[email protected]>
crypto/x509: enforce EKU nesting at chain-construction time.

crypto/x509 has always enforced EKUs as a chain property (like CAPI, but
unlike the RFC). With t...

564fb641700fcd89567e603c92d46592e1fdb9a0 authored about 7 years ago by Adam Langley <[email protected]>
crypto/x509: enforce all name constraints and support IP, email and URI constraints

This change makes crypto/x509 enforce name constraints for all names in
a leaf certificate, not ...

fbd02b79f2c0404ec85993a618f9b002fe783206 authored about 7 years ago by Adam Langley <[email protected]>
crypto/aes: use s390x KMA instruction for AES-GCM if available

Adds support for the cipher message with authentication (KMA)
instruction added in message-secur...

7d41558ad548baea81fea3af0409a8fd91b2f2b4 authored about 7 years ago by Michael Munday <[email protected]>
crypto/x509/pkix: consider now==NextUpdate to be expired.

If the current time is equal to the NextUpdate time, then the CRL
should be considered expired.
...

f4872032a43657e16b897766324ea2110a2e9a2f authored about 7 years ago by Anmol Sethi <[email protected]>
all: change github.com issue links to golang.org

The go repository contains a mix of github.com/golang/go/issues/xxxxx
and golang.org/issues/xxxx...

58ab90b67f6b4fcd730c3c4246d837c9e3394261 authored about 7 years ago by Leigh McCulloch <[email protected]>
crypto, hash: implement BinaryMarshaler, BinaryUnmarshaler in hash implementations

The marshal method allows the hash's internal state to be serialized and
unmarshaled at a later ...

c3c86a8f8a0098e027b8585739df60a000edf236 authored about 7 years ago by Tim Cooper <[email protected]>
archive/zip, crypto/tls: use rand.Read instead of casting ints to bytes

Makes tests run ~1ms faster.

Change-Id: Ida509952469540280996d2bd9266724829e53c91
Reviewed-on: ...

3516a631921fb9b4a280c32b3bde164785530144 authored about 7 years ago by Carl Mastrangelo <[email protected]>
crypto/cipher, crypto/rc4: make overlap rules wording consistent

Closes #21279

Change-Id: I84d6b168a684fa9f3c046028d0c9f00292d7c110
Reviewed-on: https://go-revi...

0a83765534a3497ab5b7a0d963f18c60d5942764 authored about 7 years ago by Filippo Valsorda <[email protected]>
crypto/tls: remove bookkeeping code from pHash function

Since copy function can figure out how many bytes of data to copy when
two slices have different...

60cd37392bf1436cd8eb70861ad959e2998a4980 authored about 7 years ago by Joe Kyo <[email protected]>
crypto/{ecdsa,rsa}: rename argument to PrivateKey.Sign.

The crypto.Signer interface takes pre-hased messages for ECDSA and RSA,
but the argument in the ...

19ffa24d04b221b9809d592dc972fca945eec0f1 authored about 7 years ago by Adam Langley <[email protected]>
[release-branch.go1.9] crypto/x509: reject intermediates with unknown critical extensions.

In https://golang.org/cl/9390 I messed up and put the critical extension
test in the wrong funct...

6b6376e275216dd6df6a0dc1fb2d7ae6ddbd9829 authored about 7 years ago by Adam Langley <[email protected]>
[release-branch.go1.9] crypto/x509: skip TestSystemRoots

golang.org/cl/36941 enabled loading of all trusted certs on darwin
for the non-cgo execSecurityR...

7e3368c144fa9f776b162aca3a2790208a5016a3 authored about 7 years ago by Martin Möhrmann <[email protected]>
crypto/elliptic: don't unmarshal invalid encoded points

ANSI X9.62 specifies that Unmarshal should fail if the a given coordinate is
not smaller than th...

ff654b65e8624c26e3dc4a4894c631caf5df9102 authored about 7 years ago by Andreas Auernhammer <[email protected]>
crypto/tls: replace signatureAndHash by SignatureScheme.

Consolidate the signature and hash fields (SignatureAndHashAlgorithm in
TLS 1.2) into a single u...

ae8c639e705bf7b6f0440503a07dd8287f531219 authored about 7 years ago by Peter Wu <[email protected]>
crypto/x509: reformat test struct.

https://golang.org/cl/67270 wasn't `go fmt`ed correctly, according to
the current `go fmt`. Howe...

cda15d174bc9bc764e8b6dde206dee0b3ae4bb21 authored about 7 years ago by Adam Langley <[email protected]>
crypto/x509: reject intermediates with unknown critical extensions.

In https://golang.org/cl/9390 I messed up and put the critical extension
test in the wrong funct...

fa5b4a2c7d64ea00492b64f38424986d3e25282d authored over 7 years ago by Adam Langley <[email protected]>
crypto/tls: fix first byte test for 255 CBC padding bytes

The BadCBCPadding255 test from bogo failed because at most 255 trailing
bytes were checked, but ...

2d0edc1105edb7a0b1010e193560c4e8cf4aaeff authored over 7 years ago by Peter Wu <[email protected]>
all: revert "all: prefer strings.LastIndexByte over strings.LastIndex"

This reverts https://golang.org/cl/66372.

Updates #22148

Change-Id: I3e94af3dfc11a2883bf28e1d5...

c2fc893a2de7639359ace39ddd862c821e38af11 authored over 7 years ago by Marvin Stenger <[email protected]>
all: revert "all: prefer strings.IndexByte over strings.Index"

This reverts https://golang.org/cl/65930.

Fixes #22148

Change-Id: Ie0712621ed89c43bef94417fc32...

34336d76b0ebbc8e19808bd96e9e07526a093941 authored over 7 years ago by Marvin Stenger <[email protected]>
crypto/elliptic: fix incomplete addition used in CombinedMult on s390x

This applies the amd64-specific changes from CL 42611 to the s390x P256
implementation. The s390...

7c1b36955b01a768bb924ecdd4295837298dd54e authored over 7 years ago by Michael Munday <[email protected]>
crypto/x509: add string conversion of PKIX names

Fixes #21615

Change-Id: Ic13190617d9b446b35f5dd00f142597c187ab669
Reviewed-on: https://go-revie...

6d4ee7f48aaf29e176587f96c6da2d91e5385f85 authored over 7 years ago by Martin Kreichgauer <[email protected]>
crypto/x509: abstract SAN parsing function

We'll need this for handling name constraints during verification.

Change-Id: I4ef19d9489fb2a9a...

23352dafed3141556e55f509dd85cd3291a0f720 authored over 7 years ago by Adam Langley <[email protected]>
crypto/x509: reject empty name constraints extension

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

b8ec51bf1b87a4722b4ecf8c072e02ae277a5f35 authored over 7 years ago by Adam Langley <[email protected]>
all: prefer bytes.IndexByte over bytes.Index

bytes.IndexByte can be used wherever the second argument to
strings.Index is exactly one byte lo...

82b6e3e5b1c7b5f997127379057355a10be3ef9d authored over 7 years ago by Marvin Stenger <[email protected]>
all: prefer strings.LastIndexByte over strings.LastIndex

strings.LastIndexByte was introduced in go1.5 and it can be used
effectively wherever the second...

b49f529b83f07fa459215fb49fcb4c92e8108556 authored over 7 years ago by Marvin Stenger <[email protected]>
all: prefer strings.IndexByte over strings.Index

strings.IndexByte was introduced in go1.2 and it can be used
effectively wherever the second arg...

97f71e9126885e4d3b80f333ca5b4dcfa7a9c48b authored over 7 years ago by Marvin Stenger <[email protected]>
[dev.boringcrypto] crypto/tls/fipsonly: new package to force FIPS-allowed TLS settings

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

2dad2e17801fbf13498b8f7c5aa4ba98843a5691 authored over 7 years ago by Russ Cox <[email protected]>
crypto/elliptic: gofmt

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

50ada36e288c3ae7aeb55dd052536e099193bf77 authored over 7 years ago by Michael Munday <[email protected]>
[dev.boringcrypto] crypto/internal/boring: fix finalizer-induced crashes

All the finalizer-enabled C wrappers must be careful to use
runtime.KeepAlive to ensure the C wr...

59587e87984256927f48636fdf1db0a4f3da8b97 authored over 7 years ago by Russ Cox <[email protected]>
[dev.boringcrypto] crypto/internal/boring: fall back to standard crypto when using -msan

The syso is not compiled with -fsanitize=memory, so don't try to use it.
Otherwise the first tim...

994e5e4dddaa6ca1cfde4a226ef846a6022ffecf authored over 7 years ago by Russ Cox <[email protected]>
[dev.boringcrypto] crypto/aes: panic on invalid dst, src overlap

I've now debugged multiple mysterious "inability to communicate"
bugs that manifest as a silent ...

4638b98e2c7f23c5e67c3ab7e106be53a1ac9522 authored over 7 years ago by Russ Cox <[email protected]>
[dev.boringcrypto] crypto/rsa: fix boring GenerateKey to set non-nil Precomputed.CRTValues

This matches the standard GenerateKey and more importantly Precompute,
so that if you generate a...

860581c4e5fe2050d8a36ebb7d970fc8b6b8d72c authored over 7 years ago by Russ Cox <[email protected]>
[dev.boringcrypto] crypto/internal/boring: fix detection of tests to allow *.test and *_test

When using the go command, test binaries end in .test,
but when using Bazel, test binaries conve...

492be48fa0451d7fef49b84de60eb270bc2e9f88 authored over 7 years ago by Russ Cox <[email protected]>
[dev.boringcrypto] crypto/rsa: add test for, fix observable reads from custom randomness

In routines like GenerateKey, where bits from the randomness source have a
visible effect on the...

1cad03192634f44ac02c4307a86a8dc6be7b906d authored over 7 years ago by Russ Cox <[email protected]>
[dev.boringcrypto] crypto/hmac: add test for Write/Sum after Sum

This is documented to work (in hash.Hash's definition)
and existing code assumes it works. Add a...

bac571f92cd1741b332a3932b2075380c11d0557 authored over 7 years ago by Russ Cox <[email protected]>
[dev.boringcrypto] crypto/internal/boring: allow hmac operations after Sum

hmac.New returns a hash.Hash, which defines Sum as:

// Sum appends the current hash to b and r...

2daec70eb34d6da3a3ba4c2535000847e4f6cfe6 authored over 7 years ago by Russ Cox <[email protected]>
[dev.boringcrypto] crypto/internal/boring: handle RSA verification of short signatures

The standard Go crypto/rsa allows signatures to be shorter
than the RSA modulus and assumes lead...

00671b4da8c06d048414c5717a6f6c5400e4f287 authored over 7 years ago by Russ Cox <[email protected]>
all: fix article typos

a -> an

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

8e09504ed85401076285320d90cd08823d3f9922 authored over 7 years ago by Kunpei Sakai <[email protected]>
crypto: simplify amd64 asm for sha{1,256,512} a bit

Use constants directly, instead of loading address to e. g. AX
and using (AX). Shouldn't affect ...

58959efd039fd81f8fd824b40db5bce23af535e9 authored over 7 years ago by Ilya Tocar <[email protected]>
crypto/sha1: speed up sha1 for very small blocks

For very small blocks significant time is spent in checkSum function,
adding necessary padding. ...

e800c3aa2b96fc6e228809599372ed6f96ab461c authored over 7 years ago by Ilya Tocar <[email protected]>
crypto/elliptic: fix incomplete addition used in CombinedMult.

The optimised P-256 includes a CombinedMult function, which doesn't do
dual-scalar multiplicatio...

7303769fb77946ecda9cd2d1bafb52c1446f6076 authored over 7 years ago by Adam Langley <[email protected]>
crypto/elliptic: temporarily disable s390x assembly

This disables the s390x assembly. It will be re-enabled when #20215
is resolved on s390x.

Chang...

bb639519f8f576c3dae90273998d71aa7303f96b authored over 7 years ago by Michael Munday <[email protected]>
crypto/x509: store names in signatureAlgorithmDetails.

There is already a table of signature algorithm details so the code
should use it for the name t...

16ce7b91d5e38abc31f39caf1fbffe5b78a77e47 authored over 7 years ago by Adam Langley <[email protected]>
crypto/x509: get hash information from signatureAlgorithmDetails and check that it matches

signatureAlgorithmDetails already knows the hash function for each
signature algorithm so there'...

9df08b46cebd061c176a4d5ba9a213fd81dc7f31 authored over 7 years ago by Adam Langley <[email protected]>
crypto/tls: fix clientHelloMsg fuzzer not to generate the RI SCSV

It was causing mysterious fuzzing failure because it affects the
unmarshaling of the secureNegot...

0c5c03b305537a86899ebd8388b3469b652fccdb authored over 7 years ago by EKR <[email protected]>
crypto/tls: fix and expand TestVerifyPeerCertificate and TestGetClientCertificate

TestGetClientCertificate had disabled verification, and was only passing
because it was mistaken...

71a0ef9d51f17e7c7416a5475689dc05b051d90d authored over 7 years ago by Filippo Valsorda <[email protected]>
crypto/cipher: panic when IV length does not equal block size in NewOFB

Functions like NewCBCDecrypter, NewCBCEncrypter, NewCFBDecrypter,
NewCFBEncrypter and NewCTR all...

1a642e2779c5b585e7cc2195d6c6b35e126f33a4 authored over 7 years ago by Joe Kyo <[email protected]>
crypto/cipher: extend the docs of BlockMode and Stream

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

7bebb0f83e1d2fc3900621a9bf78a874cdb07b02 authored over 7 years ago by Filippo Valsorda <[email protected]>
[dev.boringcrypto] cmd/compile: hide new boring fields from reflection

This is terrible but much simpler, cleaner, and more effective
than all the alternatives I have ...

ec5e0241fabf5a2982e8a41ce561691ef0651bf9 authored over 7 years ago by Russ Cox <[email protected]>
[dev.boringcrypto] crypto/hmac: test empty key

This happens in the scrypt and pbkdf unit tests.

Change-Id: I1eda944d7c01d28c7a6dd9f428f5fdd1cb...

747c80fd6a30c65dbd48e9dd5760cd3c45c73612 authored over 7 years ago by Russ Cox <[email protected]>
[dev.boringcrypto] crypto/internal/boring: fix NewHMAC with empty key

Test is in a separate CL for easier cherry-picking to master branch.

Change-Id: Ia4a9032892d289...

b4c6f2db2bb0764d1f9276eecf38114190ad6d72 authored over 7 years ago by Russ Cox <[email protected]>
[dev.boringcrypto] crypto/internal/cipherhw: fix AESGCMSupport for BoringCrypto

The override was not commented and was in the wrong file.

Change-Id: I739db561acff6d91b0f3559c8...

43b0836038a057aed67e52856a2b20d9ca2c4dec authored over 7 years ago by Russ Cox <[email protected]>
all: join some chained ifs to unindent code

Found with mvdan.cc/unindent. It skipped the cases where parentheses
would need to be added, whe...

a963a82f1dc53e7cc31fb36fc2cdc36701f68780 authored over 7 years ago by Daniel Martí <[email protected]>
crypto/rsa: fix URL for the PKCS #1 v2.2 document in pss.go

The PKCS #1 v2.2 document has been moved to an EMC
website with a new URL. This CL updates the r...

a7734d2da6303912c5a2bd8e3190dd29c43e9e8f authored over 7 years ago by Ulrich Kunitz <[email protected]>
crypto/tls: fix docstring of Config.ClientSessionCache

Closes #21519

Change-Id: I1247e9435de93aae7e4db2b6e8e5be1b010c296b
Reviewed-on: https://go-revi...

0990e8a3e6205318df4f2f390fe5f0d62df41a7e authored over 7 years ago by Artyom Pervukhin <[email protected]>
[dev.boringcrypto] crypto/internal/boring: disable for android & non-cgo builds

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

057a52a809ffd2a2c07699512d00cb346be5f43b authored over 7 years ago by Russ Cox <[email protected]>
[dev.boringcrypto] crypto/internal/boring: clear "executable stack" bit from syso

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

538280b9192e04d5d5cd35759ce8f1337cf98d64 authored over 7 years ago by Russ Cox <[email protected]>
crypto/x509: skip TestSystemRoots

golang.org/cl/36941 enabled loading of all trusted certs on darwin
for the non-cgo execSecurityR...

0579087b672d479bb871da0bf8db4f4f149c1c00 authored over 7 years ago by Martin Möhrmann <[email protected]>
[dev.boringcrypto] crypto/rsa: use BoringCrypto

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

8a9f82c160f8df203c0fd74bbebd5ebeb2173da7 authored over 7 years ago by Russ Cox <[email protected]>
[dev.boringcrypto] crypto/ecdsa: use unsafe.Pointer instead of atomic.Value

Using atomic.Value causes vet errors in code copying
PublicKey or PrivateKey structures. I don't...

4c88b29a43e58e8db0c8ab5b14ccb036ba710667 authored over 7 years ago by Russ Cox <[email protected]>
crypto/aes: make the GHASH part of AES-GCM faster

By processing 8 blocks in parallel GHASH achieves higher throughput on amd64

Results on Skylake...

42abc1fef4fd352b033787a89a82a131a04d52c8 authored over 7 years ago by Vlad Krasnov <[email protected]>
[dev.boringcrypto] crypto/ecdsa: use BoringCrypto

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

d9d0804fb3c073d2d06c1aee37a313e2da4cfd31 authored over 7 years ago by Russ Cox <[email protected]>
[dev.boringcrypto] crypto/tls: use TLS-specific AES-GCM mode if available

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

28e13209b13c4ba530802962167c87447e3c86c6 authored over 7 years ago by Russ Cox <[email protected]>
[dev.boringcrypto] crypto/aes: implement TLS-specific AES-GCM mode from BoringCrypto

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

66d43988cb175e559834e33b350ee1ac71e49bcd authored over 7 years ago by Russ Cox <[email protected]>
[dev.boringcrypto] crypto/aes: use BoringCrypto

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

4723fc09d3b2377db0bcfddbd67cf4720ba653e4 authored over 7 years ago by Russ Cox <[email protected]>
[dev.boringcrypto] crypto/hmac: use BoringCrypto

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

ea3a43df4fe3c67da3a5674a35596cf3f21b07e9 authored over 7 years ago by Russ Cox <[email protected]>
[dev.boringcrypto] crypto/sha1,sha256,sha512: use BoringCrypto

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

cb562da65f4d4500d62266525d7b80445deecc39 authored over 7 years ago by Russ Cox <[email protected]>
[dev.boringcrypto] crypto/rand: use BoringCrypto

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

ddca9f59d4cb21d33b6596e90ed9b6b46e6da3cf authored over 7 years ago by Russ Cox <[email protected]>
[dev.boringcrypto] crypto/internal/boring: add initial BoringCrypto access

Right now the package doesn't do anything useful, but it will.
This CL is about the machinery fo...

e9b12c1a51cc84cf12e759a2d2d1da5aea13792c authored over 7 years ago by Russ Cox <[email protected]>
crypto/tls: disallow handshake messages fragmented across CCS

Detected by BoGo test FragmentAcrossChangeCipherSpec-Server-Packed.

Change-Id: I9a76697b9cdeb01...

7c8493b92ebeb5971849576ecb76efae11f2224e authored over 7 years ago by Filippo Valsorda <[email protected]>
crypto/x509: add PublicKeyAlgorithm.String()

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

df1627abbda2b9082774fe5020794bb236852a16 authored over 7 years ago by Martins Sipenko <[email protected]>
crypto/tls: add BenchmarkHandshakeServer

name time/op
HandshakeServer/RSA-4 1....

680b920cb2906fc3e28f03aa32d81f09ed80ca76 authored over 7 years ago by Filippo Valsorda <[email protected]>
crypto/tls: don't check whether an ec point is on a curve twice

The processClientKeyExchange and processServerKeyExchange functions unmarshal an
encoded EC poin...

d9c128a7a7a7ab8fde220333a973a2db1cbaedf7 authored over 7 years ago by Andreas Auernhammer <[email protected]>
crypto/x509: add MarshalPKCS8PrivateKey

asn1.NullRawValue was used according to RFC 3279 2.2.1. Without this tag,
the output didn't matc...

d0fe124f276d65cda102460c4ff476dae515b31f authored over 7 years ago by James Hartig <[email protected]>
crypto/tls: split clientHandshake into multiple methods

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

b1c8e00eff25b7bd3b49f7b06fa48bf30ef025a2 authored over 7 years ago by Sergey Frolov <[email protected]>
crypto/rand: batch large calls to linux getrandom

The linux getrandom system call returns at most 33554431 = 2^25-1 bytes per
call. The existing b...

1fba4be15b00cdfdc9fef0936e52b70ce16bcb40 authored over 7 years ago by Michael McLoughlin <[email protected]>
crypto/rsa: drop uneeded parameter in modInverse

The current modInverse implementation allocates a big.Int
for the second parameter of GCD, while...

af2ea15aefdf320766014a2cadc32c39b93c423b authored over 7 years ago by Brian Kessler <[email protected]>
crypto/{aes,cipher,rc4}: fix out of bounds write in stream ciphers

Functions XORKeyStream should panic if len(dst) < len(src), but it
write to dst before bounds ch...

7a548c5c4ad273208409c6333c87322ea3c27094 authored over 7 years ago by Wei Congrui <[email protected]>
crypto/x509: load all trusted certs on darwin (nocgo)

The current implementation ignores certificates that exist
in the login and System keychains.

T...

390b377fed8534162ab75de05e718b9c89ade12f authored over 7 years ago by Nathaniel Caza <[email protected]>
crypto/x509: improve internal comment

Apply code review suggestion from CL 46715.

The block is doing more than just checking len(r.ce...

ea6f4411b71680f644c0074f13a54b86a1a02c67 authored over 7 years ago by Dmitri Shuralyov <[email protected]>
crypto/x509: fix panic in TestEnvVars, improve style

This panic happens when the test fails due to the returned number of
certificates (r.certs) bein...

afbb59238caa8e43a10ec3efcdd40716ed766532 authored over 7 years ago by Dmitri Shuralyov <[email protected]>
all: gofmt

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

a5e81ff61ea6fd1cef05e73587d722951907af9d authored over 7 years ago by Mikio Hara <[email protected]>
crypto/x509: update MaxPathLen & MaxPathLenZero docs

Fixes #19285

Change-Id: I11e864eff9980dec8247c47e4c600f76602e7ada
Reviewed-on: https://go-revie...

961a8575c278e6aa6e544642098286aac335f4e3 authored over 7 years ago by Brad Fitzpatrick <[email protected]>
crypto/x509: support excluded domains in name constraints.

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

405901e764ae4cd361ab5a27ed06bcd119ed4f2d authored over 7 years ago by Adam Langley <[email protected]>
crypto/rand: only read necessary bytes for Int

We only need to read the number of bytes required to store the value
"max - 1" to generate a ran...

1beb25d88f781b70b7fc60fa85b7fdbd1cb1c0ec authored over 7 years ago by Wade Simmons <[email protected]>
crypto/rand: use blocking getrandom call on Linux when supported

By changing getRandomLinux to immediately use the getrandom() syscall
without GRND_NONBLOCK, we ...

5f37a2dc5b328852a4aa4c991898fc9b1b100e8f authored over 7 years ago by Joe Richey [email protected] <[email protected]>