cert-manager/pkg/util
Ashley Davis 3df1173a22
fix incorrect comparison function for public keys
also adds/improves doc comments on related functions, and adds tests of
comparisons RSA keys and ECDSA keys. these tests failed as expected
before the function was changed, e.g.:

```text
Executing tests from //pkg/util/pki:go_default_test
---------------------------------------------------
--- FAIL: TestPublicKeysEqualECDSA (0.00s)
  generate_test.go:492: got an incorrect match from different curves:
    pub1 type: "P-256"
    pub2 type: "P-521"
--- FAIL: TestPublicKeysEqualRSA (0.00s)
  generate_test.go:560: got an incorrect match from different RSA keys:
    pub1: &rsa.PublicKey{N:2293...<snip>...8869, E:65537}
    pub2: &rsa.PublicKey{N:2293...<snip>...8869, E:3}
```

Signed-off-by: Ashley Davis <ashley.davis@jetstack.io>
2021-04-22 16:07:18 +01:00
..
cmd Use The cert-manager Authors. 2020-12-11 19:04:13 +01:00
coverage Fix build on go1.16 2021-02-26 22:47:56 +09:00
errors Use The cert-manager Authors. 2020-12-11 19:04:13 +01:00
feature Use The cert-manager Authors. 2020-12-11 19:04:13 +01:00
kube Use The cert-manager Authors. 2020-12-11 19:04:13 +01:00
pki fix incorrect comparison function for public keys 2021-04-22 16:07:18 +01:00
predicate Use The cert-manager Authors. 2020-12-11 19:04:13 +01:00
profiling Use The cert-manager Authors. 2020-12-11 19:04:13 +01:00
BUILD.bazel ./hack/update-all.sh 2020-08-20 14:28:06 +01:00
context.go Use The cert-manager Authors. 2020-12-11 19:04:13 +01:00
useragent.go Rename the User Agent fields 2020-12-15 17:25:18 +01:00
util_test.go Use The cert-manager Authors. 2020-12-11 19:04:13 +01:00
util.go Use The cert-manager Authors. 2020-12-11 19:04:13 +01:00
version_test.go Use The cert-manager Authors. 2020-12-11 19:04:13 +01:00
version.go Use The cert-manager Authors. 2020-12-11 19:04:13 +01:00