Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for TestMismatchedCurves (0.16 sec)

  1. 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)
Back to top