Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 101 for Curve (0.12 sec)

  1. src/crypto/internal/nistec/nistec_test.go

    	})
    	t.Run("P521", func(t *testing.T) {
    		testEquivalents(t, nistec.NewP521Point, elliptic.P521())
    	})
    }
    
    func testEquivalents[P nistPoint[P]](t *testing.T, newPoint func() P, c elliptic.Curve) {
    	p := newPoint().SetGenerator()
    
    	elementSize := (c.Params().BitSize + 7) / 8
    	two := make([]byte, elementSize)
    	two[len(two)-1] = 2
    	nPlusTwo := make([]byte, elementSize)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 12 18:48:23 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  2. pkg/serviceaccount/openidmetadata.go

    		return jose.RS256, nil
    	case *ecdsa.PublicKey:
    		switch pk.Curve {
    		case elliptic.P256():
    			return jose.ES256, nil
    		case elliptic.P384():
    			return jose.ES384, nil
    		case elliptic.P521():
    			return jose.ES512, nil
    		default:
    			return "", fmt.Errorf("unknown private key curve, must be 256, 384, or 521")
    		}
    	case jose.OpaqueSigner:
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Feb 12 00:23:31 UTC 2020
    - 9.4K bytes
    - Viewed (0)
  3. api/go1.21.txt

    pkg crypto/elliptic, type Curve interface, Add //deprecated #52221
    pkg crypto/elliptic, type Curve interface, Double //deprecated #52221
    pkg crypto/elliptic, type Curve interface, IsOnCurve //deprecated #52221
    pkg crypto/elliptic, type Curve interface, ScalarBaseMult //deprecated #52221
    pkg crypto/elliptic, type Curve interface, ScalarMult //deprecated #52221
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 07 09:39:17 UTC 2023
    - 25.6K bytes
    - Viewed (0)
  4. pkg/serviceaccount/jwt.go

    	var alg jose.SignatureAlgorithm
    	switch keyPair.Curve {
    	case elliptic.P256():
    		alg = jose.ES256
    	case elliptic.P384():
    		alg = jose.ES384
    	case elliptic.P521():
    		alg = jose.ES512
    	default:
    		return nil, fmt.Errorf("unknown private key curve, must be 256, 384, or 521")
    	}
    
    	keyID, err := keyIDFromPublicKey(&keyPair.PublicKey)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Feb 27 22:16:08 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  5. src/crypto/internal/hpke/hpke_test.go

    			if err != nil {
    				t.Fatal(err)
    			}
    
    			ephemeralPrivKey := mustDecodeHex(t, setup["skEm"])
    
    			testingOnlyGenerateKey = func() (*ecdh.PrivateKey, error) {
    				return SupportedKEMs[uint16(kemID)].curve.NewPrivateKey(ephemeralPrivKey)
    			}
    			t.Cleanup(func() { testingOnlyGenerateKey = nil })
    
    			encap, context, err := SetupSender(
    				uint16(kemID),
    				uint16(kdfID),
    				uint16(aeadID),
    				pub,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:33:33 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  6. src/internal/trace/gc.go

    }
    
    // mean returns the mean utilization over dur.
    func (u totalUtil) mean(dur time.Duration) float64 {
    	return float64(u) / float64(dur)
    }
    
    // An MMUCurve is the minimum mutator utilization curve across
    // multiple window sizes.
    type MMUCurve struct {
    	series []mmuSeries
    }
    
    type mmuSeries struct {
    	util []MutatorUtil
    	// sums[j] is the cumulative sum of util[:j].
    	sums []totalUtil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 18:48:18 UTC 2024
    - 26K bytes
    - Viewed (0)
  7. src/crypto/internal/nistec/p256_asm.go

    // This file contains the Go wrapper for the constant-time, 64-bit assembly
    // implementation of P256. The optimizations performed here are described in
    // detail in:
    // S.Gueron and V.Krasnov, "Fast prime field elliptic-curve cryptography with
    //                          256-bit primes"
    // https://link.springer.com/article/10.1007%2Fs13389-014-0090-x
    // https://eprint.iacr.org/2013/816.pdf
    
    //go:build (amd64 || arm64 || ppc64le || s390x) && !purego
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  8. security/pkg/pki/ca/ca.go

    	// cause intermediate CAs using RSA to be generated)
    	_, signingKey, _, _ := ca.keyCertBundle.GetAll()
    	curve, err := util.GetEllipticCurve(signingKey)
    	if err == nil {
    		opts.ECSigAlg = util.EcdsaSigAlg
    		switch curve {
    		case elliptic.P384():
    			opts.ECCCurve = util.P384Curve
    		default:
    			opts.ECCCurve = util.P256Curve
    		}
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Nov 30 19:33:26 UTC 2023
    - 17.2K bytes
    - Viewed (0)
  9. src/crypto/tls/handshake_messages.go

    			if !extData.ReadUint16LengthPrefixed(&curves) || curves.Empty() {
    				return false
    			}
    			for !curves.Empty() {
    				var curve uint16
    				if !curves.ReadUint16(&curve) {
    					return false
    				}
    				m.supportedCurves = append(m.supportedCurves, CurveID(curve))
    			}
    		case extensionSupportedPoints:
    			// RFC 4492, Section 5.1.2
    			if !readUint8LengthPrefixed(&extData, &m.supportedPoints) ||
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  10. src/crypto/tls/handshake_server.go

    // pre-TLS 1.3 client.
    func supportsECDHE(c *Config, version uint16, supportedCurves []CurveID, supportedPoints []uint8) bool {
    	supportsCurve := false
    	for _, curve := range supportedCurves {
    		if c.supportsCurve(version, curve) {
    			supportsCurve = true
    			break
    		}
    	}
    
    	supportsPointFormat := false
    	for _, pointFormat := range supportedPoints {
    		if pointFormat == pointFormatUncompressed {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 27.6K bytes
    - Viewed (0)
Back to top