Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for PublicKeySize (0.35 sec)

  1. src/crypto/ed25519/ed25519.go

    	"bytes"
    	"crypto"
    	"crypto/internal/edwards25519"
    	cryptorand "crypto/rand"
    	"crypto/sha512"
    	"crypto/subtle"
    	"errors"
    	"io"
    	"strconv"
    )
    
    const (
    	// PublicKeySize is the size, in bytes, of public keys as used in this package.
    	PublicKeySize = 32
    	// PrivateKeySize is the size, in bytes, of private keys as used in this package.
    	PrivateKeySize = 64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/mod/sumdb/note/note.go

    // 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)
    
    	b64Key := base64.StdEncoding.EncodeToString(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)
  3. src/crypto/ed25519/ed25519_test.go

    		sig, _ := hex.DecodeString(parts[3])
    		// The signatures in the test vectors also include the message
    		// at the end, but we just want R and S.
    		sig = sig[:SignatureSize]
    
    		if l := len(pubKey); l != PublicKeySize {
    			t.Fatalf("bad public key length on line %d: got %d bytes", lineNo, l)
    		}
    
    		var priv [PrivateKeySize]byte
    		copy(priv[:], privBytes)
    		copy(priv[32:], pubKey)
    
    		sig2 := Sign(priv[:], msg)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 18:23:49 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  4. src/crypto/x509/parser.go

    		// > For all of the OIDs, the parameters MUST be absent.
    		if len(params.FullBytes) != 0 {
    			return nil, errors.New("x509: Ed25519 key encoded with illegal parameters")
    		}
    		if len(der) != ed25519.PublicKeySize {
    			return nil, errors.New("x509: wrong Ed25519 public key size")
    		}
    		return ed25519.PublicKey(der), nil
    	case oid.Equal(oidPublicKeyX25519):
    		// RFC 8410, Section 3
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:00:16 UTC 2024
    - 38.5K bytes
    - Viewed (0)
  5. src/crypto/x509/x509_test.go

    		t.Fatalf("Parsed key algorithm was not Ed25519")
    	}
    	parsedKey, ok := cert.PublicKey.(ed25519.PublicKey)
    	if !ok {
    		t.Fatalf("Parsed key was not an Ed25519 key: %s", err)
    	}
    	if len(parsedKey) != ed25519.PublicKeySize {
    		t.Fatalf("Invalid Ed25519 key")
    	}
    
    	if err = cert.CheckSignatureFrom(cert); err != nil {
    		t.Fatalf("Signature check failed: %s", err)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:00:16 UTC 2024
    - 163.4K bytes
    - Viewed (0)
  6. api/go1.13.txt

    pkg bytes, func ToValidUTF8([]uint8, []uint8) []uint8
    pkg crypto/ed25519, const PrivateKeySize = 64
    pkg crypto/ed25519, const PrivateKeySize ideal-int
    pkg crypto/ed25519, const PublicKeySize = 32
    pkg crypto/ed25519, const PublicKeySize ideal-int
    pkg crypto/ed25519, const SeedSize = 32
    pkg crypto/ed25519, const SeedSize ideal-int
    pkg crypto/ed25519, const SignatureSize = 64
    pkg crypto/ed25519, const SignatureSize ideal-int
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 08 18:44:16 UTC 2019
    - 452.6K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/internal/stdlib/manifest.go

    		{"Options", Type, 20},
    		{"Options.Context", Field, 20},
    		{"Options.Hash", Field, 20},
    		{"PrivateKey", Type, 13},
    		{"PrivateKeySize", Const, 13},
    		{"PublicKey", Type, 13},
    		{"PublicKeySize", Const, 13},
    		{"SeedSize", Const, 13},
    		{"Sign", Func, 13},
    		{"SignatureSize", Const, 13},
    		{"Verify", Func, 13},
    		{"VerifyWithOptions", Func, 20},
    	},
    	"crypto/elliptic": {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 534.2K bytes
    - Viewed (0)
Back to top