text stringlengths 2 1.1M | id stringlengths 11 117 | metadata dict | __index_level_0__ int64 0 885 |
|---|---|---|---|
// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Package acmetest provides types for testing acme and autocert packages.
//
// TODO: Consider moving this to x/crypto/acme/internal/acmetest for acme tests as... | crypto/acme/autocert/internal/acmetest/ca.go/0 | {
"file_path": "crypto/acme/autocert/internal/acmetest/ca.go",
"repo_id": "crypto",
"token_count": 9238
} | 0 |
// Copyright 2017 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build amd64 && gc && !purego
package argon2
import "golang.org/x/sys/cpu"
func init() {
useSSE4 = cpu.X86.HasSSE41
}
//go:noescape
func mixBlocksSSE2(... | crypto/argon2/blamka_amd64.go/0 | {
"file_path": "crypto/argon2/blamka_amd64.go",
"repo_id": "crypto",
"token_count": 729
} | 1 |
// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Package blake2s implements the BLAKE2s hash algorithm defined by RFC 7693
// and the extendable output function (XOF) BLAKE2Xs.
//
// BLAKE2s is optimized fo... | crypto/blake2s/blake2s.go/0 | {
"file_path": "crypto/blake2s/blake2s.go",
"repo_id": "crypto",
"token_count": 2521
} | 2 |
// Copyright 2012 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package bn256
import (
"math/big"
)
// curvePoint implements the elliptic curve y²=x³+3. Points are kept in
// Jacobian form and t=z² when valid. G₁ is the s... | crypto/bn256/curve.go/0 | {
"file_path": "crypto/bn256/curve.go",
"repo_id": "crypto",
"token_count": 3206
} | 3 |
// Copyright 2018 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build gc && !purego
#include "go_asm.h"
#include "textflag.h"
// This is an implementation of the ChaCha20 encryption algorithm as
// specified in RFC 75... | crypto/chacha20/chacha_s390x.s/0 | {
"file_path": "crypto/chacha20/chacha_s390x.s",
"repo_id": "crypto",
"token_count": 3306
} | 4 |
// Copyright 2020 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package wycheproof
import (
"bytes"
"crypto/aes"
"crypto/cipher"
"fmt"
"testing"
"golang.org/x/crypto/chacha20poly1305"
)
func TestAEAD(t *testing.T) {... | crypto/internal/wycheproof/aead_test.go/0 | {
"file_path": "crypto/internal/wycheproof/aead_test.go",
"repo_id": "crypto",
"token_count": 1997
} | 5 |
// Copyright 2013 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package ocsp
import (
"bytes"
"crypto"
"crypto/rand"
"crypto/rsa"
"crypto/sha1"
"crypto/x509"
"crypto/x509/pkix"
"encoding/asn1"
"encoding/hex"
"enco... | crypto/ocsp/ocsp_test.go/0 | {
"file_path": "crypto/ocsp/ocsp_test.go",
"repo_id": "crypto",
"token_count": 18098
} | 6 |
// Copyright 2012 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package packet
import (
"crypto"
"crypto/rand"
"io"
"time"
)
// Config collects a number of parameters along with sensible defaults.
// A nil *Config is v... | crypto/openpgp/packet/config.go/0 | {
"file_path": "crypto/openpgp/packet/config.go",
"repo_id": "crypto",
"token_count": 814
} | 7 |
// Copyright 2013 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package packet
import (
"bytes"
"encoding/hex"
"testing"
"time"
)
var pubKeyV3Test = struct {
hexFingerprint string
creationTime time.Time
pubKeyAlgo... | crypto/openpgp/packet/public_key_v3_test.go/0 | {
"file_path": "crypto/openpgp/packet/public_key_v3_test.go",
"repo_id": "crypto",
"token_count": 1058
} | 8 |
// Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Package s2k implements the various OpenPGP string-to-key transforms as
// specified in RFC 4800 section 3.7.1.
//
// Deprecated: this package is unmaintained... | crypto/openpgp/s2k/s2k.go/0 | {
"file_path": "crypto/openpgp/s2k/s2k.go",
"repo_id": "crypto",
"token_count": 2716
} | 9 |
// Copyright 2015 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Package rc2 implements the RC2 cipher
/*
https://www.ietf.org/rfc/rfc2268.txt
http://people.csail.mit.edu/rivest/pubs/KRRR98.pdf
This code is licensed under... | crypto/pkcs12/internal/rc2/rc2.go/0 | {
"file_path": "crypto/pkcs12/internal/rc2/rc2.go",
"repo_id": "crypto",
"token_count": 3945
} | 10 |
// Copyright 2012 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build amd64 && !purego && gc
// This code was translated into a form compatible with 6a from the public
// domain sources in SUPERCOP: https://bench.cr.yp... | crypto/salsa20/salsa/salsa20_amd64.s/0 | {
"file_path": "crypto/salsa20/salsa/salsa20_amd64.s",
"repo_id": "crypto",
"token_count": 9767
} | 11 |
// Copyright 2014 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package agent
import (
"bytes"
"crypto/rand"
"crypto/subtle"
"errors"
"fmt"
"sync"
"time"
"golang.org/x/crypto/ssh"
)
type privKey struct {
signer ... | crypto/ssh/agent/keyring.go/0 | {
"file_path": "crypto/ssh/agent/keyring.go",
"repo_id": "crypto",
"token_count": 2086
} | 12 |
// Copyright 2014 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package ssh
import (
"bytes"
"crypto/rand"
"errors"
"fmt"
"net"
"strings"
"testing"
)
func TestClientVersion(t *testing.T) {
for _, tt := range []stru... | crypto/ssh/client_test.go/0 | {
"file_path": "crypto/ssh/client_test.go",
"repo_id": "crypto",
"token_count": 3908
} | 13 |
// Copyright 2012 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package ssh
// Message authentication support
import (
"crypto/hmac"
"crypto/sha1"
"crypto/sha256"
"crypto/sha512"
"hash"
)
type macMode struct {
keySi... | crypto/ssh/mac.go/0 | {
"file_path": "crypto/ssh/mac.go",
"repo_id": "crypto",
"token_count": 647
} | 14 |
// Copyright 2011 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Package terminal provides support functions for dealing with terminals, as
// commonly found on UNIX systems.
//
// Deprecated: this package moved to golang.... | crypto/ssh/terminal/terminal.go/0 | {
"file_path": "crypto/ssh/terminal/terminal.go",
"repo_id": "crypto",
"token_count": 699
} | 15 |
// Copyright 2014 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// IMPLEMENTATION NOTE: To avoid a package loop, this file is in three places:
// ssh/, ssh/agent, and ssh/test/. It should be kept in sync across all three
// ... | crypto/ssh/testdata_test.go/0 | {
"file_path": "crypto/ssh/testdata_test.go",
"repo_id": "crypto",
"token_count": 856
} | 16 |
// Copyright 2012 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Package xts implements the XTS cipher mode as specified in IEEE P1619/D16.
//
// XTS mode is typically used for disk encryption, which presents a number of
/... | crypto/xts/xts.go/0 | {
"file_path": "crypto/xts/xts.go",
"repo_id": "crypto",
"token_count": 1772
} | 17 |
// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
import (
"bytes"
"fmt"
"hash/fnv"
"sort"
"strings"
)
type graphviz struct {
ps []*gvnode
b bytes.Buffer
h map[string]uint32
// cluster... | dep/cmd/dep/graphviz.go/0 | {
"file_path": "dep/cmd/dep/graphviz.go",
"repo_id": "dep",
"token_count": 2965
} | 18 |
digraph {
node [shape=box];
compound=true;
edge [minlen=2];
552838292 [label="ProjectA/pkgX"];
569615911 [label="ProjectA/pkgY"];
2062426895 [label="ProjectB/pkgX"];
2045649276 [label="ProjectB/pkgY"];
990902230 [label="ProjectC/pkgX"];
1007679849 [label="ProjectC/pkgY"];
957346992 [label="ProjectC/pkgZ"];
s... | dep/cmd/dep/testdata/graphviz/subgraph1.dot/0 | {
"file_path": "dep/cmd/dep/testdata/graphviz/subgraph1.dot",
"repo_id": "dep",
"token_count": 278
} | 19 |
noverify = ["github.com/sdboyer/deptest"]
| dep/cmd/dep/testdata/harness_tests/check/noverify/vendororphans/final/Gopkg.toml/0 | {
"file_path": "dep/cmd/dep/testdata/harness_tests/check/noverify/vendororphans/final/Gopkg.toml",
"repo_id": "dep",
"token_count": 18
} | 20 |
{
"commands": [
["init", "-no-examples"],
["ensure", "-add", "github.com/sdboyer/deptesttres", "github.com/sdboyer/deptesttres/subp"]
],
"vendor-final": [
"github.com/sdboyer/deptest",
"github.com/sdboyer/deptesttres"
]
}
| dep/cmd/dep/testdata/harness_tests/ensure/add/all-new-double/testcase.json/0 | {
"file_path": "dep/cmd/dep/testdata/harness_tests/ensure/add/all-new-double/testcase.json",
"repo_id": "dep",
"token_count": 123
} | 21 |
{
"commands": [
["ensure", "-add", "github.com/sdboyer/deptesttres@master"]
],
"vendor-final": [
"github.com/sdboyer/deptest",
"github.com/sdboyer/deptestdos",
"github.com/sdboyer/deptesttres"
]
}
| dep/cmd/dep/testdata/harness_tests/ensure/add/desync/testcase.json/0 | {
"file_path": "dep/cmd/dep/testdata/harness_tests/ensure/add/desync/testcase.json",
"repo_id": "dep",
"token_count": 114
} | 22 |
{
"commands": [
["ensure", "-add", "github.com/sdboyer/deptest"]
],
"error-expected": "nothing to -add, github.com/sdboyer/deptest is already in Gopkg.toml and the project's direct imports or required list"
}
| dep/cmd/dep/testdata/harness_tests/ensure/add/errs/exists/testcase.json/0 | {
"file_path": "dep/cmd/dep/testdata/harness_tests/ensure/add/errs/exists/testcase.json",
"repo_id": "dep",
"token_count": 81
} | 23 |
noverify = ["github.com/sdboyer/deptest"]
| dep/cmd/dep/testdata/harness_tests/ensure/noverify/hash_mismatch/initial/Gopkg.toml/0 | {
"file_path": "dep/cmd/dep/testdata/harness_tests/ensure/noverify/hash_mismatch/initial/Gopkg.toml",
"repo_id": "dep",
"token_count": 18
} | 24 |
ignored = ["github.com/sdboyer/deptest*", "github.com/golang/notexist/samples*"]
| dep/cmd/dep/testdata/harness_tests/ensure/pkg-ignored/wildcard-other-root/final/Gopkg.toml/0 | {
"file_path": "dep/cmd/dep/testdata/harness_tests/ensure/pkg-ignored/wildcard-other-root/final/Gopkg.toml",
"repo_id": "dep",
"token_count": 34
} | 25 |
Ignore glide config if glide.yaml is malformed and cannot be parsed correctly.
| dep/cmd/dep/testdata/harness_tests/init/glide/case4/README.md/0 | {
"file_path": "dep/cmd/dep/testdata/harness_tests/init/glide/case4/README.md",
"repo_id": "dep",
"token_count": 19
} | 26 |
[[constraint]]
name = "github.com/ChinmayR/deptestglideA"
version = "0.6.0"
| dep/cmd/dep/testdata/harness_tests/init/glide/trans-trans-trans/final/Gopkg.toml/0 | {
"file_path": "dep/cmd/dep/testdata/harness_tests/init/glide/trans-trans-trans/final/Gopkg.toml",
"repo_id": "dep",
"token_count": 39
} | 27 |
{
"commands": [
["init"]
],
"error-expected": "init aborted: manifest already exists",
"vendor-final": []
}
| dep/cmd/dep/testdata/harness_tests/init/manifest-exists/testcase.json/0 | {
"file_path": "dep/cmd/dep/testdata/harness_tests/init/manifest-exists/testcase.json",
"repo_id": "dep",
"token_count": 45
} | 28 |
// Copyright 2016 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package main
import (
"flag"
"runtime"
"github.com/golang/dep"
)
var (
version = "devel"
buildDate string
commitHash string
)
const versionHelp = ... | dep/cmd/dep/version.go/0 | {
"file_path": "dep/cmd/dep/version.go",
"repo_id": "dep",
"token_count": 377
} | 29 |
---
id: glossary
title: Glossary
---
dep uses some specialized terminology. Learn about it here!
* [Atom](#atom)
* [Cache lock](#cache-lock)
* [Constraint](#constraint)
* [Current Project](#current-project)
* [Deducible](#deducible)
* [Deduction](#deduction)
* [Direct Dependency](#direct-dependency)
* [External Impor... | dep/docs/glossary.md/0 | {
"file_path": "dep/docs/glossary.md",
"repo_id": "dep",
"token_count": 2325
} | 30 |
// Copyright 2017 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package gps
import (
"fmt"
"math/rand"
"strconv"
)
// ProjectRoot is the topmost import path in a tree of other import paths - the
// root of the tree. In ... | dep/gps/identifier.go/0 | {
"file_path": "dep/gps/identifier.go",
"repo_id": "dep",
"token_count": 2059
} | 31 |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 7