- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 27 for ed25519 (0.22 sec)
-
src/crypto/ed25519/ed25519.go
return errors.New("ed25519: invalid signature") } return nil default: return errors.New("ed25519: expected opts.Hash zero (unhashed message, for standard Ed25519) or SHA-512 (for Ed25519ph)") } } func verify(publicKey PublicKey, message, sig []byte, domPrefix, context string) bool { if l := len(publicKey); l != PublicKeySize { panic("ed25519: bad public key length: " + strconv.Itoa(l)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 00:11:18 UTC 2024 - 11.7K bytes - Viewed (0) -
src/crypto/tls/auth.go
return errors.New("ECDSA verification failure") } case signatureEd25519: pubKey, ok := pubkey.(ed25519.PublicKey) if !ok { return fmt.Errorf("expected an Ed25519 public key, got %T", pubkey) } if !ed25519.Verify(pubKey, signed, sig) { return errors.New("Ed25519 verification failure") } case signaturePKCS1v15: pubKey, ok := pubkey.(*rsa.PublicKey) if !ok {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 21:45:37 UTC 2024 - 10K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/mod/sumdb/note/note.go
} // NewEd25519VerifierKey returns an encoded verifier key using the given name // and Ed25519 public key. func NewEd25519VerifierKey(name string, key ed25519.PublicKey) (string, error) { if len(key) != ed25519.PublicKeySize { return "", fmt.Errorf("invalid public key size %d, expected %d", len(key), ed25519.PublicKeySize) } pubkey := append([]byte{algEd25519}, key...) hash := keyHash(name, pubkey)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Jul 12 20:38:21 UTC 2023 - 20.1K bytes - Viewed (0) -
src/crypto/tls/tls.go
return fail(errors.New("tls: private key does not match public key")) } case ed25519.PublicKey: priv, ok := cert.PrivateKey.(ed25519.PrivateKey) if !ok { return fail(errors.New("tls: private key type does not match public key type")) } if !bytes.Equal(priv.Public().(ed25519.PublicKey), pub) { return fail(errors.New("tls: private key does not match public key")) } default:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Jun 07 17:57:01 UTC 2024 - 12.2K bytes - Viewed (0) -
security/pkg/pki/util/crypto_test.go
// See the License for the specific language governing permissions and // limitations under the License. package util import ( "crypto" "crypto/ecdsa" "crypto/ed25519" "crypto/elliptic" "crypto/rand" "crypto/rsa" "crypto/x509" "reflect" "strings" "testing" ) const ( csr = ` -----BEGIN CERTIFICATE REQUEST-----
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jun 04 13:00:07 UTC 2024 - 14.6K bytes - Viewed (0) -
security/pkg/pki/util/generate_cert.go
} func publicKey(priv any) any { switch k := priv.(type) { case *rsa.PrivateKey: return &k.PublicKey case *ecdsa.PrivateKey: return &k.PublicKey case ed25519.PrivateKey: return k.Public().(ed25519.PublicKey) default: return nil } } // GenRootCertFromExistingKey generates a X.509 certificate using existing // CA private key. Only called by a self-signed Citadel.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Aug 02 14:34:38 UTC 2023 - 14.2K bytes - Viewed (0) -
src/crypto/ed25519/ed25519_test.go
// 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 ed25519 import ( "bufio" "bytes" "compress/gzip" "crypto" "crypto/internal/boring" "crypto/rand" "crypto/sha512" "encoding/hex" "internal/testenv" "log" "os" "strings" "testing" ) func Example_ed25519ctx() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 27 18:23:49 UTC 2024 - 10.9K bytes - Viewed (0) -
src/crypto/tls/key_agreement.go
return md5sha1 } // hashForServerKeyExchange hashes the given slices and returns their digest // using the given hash function (for TLS 1.2) or using a default based on // the sigType (for earlier TLS versions). For Ed25519 signatures, which don't // do pre-hashing, it returns the concatenation of the slices. func hashForServerKeyExchange(sigType uint8, hashFunc crypto.Hash, version uint16, slices ...[]byte) []byte { if sigType == signatureEd25519 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 14:56:25 UTC 2024 - 11.8K bytes - Viewed (0) -
pkg/apis/certificates/v1beta1/defaults_test.go
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ package v1beta1 import ( "crypto/ed25519" "crypto/rand" "crypto/x509" "crypto/x509/pkix" "encoding/pem" "net" "net/url" "reflect" "testing" capi "k8s.io/api/certificates/v1beta1" )
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Dec 27 08:04:25 UTC 2022 - 16.9K bytes - Viewed (0) -
src/crypto/tls/handshake_test.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 tls import ( "bufio" "crypto/ed25519" "crypto/x509" "encoding/hex" "errors" "flag" "fmt" "io" "net" "os" "os/exec" "runtime" "strconv" "strings" "sync" "testing" "time" )
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:10:12 UTC 2024 - 24.5K bytes - Viewed (0)