Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 131 for p384 (0.04 sec)

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

    		y.Select(otherRoot, y, int(cond))
    
    		p.x.Set(x)
    		p.y.Set(y)
    		p.z.One()
    		return p, nil
    
    	default:
    		return nil, errors.New("invalid P384 point encoding")
    	}
    }
    
    var _p384B *fiat.P384Element
    var _p384BOnce sync.Once
    
    func p384B() *fiat.P384Element {
    	_p384BOnce.Do(func() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 12 00:04:29 UTC 2022
    - 18K bytes
    - Viewed (0)
  2. src/crypto/internal/nistec/fiat/p384.go

    Filippo Valsorda <******@****.***> 1650474738 -0400
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 12 00:04:29 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  3. releasenotes/notes/ecc-p384.yaml

    apiVersion: release-notes/v2
    kind: feature
    area: security
    issue: []
    releaseNotes:
    - |
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 28 16:21:30 UTC 2023
    - 145 bytes
    - Viewed (0)
  4. src/crypto/internal/nistec/nistec_test.go

    		testEquivalents(t, nistec.NewP224Point, elliptic.P224())
    	})
    	t.Run("P256", func(t *testing.T) {
    		testEquivalents(t, nistec.NewP256Point, elliptic.P256())
    	})
    	t.Run("P384", func(t *testing.T) {
    		testEquivalents(t, nistec.NewP384Point, elliptic.P384())
    	})
    	t.Run("P521", func(t *testing.T) {
    		testEquivalents(t, nistec.NewP521Point, elliptic.P521())
    	})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 12 18:48:23 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  5. src/crypto/ecdh/ecdh_test.go

    			t.Errorf("unexpected symbol in program using only ecdh.P384: %s", match[1])
    		}
    	}
    	if !consistent {
    		t.Error("no P384 symbols found in program using ecdh.P384, test is broken")
    	}
    }
    
    func TestMismatchedCurves(t *testing.T) {
    	curves := []struct {
    		name  string
    		curve ecdh.Curve
    	}{
    		{"P256", ecdh.P256()},
    		{"P384", ecdh.P384()},
    		{"P521", ecdh.P521()},
    		{"X25519", ecdh.X25519()},
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 27 18:23:49 UTC 2024
    - 18K bytes
    - Viewed (0)
  6. src/crypto/ecdsa/ecdsa.go

    	})
    	return _p256
    }
    
    var p384Once sync.Once
    var _p384 *nistCurve[*nistec.P384Point]
    
    func p384() *nistCurve[*nistec.P384Point] {
    	p384Once.Do(func() {
    		_p384 = &nistCurve[*nistec.P384Point]{
    			newPoint: func() *nistec.P384Point { return nistec.NewP384Point() },
    		}
    		precomputeParams(_p384, elliptic.P384())
    	})
    	return _p384
    }
    
    var p521Once sync.Once
    var _p521 *nistCurve[*nistec.P521Point]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  7. src/crypto/ecdsa/ecdsa_test.go

    			case "P-256":
    				pub.Curve = elliptic.P256()
    			case "P-384":
    				pub.Curve = elliptic.P384()
    			case "P-521":
    				pub.Curve = elliptic.P521()
    			default:
    				pub.Curve = nil
    			}
    
    			switch hash {
    			case "SHA-1":
    				h = sha1.New()
    			case "SHA-224":
    				h = sha256.New224()
    			case "SHA-256":
    				h = sha256.New()
    			case "SHA-384":
    				h = sha512.New384()
    			case "SHA-512":
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:33:58 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  8. src/crypto/internal/nistec/fiat/fiat_test.go

    )
    
    func BenchmarkMul(b *testing.B) {
    	b.Run("P224", func(b *testing.B) {
    		v := new(fiat.P224Element).One()
    		b.ReportAllocs()
    		b.ResetTimer()
    		for i := 0; i < b.N; i++ {
    			v.Mul(v, v)
    		}
    	})
    	b.Run("P384", func(b *testing.B) {
    		v := new(fiat.P384Element).One()
    		b.ReportAllocs()
    		b.ResetTimer()
    		for i := 0; i < b.N; i++ {
    			v.Mul(v, v)
    		}
    	})
    	b.Run("P521", func(b *testing.B) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 05 21:53:03 UTC 2022
    - 1.2K bytes
    - Viewed (0)
  9. src/crypto/tls/generate_cert.go

    		}
    	case "P224":
    		priv, err = ecdsa.GenerateKey(elliptic.P224(), rand.Reader)
    	case "P256":
    		priv, err = ecdsa.GenerateKey(elliptic.P256(), rand.Reader)
    	case "P384":
    		priv, err = ecdsa.GenerateKey(elliptic.P384(), rand.Reader)
    	case "P521":
    		priv, err = ecdsa.GenerateKey(elliptic.P521(), rand.Reader)
    	default:
    		log.Fatalf("Unrecognized elliptic curve: %q", *ecdsaCurve)
    	}
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 08 15:22:02 UTC 2022
    - 4.8K bytes
    - Viewed (0)
  10. src/crypto/elliptic/elliptic_test.go

    		name  string
    		curve Curve
    	}{
    		{"P256", P256()},
    		{"P256/Params", genericParamsForCurve(P256())},
    		{"P224", P224()},
    		{"P224/Params", genericParamsForCurve(P224())},
    		{"P384", P384()},
    		{"P384/Params", genericParamsForCurve(P384())},
    		{"P521", P521()},
    		{"P521/Params", genericParamsForCurve(P521())},
    	}
    	if testing.Short() {
    		tests = tests[:1]
    	}
    	for _, test := range tests {
    		curve := test.curve
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 27 02:00:03 UTC 2023
    - 11.6K bytes
    - Viewed (0)
Back to top