repo
stringlengths
6
47
file_url
stringlengths
77
269
file_path
stringlengths
5
186
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-07 08:35:43
2026-01-07 08:55:24
truncated
bool
2 classes
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/bitcurves/bitcurve.go
vendor/github.com/ProtonMail/go-crypto/bitcurves/bitcurve.go
package bitcurves // Copyright 2010 The Go Authors. All rights reserved. // Copyright 2011 ThePiachu. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Package bitelliptic implements several Koblitz elliptic curves over prime // fields. //...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/hash.go
vendor/github.com/ProtonMail/go-crypto/openpgp/hash.go
package openpgp import ( "crypto" "github.com/ProtonMail/go-crypto/openpgp/internal/algorithm" ) // HashIdToHash returns a crypto.Hash which corresponds to the given OpenPGP // hash id. func HashIdToHash(id byte) (h crypto.Hash, ok bool) { return algorithm.HashIdToHash(id) } // HashIdToString returns the name of...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/write.go
vendor/github.com/ProtonMail/go-crypto/openpgp/write.go
// 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 openpgp import ( "crypto" "hash" "io" "strconv" "time" "github.com/ProtonMail/go-crypto/openpgp/armor" "github.com/ProtonMail/go-crypto/openpgp...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/read.go
vendor/github.com/ProtonMail/go-crypto/openpgp/read.go
// 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 openpgp implements high level operations on OpenPGP messages. package openpgp // import "github.com/ProtonMail/go-crypto/openpgp" import ( "crypto"...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/keys_test_data.go
vendor/github.com/ProtonMail/go-crypto/openpgp/keys_test_data.go
package openpgp const expiringKeyHex = "c6c04d0451d0c680010800abbb021fd03ffc4e96618901180c3fdcb060ee69eeead97b91256d11420d80b5f1b51930248044130bd300605cf8a05b7a40d3d8cfb0a910be2e3db50dcd50a9c54064c2a5550801daa834ff4480b33d3d3ca495ff8a4e84a886977d17d998f881241a874083d8b995beab555b6d22b8a4817ab17ac3e7304f7d4d2c05c495fb2...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
true
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/key_generation.go
vendor/github.com/ProtonMail/go-crypto/openpgp/key_generation.go
// 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 openpgp import ( "crypto" "crypto/rand" "crypto/rsa" goerrors "errors" "io" "math/big" "time" "github.com/ProtonMail/go-crypto/openpgp/ecdh" ...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/keys.go
vendor/github.com/ProtonMail/go-crypto/openpgp/keys.go
// 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 openpgp import ( goerrors "errors" "fmt" "io" "time" "github.com/ProtonMail/go-crypto/openpgp/armor" "github.com/ProtonMail/go-crypto/openpgp/er...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/canonical_text.go
vendor/github.com/ProtonMail/go-crypto/openpgp/canonical_text.go
// 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 openpgp import ( "hash" "io" ) // NewCanonicalTextHash reformats text written to it into the canonical // form and then applies the hash h. See RFC...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/read_write_test_data.go
vendor/github.com/ProtonMail/go-crypto/openpgp/read_write_test_data.go
package openpgp const testKey1KeyId uint64 = 0xA34D7E18C20C31BB const testKey3KeyId uint64 = 0x338934250CCC0360 const testKeyP256KeyId uint64 = 0xd44a2c495918513e const signedInput = "Signed message\nline 2\nline 3\n" const signedTextInput = "Signed message\r\nline 2\r\nline 3\r\n" const recipientUnspecifiedHex = "8...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
true
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/s2k/s2k.go
vendor/github.com/ProtonMail/go-crypto/openpgp/s2k/s2k.go
// 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, and Argon2 specified in // draft-ietf-openpgp-...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/s2k/s2k_cache.go
vendor/github.com/ProtonMail/go-crypto/openpgp/s2k/s2k_cache.go
package s2k // Cache stores keys derived with s2k functions from one passphrase // to avoid recomputation if multiple items are encrypted with // the same parameters. type Cache map[Params][]byte // GetOrComputeDerivedKey tries to retrieve the key // for the given s2k parameters from the cache. // If there is no hit,...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/s2k/s2k_config.go
vendor/github.com/ProtonMail/go-crypto/openpgp/s2k/s2k_config.go
package s2k import "crypto" // Config collects configuration parameters for s2k key-stretching // transformations. A nil *Config is valid and results in all default // values. type Config struct { // S2K (String to Key) mode, used for key derivation in the context of secret key encryption // and passphrase-encrypte...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/aes/keywrap/keywrap.go
vendor/github.com/ProtonMail/go-crypto/openpgp/aes/keywrap/keywrap.go
// Copyright 2014 Matthew Endsley // All rights reserved // // Redistribution and use in source and binary forms, with or without // modification, are permitted providing that the following conditions // are met: // 1. Redistributions of source code must retain the above copyright // notice, this list of conditions ...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/x25519/x25519.go
vendor/github.com/ProtonMail/go-crypto/openpgp/x25519/x25519.go
package x25519 import ( "crypto/sha256" "crypto/subtle" "io" "github.com/ProtonMail/go-crypto/openpgp/aes/keywrap" "github.com/ProtonMail/go-crypto/openpgp/errors" x25519lib "github.com/cloudflare/circl/dh/x25519" "golang.org/x/crypto/hkdf" ) const ( hkdfInfo = "OpenPGP X25519" aes128KeySize = 16 // T...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/errors/errors.go
vendor/github.com/ProtonMail/go-crypto/openpgp/errors/errors.go
// Copyright 2010 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 errors contains common error types for the OpenPGP packages. package errors // import "github.com/ProtonMail/go-crypto/openpgp/errors" import ( "fm...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/ecdh/ecdh.go
vendor/github.com/ProtonMail/go-crypto/openpgp/ecdh/ecdh.go
// 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 ecdh implements ECDH encryption, suitable for OpenPGP, // as specified in RFC 6637, section 8. package ecdh import ( "bytes" "errors" "io" "git...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/x448/x448.go
vendor/github.com/ProtonMail/go-crypto/openpgp/x448/x448.go
package x448 import ( "crypto/sha512" "crypto/subtle" "io" "github.com/ProtonMail/go-crypto/openpgp/aes/keywrap" "github.com/ProtonMail/go-crypto/openpgp/errors" x448lib "github.com/cloudflare/circl/dh/x448" "golang.org/x/crypto/hkdf" ) const ( hkdfInfo = "OpenPGP X448" aes256KeySize = 32 // The size ...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/ed25519/ed25519.go
vendor/github.com/ProtonMail/go-crypto/openpgp/ed25519/ed25519.go
// Package ed25519 implements the ed25519 signature algorithm for OpenPGP // as defined in the Open PGP crypto refresh. package ed25519 import ( "crypto/subtle" "io" "github.com/ProtonMail/go-crypto/openpgp/errors" ed25519lib "github.com/cloudflare/circl/sign/ed25519" ) const ( // PublicKeySize is the size, in ...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/eddsa/eddsa.go
vendor/github.com/ProtonMail/go-crypto/openpgp/eddsa/eddsa.go
// Package eddsa implements EdDSA signature, suitable for OpenPGP, as specified in // https://datatracker.ietf.org/doc/html/draft-ietf-openpgp-crypto-refresh-06#section-13.7 package eddsa import ( "errors" "github.com/ProtonMail/go-crypto/openpgp/internal/ecc" "io" ) type PublicKey struct { X []byte curve ec...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/armor/encode.go
vendor/github.com/ProtonMail/go-crypto/openpgp/armor/encode.go
// Copyright 2010 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 armor import ( "encoding/base64" "io" "sort" ) var armorHeaderSep = []byte(": ") var blockEnd = []byte("\n=") var newline = []byte("\n") var armorE...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/armor/armor.go
vendor/github.com/ProtonMail/go-crypto/openpgp/armor/armor.go
// Copyright 2010 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 armor implements OpenPGP ASCII Armor, see RFC 4880. OpenPGP Armor is // very similar to PEM except that it has an additional CRC checksum. package ar...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/internal/ecc/generic.go
vendor/github.com/ProtonMail/go-crypto/openpgp/internal/ecc/generic.go
// Package ecc implements a generic interface for ECDH, ECDSA, and EdDSA. package ecc import ( "crypto/ecdsa" "crypto/elliptic" "fmt" "github.com/ProtonMail/go-crypto/openpgp/errors" "io" "math/big" ) type genericCurve struct { Curve elliptic.Curve } func NewGenericCurve(c elliptic.Curve) *genericCurve { ret...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/internal/ecc/ed448.go
vendor/github.com/ProtonMail/go-crypto/openpgp/internal/ecc/ed448.go
// Package ecc implements a generic interface for ECDH, ECDSA, and EdDSA. package ecc import ( "bytes" "crypto/subtle" "io" "github.com/ProtonMail/go-crypto/openpgp/errors" ed448lib "github.com/cloudflare/circl/sign/ed448" ) type ed448 struct{} func NewEd448() *ed448 { return &ed448{} } func (c *ed448) GetCu...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/internal/ecc/x448.go
vendor/github.com/ProtonMail/go-crypto/openpgp/internal/ecc/x448.go
// Package ecc implements a generic interface for ECDH, ECDSA, and EdDSA. package ecc import ( "crypto/subtle" "io" "github.com/ProtonMail/go-crypto/openpgp/errors" x448lib "github.com/cloudflare/circl/dh/x448" ) type x448 struct{} func NewX448() *x448 { return &x448{} } func (c *x448) GetCurveName() string {...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/internal/ecc/curve_info.go
vendor/github.com/ProtonMail/go-crypto/openpgp/internal/ecc/curve_info.go
// Package ecc implements a generic interface for ECDH, ECDSA, and EdDSA. package ecc import ( "bytes" "crypto/elliptic" "github.com/ProtonMail/go-crypto/bitcurves" "github.com/ProtonMail/go-crypto/brainpool" "github.com/ProtonMail/go-crypto/openpgp/internal/encoding" ) const Curve25519GenName = "Curve25519" t...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/internal/ecc/ed25519.go
vendor/github.com/ProtonMail/go-crypto/openpgp/internal/ecc/ed25519.go
// Package ecc implements a generic interface for ECDH, ECDSA, and EdDSA. package ecc import ( "bytes" "crypto/subtle" "io" "github.com/ProtonMail/go-crypto/openpgp/errors" ed25519lib "github.com/cloudflare/circl/sign/ed25519" ) const ed25519Size = 32 type ed25519 struct{} func NewEd25519() *ed25519 { return...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/internal/ecc/curves.go
vendor/github.com/ProtonMail/go-crypto/openpgp/internal/ecc/curves.go
// Package ecc implements a generic interface for ECDH, ECDSA, and EdDSA. package ecc import ( "io" "math/big" ) type Curve interface { GetCurveName() string } type ECDSACurve interface { Curve MarshalIntegerPoint(x, y *big.Int) []byte UnmarshalIntegerPoint([]byte) (x, y *big.Int) MarshalIntegerSecret(d *big....
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/internal/ecc/curve25519.go
vendor/github.com/ProtonMail/go-crypto/openpgp/internal/ecc/curve25519.go
// Package ecc implements a generic interface for ECDH, ECDSA, and EdDSA. package ecc import ( "crypto/subtle" "io" "github.com/ProtonMail/go-crypto/openpgp/errors" x25519lib "github.com/cloudflare/circl/dh/x25519" ) type curve25519 struct{} func NewCurve25519() *curve25519 { return &curve25519{} } func (c *c...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/internal/encoding/oid.go
vendor/github.com/ProtonMail/go-crypto/openpgp/internal/encoding/oid.go
// 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 encoding import ( "io" "github.com/ProtonMail/go-crypto/openpgp/errors" ) // OID is used to store a variable-length field with a one-octet size // ...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/internal/encoding/mpi.go
vendor/github.com/ProtonMail/go-crypto/openpgp/internal/encoding/mpi.go
// 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 encoding import ( "io" "math/big" "math/bits" ) // An MPI is used to store the contents of a big integer, along with the bit // length that was spe...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/internal/encoding/encoding.go
vendor/github.com/ProtonMail/go-crypto/openpgp/internal/encoding/encoding.go
// 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 encoding implements openpgp packet field encodings as specified in // RFC 4880 and 6637. package encoding import "io" // Field is an encoded field ...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/internal/algorithm/cipher.go
vendor/github.com/ProtonMail/go-crypto/openpgp/internal/algorithm/cipher.go
// 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 algorithm import ( "crypto/aes" "crypto/cipher" "crypto/des" "golang.org/x/crypto/cast5" ) // Cipher is an official symmetric key cipher algorith...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/internal/algorithm/aead.go
vendor/github.com/ProtonMail/go-crypto/openpgp/internal/algorithm/aead.go
// Copyright (C) 2019 ProtonTech AG package algorithm import ( "crypto/cipher" "github.com/ProtonMail/go-crypto/eax" "github.com/ProtonMail/go-crypto/ocb" ) // AEADMode defines the Authenticated Encryption with Associated Data mode of // operation. type AEADMode uint8 // Supported modes of operation (see RFC4880...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/internal/algorithm/hash.go
vendor/github.com/ProtonMail/go-crypto/openpgp/internal/algorithm/hash.go
// 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 algorithm import ( "crypto" "fmt" "hash" ) // Hash is an official hash function algorithm. See RFC 4880, section 9.4. type Hash interface { // Id ...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/ed448/ed448.go
vendor/github.com/ProtonMail/go-crypto/openpgp/ed448/ed448.go
// Package ed448 implements the ed448 signature algorithm for OpenPGP // as defined in the Open PGP crypto refresh. package ed448 import ( "crypto/subtle" "io" "github.com/ProtonMail/go-crypto/openpgp/errors" ed448lib "github.com/cloudflare/circl/sign/ed448" ) const ( // PublicKeySize is the size, in bytes, of ...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/packet/private_key.go
vendor/github.com/ProtonMail/go-crypto/openpgp/packet/private_key.go
// 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 packet import ( "bytes" "crypto" "crypto/cipher" "crypto/dsa" "crypto/rsa" "crypto/sha1" "crypto/sha256" "crypto/subtle" "fmt" "io" "math/bi...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
true
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/packet/marker.go
vendor/github.com/ProtonMail/go-crypto/openpgp/packet/marker.go
package packet import ( "io" "github.com/ProtonMail/go-crypto/openpgp/errors" ) type Marker struct{} const markerString = "PGP" // parse just checks if the packet contains "PGP". func (m *Marker) parse(reader io.Reader) error { var buffer [3]byte if _, err := io.ReadFull(reader, buffer[:]); err != nil { retu...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/packet/aead_encrypted.go
vendor/github.com/ProtonMail/go-crypto/openpgp/packet/aead_encrypted.go
// Copyright (C) 2019 ProtonTech AG package packet import ( "io" "github.com/ProtonMail/go-crypto/openpgp/errors" "github.com/ProtonMail/go-crypto/openpgp/internal/algorithm" ) // AEADEncrypted represents an AEAD Encrypted Packet. // See https://www.ietf.org/archive/id/draft-koch-openpgp-2015-rfc4880bis-00.html#...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/packet/literal.go
vendor/github.com/ProtonMail/go-crypto/openpgp/packet/literal.go
// 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 packet import ( "encoding/binary" "io" ) // LiteralData represents an encrypted file. See RFC 4880, section 5.9. type LiteralData struct { Format ...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/packet/packet_unsupported.go
vendor/github.com/ProtonMail/go-crypto/openpgp/packet/packet_unsupported.go
package packet import ( "io" "github.com/ProtonMail/go-crypto/openpgp/errors" ) // UnsupportedPackage represents a OpenPGP packet with a known packet type // but with unsupported content. type UnsupportedPacket struct { IncompletePacket Packet Error errors.UnsupportedError } // Implements the Packet ...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/packet/padding.go
vendor/github.com/ProtonMail/go-crypto/openpgp/packet/padding.go
package packet import ( "io" ) // Padding type represents a Padding Packet (Tag 21). // The padding type is represented by the length of its padding. // see https://datatracker.ietf.org/doc/html/draft-ietf-openpgp-crypto-refresh#name-padding-packet-tag-21 type Padding int // parse just ignores the padding content. ...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/packet/ocfb.go
vendor/github.com/ProtonMail/go-crypto/openpgp/packet/ocfb.go
// Copyright 2010 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. // OpenPGP CFB Mode. http://tools.ietf.org/html/rfc4880#section-13.9 package packet import ( "crypto/cipher" ) type ocfbEncrypter struct { b cipher.B...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/packet/packet.go
vendor/github.com/ProtonMail/go-crypto/openpgp/packet/packet.go
// 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 packet implements parsing and serialization of OpenPGP packets, as // specified in RFC 4880. package packet // import "github.com/ProtonMail/go-crypt...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/packet/config.go
vendor/github.com/ProtonMail/go-crypto/openpgp/packet/config.go
// 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" "math/big" "time" "github.com/ProtonMail/go-crypto/openpgp/s2k" ) var ( defaultRejectPublicKeyAlgo...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/packet/reader.go
vendor/github.com/ProtonMail/go-crypto/openpgp/packet/reader.go
// 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 packet import ( "io" "github.com/ProtonMail/go-crypto/openpgp/errors" ) type PacketReader interface { Next() (p Packet, err error) Push(reader io...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/packet/symmetric_key_encrypted.go
vendor/github.com/ProtonMail/go-crypto/openpgp/packet/symmetric_key_encrypted.go
// 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 packet import ( "bytes" "crypto/cipher" "crypto/sha256" "io" "strconv" "github.com/ProtonMail/go-crypto/openpgp/errors" "github.com/ProtonMail/...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/packet/one_pass_signature.go
vendor/github.com/ProtonMail/go-crypto/openpgp/packet/one_pass_signature.go
// 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 packet import ( "crypto" "encoding/binary" "io" "strconv" "github.com/ProtonMail/go-crypto/openpgp/errors" "github.com/ProtonMail/go-crypto/open...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/packet/packet_sequence.go
vendor/github.com/ProtonMail/go-crypto/openpgp/packet/packet_sequence.go
package packet // This file implements the pushdown automata (PDA) from PGPainless (Paul Schaub) // to verify pgp packet sequences. See Paul's blogpost for more details: // https://blog.jabberhead.tk/2022/10/26/implementing-packet-sequence-validation-using-pushdown-automata/ import ( "fmt" "github.com/ProtonMail/go...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/packet/compressed.go
vendor/github.com/ProtonMail/go-crypto/openpgp/packet/compressed.go
// 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 packet import ( "compress/bzip2" "compress/flate" "compress/zlib" "io" "strconv" "github.com/ProtonMail/go-crypto/openpgp/errors" ) // Compress...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/packet/notation.go
vendor/github.com/ProtonMail/go-crypto/openpgp/packet/notation.go
package packet // Notation type represents a Notation Data subpacket // see https://tools.ietf.org/html/rfc4880#section-5.2.3.16 type Notation struct { Name string Value []byte IsCritical bool IsHumanReadable bool } func (notation *Notation) getData() []byte { nameData := []byte(notatio...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/packet/userattribute.go
vendor/github.com/ProtonMail/go-crypto/openpgp/packet/userattribute.go
// 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" "image" "image/jpeg" "io" ) const UserAttrImageSubpacket = 1 // UserAttribute is capable of storing other types of data a...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/packet/encrypted_key.go
vendor/github.com/ProtonMail/go-crypto/openpgp/packet/encrypted_key.go
// 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 packet import ( "bytes" "crypto" "crypto/rsa" "encoding/binary" "encoding/hex" "io" "math/big" "strconv" "github.com/ProtonMail/go-crypto/ope...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/packet/aead_crypter.go
vendor/github.com/ProtonMail/go-crypto/openpgp/packet/aead_crypter.go
// Copyright (C) 2019 ProtonTech AG package packet import ( "crypto/cipher" "encoding/binary" "io" "github.com/ProtonMail/go-crypto/openpgp/errors" ) // aeadCrypter is an AEAD opener/sealer, its configuration, and data for en/decryption. type aeadCrypter struct { aead cipher.AEAD chunkSize int ...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/packet/public_key.go
vendor/github.com/ProtonMail/go-crypto/openpgp/packet/public_key.go
// 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 packet import ( "crypto/dsa" "crypto/rsa" "crypto/sha1" "crypto/sha256" _ "crypto/sha512" "encoding/binary" "fmt" "hash" "io" "math/big" "st...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/packet/public_key_test_data.go
vendor/github.com/ProtonMail/go-crypto/openpgp/packet/public_key_test_data.go
package packet const rsaFingerprintHex = "5fb74b1d03b1e3cb31bc2f8aa34d7e18c20c31bb" const rsaPkDataHex = "988d044d3c5c10010400b1d13382944bd5aba23a4312968b5095d14f947f600eb478e14a6fcb16b0e0cac764884909c020bc495cfcc39a935387c661507bdb236a0612fb582cac3af9b29cc2c8c70090616c41b662f4da4c1201e195472eb7f4ae1ccbcbf9940fe21d98...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/packet/symmetrically_encrypted_aead.go
vendor/github.com/ProtonMail/go-crypto/openpgp/packet/symmetrically_encrypted_aead.go
// Copyright 2023 Proton AG. 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/cipher" "crypto/sha256" "fmt" "io" "strconv" "github.com/ProtonMail/go-crypto/openpgp/errors" "golang.org/x/crypto/hkdf" ) ...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/packet/private_key_test_data.go
vendor/github.com/ProtonMail/go-crypto/openpgp/packet/private_key_test_data.go
package packet // Generated with `gpg --export-secret-keys "Test Key 2"` const privKeyRSAHex = "9501fe044cc349a8010400b70ca0010e98c090008d45d1ee8f9113bd5861fd57b88bacb7c68658747663f1e1a3b5a98f32fda6472373c024b97359cd2efc88ff60f77751adfbf6af5e615e6a1408cfad8bf0cea30b0d5f53aa27ad59089ba9b15b7ebc2777a25d7b436144027e3bcd2...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/packet/aead_config.go
vendor/github.com/ProtonMail/go-crypto/openpgp/packet/aead_config.go
// Copyright (C) 2019 ProtonTech AG package packet import "math/bits" // CipherSuite contains a combination of Cipher and Mode type CipherSuite struct { // The cipher function Cipher CipherFunction // The AEAD mode of operation. Mode AEADMode } // AEADConfig collects a number of AEAD parameters along with sensi...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/packet/symmetrically_encrypted.go
vendor/github.com/ProtonMail/go-crypto/openpgp/packet/symmetrically_encrypted.go
// 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 packet import ( "io" "github.com/ProtonMail/go-crypto/openpgp/errors" ) const aeadSaltSize = 32 // SymmetricallyEncrypted represents a symmetrical...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/packet/userid.go
vendor/github.com/ProtonMail/go-crypto/openpgp/packet/userid.go
// 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 packet import ( "io" "strings" ) // UserId contains text that is intended to represent the name and email // address of the key holder. See RFC 4880...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/packet/symmetrically_encrypted_mdc.go
vendor/github.com/ProtonMail/go-crypto/openpgp/packet/symmetrically_encrypted_mdc.go
// 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 packet import ( "crypto/cipher" "crypto/sha1" "crypto/subtle" "hash" "io" "strconv" "github.com/ProtonMail/go-crypto/openpgp/errors" ) // seMd...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/packet/recipient.go
vendor/github.com/ProtonMail/go-crypto/openpgp/packet/recipient.go
package packet // Recipient type represents a Intended Recipient Fingerprint subpacket // See https://datatracker.ietf.org/doc/html/draft-ietf-openpgp-crypto-refresh#name-intended-recipient-fingerpr type Recipient struct { KeyVersion int Fingerprint []byte } func (r *Recipient) Serialize() []byte { packet := make...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/packet/opaque.go
vendor/github.com/ProtonMail/go-crypto/openpgp/packet/opaque.go
// 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 ( "bytes" "io" "github.com/ProtonMail/go-crypto/openpgp/errors" ) // OpaquePacket represents an OpenPGP packet as raw, unparsed data...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/packet/config_v5.go
vendor/github.com/ProtonMail/go-crypto/openpgp/packet/config_v5.go
//go:build !v5 package packet func init() { V5Disabled = true }
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/packet/signature.go
vendor/github.com/ProtonMail/go-crypto/openpgp/packet/signature.go
// 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 packet import ( "bytes" "crypto" "crypto/dsa" "encoding/asn1" "encoding/binary" "hash" "io" "math/big" "strconv" "time" "github.com/ProtonM...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
true
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/ecdsa/ecdsa.go
vendor/github.com/ProtonMail/go-crypto/openpgp/ecdsa/ecdsa.go
// Package ecdsa implements ECDSA signature, suitable for OpenPGP, // as specified in RFC 6637, section 5. package ecdsa import ( "errors" "github.com/ProtonMail/go-crypto/openpgp/internal/ecc" "io" "math/big" ) type PublicKey struct { X, Y *big.Int curve ecc.ECDSACurve } type PrivateKey struct { PublicKey ...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/openpgp/elgamal/elgamal.go
vendor/github.com/ProtonMail/go-crypto/openpgp/elgamal/elgamal.go
// 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 elgamal implements ElGamal encryption, suitable for OpenPGP, // as specified in "A Public-Key Cryptosystem and a Signature Scheme Based on // Discret...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/internal/byteutil/byteutil.go
vendor/github.com/ProtonMail/go-crypto/internal/byteutil/byteutil.go
// Copyright (C) 2019 ProtonTech AG // This file contains necessary tools for the aex and ocb packages. // // These functions SHOULD NOT be used elsewhere, since they are optimized for // specific input nature in the EAX and OCB modes of operation. package byteutil // GfnDouble computes 2 * input in the field of 2^n ...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/brainpool/rcurve.go
vendor/github.com/ProtonMail/go-crypto/brainpool/rcurve.go
package brainpool import ( "crypto/elliptic" "math/big" ) var _ elliptic.Curve = (*rcurve)(nil) type rcurve struct { twisted elliptic.Curve params *elliptic.CurveParams z *big.Int zinv *big.Int z2 *big.Int z3 *big.Int zinv2 *big.Int zinv3 *big.Int } var ( two = big.NewInt(2) th...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/brainpool/brainpool.go
vendor/github.com/ProtonMail/go-crypto/brainpool/brainpool.go
// Package brainpool implements Brainpool elliptic curves. // Implementation of rcurves is from github.com/ebfe/brainpool // Note that these curves are implemented with naive, non-constant time operations // and are likely not suitable for environments where timing attacks are a concern. package brainpool import ( "c...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/ocb/rfc7253_test_vectors_suite_b.go
vendor/github.com/ProtonMail/go-crypto/ocb/rfc7253_test_vectors_suite_b.go
package ocb // Second set of test vectors from https://tools.ietf.org/html/rfc7253 var rfc7253TestVectorTaglen96 = struct { key, nonce, header, plaintext, ciphertext string }{"0F0E0D0C0B0A09080706050403020100", "BBAA9988776655443322110D", "000102030405060708090A0B0C0D0E0F101112131415161718191A1B1C1D1E1F202122232425...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/ocb/random_vectors.go
vendor/github.com/ProtonMail/go-crypto/ocb/random_vectors.go
// In the test vectors provided by RFC 7253, the "bottom" // internal variable, which defines "offset" for the first time, does not // exceed 15. However, it can attain values up to 63. // These vectors include key length in {128, 192, 256}, tag size 128, and // random nonce, header, and plaintext lengths. // This fi...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/ocb/ocb.go
vendor/github.com/ProtonMail/go-crypto/ocb/ocb.go
// Copyright (C) 2019 ProtonTech AG // Package ocb provides an implementation of the OCB (offset codebook) mode of // operation, as described in RFC-7253 of the IRTF and in Rogaway, Bellare, // Black and Krovetz - OCB: A BLOCK-CIPHER MODE OF OPERATION FOR EFFICIENT // AUTHENTICATED ENCRYPTION (2003). // Security consi...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/ProtonMail/go-crypto/ocb/rfc7253_test_vectors_suite_a.go
vendor/github.com/ProtonMail/go-crypto/ocb/rfc7253_test_vectors_suite_a.go
package ocb import ( "encoding/hex" ) // Test vectors from https://tools.ietf.org/html/rfc7253. Note that key is // shared across tests. var testKey, _ = hex.DecodeString("000102030405060708090A0B0C0D0E0F") var rfc7253testVectors = []struct { nonce, header, plaintext, ciphertext string }{ {"BBAA998877665544332211...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/AdaLogics/go-fuzz-headers/consumer.go
vendor/github.com/AdaLogics/go-fuzz-headers/consumer.go
// Copyright 2023 The go-fuzz-headers Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/AdaLogics/go-fuzz-headers/sql.go
vendor/github.com/AdaLogics/go-fuzz-headers/sql.go
// Copyright 2023 The go-fuzz-headers Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/AdaLogics/go-fuzz-headers/funcs.go
vendor/github.com/AdaLogics/go-fuzz-headers/funcs.go
// Copyright 2023 The go-fuzz-headers Authors. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/aws/smithy-go/document.go
vendor/github.com/aws/smithy-go/document.go
package smithy // Document provides access to loosely structured data in a document-like // format. // // Deprecated: See the github.com/aws/smithy-go/document package. type Document interface { UnmarshalDocument(interface{}) error GetValue() (interface{}, error) }
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/aws/smithy-go/errors.go
vendor/github.com/aws/smithy-go/errors.go
package smithy import "fmt" // APIError provides the generic API and protocol agnostic error type all SDK // generated exception types will implement. type APIError interface { error // ErrorCode returns the error code for the API exception. ErrorCode() string // ErrorMessage returns the error message for the AP...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/aws/smithy-go/validation.go
vendor/github.com/aws/smithy-go/validation.go
package smithy import ( "bytes" "fmt" "strings" ) // An InvalidParamsError provides wrapping of invalid parameter errors found when // validating API operation input parameters. type InvalidParamsError struct { // Context is the base context of the invalid parameter group. Context string errs []InvalidParamE...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/aws/smithy-go/properties.go
vendor/github.com/aws/smithy-go/properties.go
package smithy import "maps" // PropertiesReader provides an interface for reading metadata from the // underlying metadata container. type PropertiesReader interface { Get(key any) any } // Properties provides storing and reading metadata values. Keys may be any // comparable value type. Get and Set will panic if ...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/aws/smithy-go/doc.go
vendor/github.com/aws/smithy-go/doc.go
// Package smithy provides the core components for a Smithy SDK. package smithy
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/aws/smithy-go/go_module_metadata.go
vendor/github.com/aws/smithy-go/go_module_metadata.go
// Code generated by internal/repotools/cmd/updatemodulemeta DO NOT EDIT. package smithy // goModuleVersion is the tagged release for this module const goModuleVersion = "1.23.1"
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/aws/smithy-go/auth/option.go
vendor/github.com/aws/smithy-go/auth/option.go
package auth import "github.com/aws/smithy-go" type ( authOptionsKey struct{} ) // Option represents a possible authentication method for an operation. type Option struct { SchemeID string IdentityProperties smithy.Properties SignerProperties smithy.Properties } // GetAuthOptions gets auth Options f...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/aws/smithy-go/auth/auth.go
vendor/github.com/aws/smithy-go/auth/auth.go
// Package auth defines protocol-agnostic authentication types for smithy // clients. package auth
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/aws/smithy-go/auth/identity.go
vendor/github.com/aws/smithy-go/auth/identity.go
package auth import ( "context" "time" "github.com/aws/smithy-go" ) // Identity contains information that identifies who the user making the // request is. type Identity interface { Expiration() time.Time } // IdentityResolver defines the interface through which an Identity is // retrieved. type IdentityResolve...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/aws/smithy-go/auth/scheme_id.go
vendor/github.com/aws/smithy-go/auth/scheme_id.go
package auth // Anonymous const ( SchemeIDAnonymous = "smithy.api#noAuth" ) // HTTP auth schemes const ( SchemeIDHTTPBasic = "smithy.api#httpBasicAuth" SchemeIDHTTPDigest = "smithy.api#httpDigestAuth" SchemeIDHTTPBearer = "smithy.api#httpBearerAuth" SchemeIDHTTPAPIKey = "smithy.api#httpApiKeyAuth" ) // AWS aut...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/aws/smithy-go/auth/bearer/middleware.go
vendor/github.com/aws/smithy-go/auth/bearer/middleware.go
package bearer import ( "context" "fmt" "github.com/aws/smithy-go/middleware" smithyhttp "github.com/aws/smithy-go/transport/http" ) // Message is the middleware stack's request transport message value. type Message interface{} // Signer provides an interface for implementations to decorate a request // message...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/aws/smithy-go/auth/bearer/token.go
vendor/github.com/aws/smithy-go/auth/bearer/token.go
package bearer import ( "context" "time" ) // Token provides a type wrapping a bearer token and expiration metadata. type Token struct { Value string CanExpire bool Expires time.Time } // Expired returns if the token's Expires time is before or equal to the time // provided. If CanExpires is false, Expired w...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/aws/smithy-go/auth/bearer/token_cache.go
vendor/github.com/aws/smithy-go/auth/bearer/token_cache.go
package bearer import ( "context" "fmt" "sync/atomic" "time" smithycontext "github.com/aws/smithy-go/context" "github.com/aws/smithy-go/internal/sync/singleflight" ) // package variable that can be override in unit tests. var timeNow = time.Now // TokenCacheOptions provides a set of optional configuration opt...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/aws/smithy-go/auth/bearer/docs.go
vendor/github.com/aws/smithy-go/auth/bearer/docs.go
// Package bearer provides middleware and utilities for authenticating API // operation calls with a Bearer Token. package bearer
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/aws/smithy-go/encoding/doc.go
vendor/github.com/aws/smithy-go/encoding/doc.go
// Package encoding provides utilities for encoding values for specific // document encodings. package encoding
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/aws/smithy-go/encoding/encoding.go
vendor/github.com/aws/smithy-go/encoding/encoding.go
package encoding import ( "fmt" "math" "strconv" ) // EncodeFloat encodes a float value as per the stdlib encoder for json and xml protocol // This encodes a float value into dst while attempting to conform to ES6 ToString for Numbers // // Based on encoding/json floatEncoder from the Go Standard Library // https:...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/aws/smithy-go/encoding/xml/constants.go
vendor/github.com/aws/smithy-go/encoding/xml/constants.go
package xml const ( leftAngleBracket = '<' rightAngleBracket = '>' forwardSlash = '/' colon = ':' equals = '=' quote = '"' )
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/aws/smithy-go/encoding/xml/element.go
vendor/github.com/aws/smithy-go/encoding/xml/element.go
// Copyright 2009 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. // Copied and modified from Go 1.14 stdlib's encoding/xml package xml // A Name represents an XML name (Local) annotated // with a name space identifier (Spac...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/aws/smithy-go/encoding/xml/array.go
vendor/github.com/aws/smithy-go/encoding/xml/array.go
package xml // arrayMemberWrapper is the default member wrapper tag name for XML Array type var arrayMemberWrapper = StartElement{ Name: Name{Local: "member"}, } // Array represents the encoding of a XML array type type Array struct { w writer scratch *[]byte // member start element is the array member wra...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/aws/smithy-go/encoding/xml/xml_decoder.go
vendor/github.com/aws/smithy-go/encoding/xml/xml_decoder.go
package xml import ( "encoding/xml" "fmt" "strings" ) // NodeDecoder is a XML decoder wrapper that is responsible to decoding // a single XML Node element and it's nested member elements. This wrapper decoder // takes in the start element of the top level node being decoded. type NodeDecoder struct { Decoder *xml...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/aws/smithy-go/encoding/xml/map.go
vendor/github.com/aws/smithy-go/encoding/xml/map.go
package xml // mapEntryWrapper is the default member wrapper start element for XML Map entry var mapEntryWrapper = StartElement{ Name: Name{Local: "entry"}, } // Map represents the encoding of a XML map type type Map struct { w writer scratch *[]byte // member start element is the map entry wrapper start e...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/aws/smithy-go/encoding/xml/value.go
vendor/github.com/aws/smithy-go/encoding/xml/value.go
package xml import ( "encoding/base64" "fmt" "math/big" "strconv" "github.com/aws/smithy-go/encoding" ) // Value represents an XML Value type // XML Value types: Object, Array, Map, String, Number, Boolean. type Value struct { w writer scratch *[]byte // xml start element is the associated start eleme...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false
moby/moby
https://github.com/moby/moby/blob/015cd3d3fdf4a1ad9f27f132013bea7838da721b/vendor/github.com/aws/smithy-go/encoding/xml/error_utils.go
vendor/github.com/aws/smithy-go/encoding/xml/error_utils.go
package xml import ( "encoding/xml" "fmt" "io" ) // ErrorComponents represents the error response fields // that will be deserialized from an xml error response body type ErrorComponents struct { Code string Message string } // GetErrorResponseComponents returns the error fields from an xml error response bo...
go
Apache-2.0
015cd3d3fdf4a1ad9f27f132013bea7838da721b
2026-01-07T08:35:43.425641Z
false