cert-manager/pkg
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
..
acme spelling: wrapped 2021-03-04 13:04:38 -05:00
api Adds Denied to certificaterequests reporter 2021-04-09 15:26:15 +01:00
apis Merge pull request #3878 from JoshVanL/certificate-request-controller-denied-ready-condition 2021-04-13 17:22:11 +01:00
client Run a codegen update 2021-01-08 15:05:32 +01:00
controller Merge pull request #3878 from JoshVanL/certificate-request-controller-denied-ready-condition 2021-04-13 17:22:11 +01:00
ctl 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
internal Merge pull request #3877 from irbekrm/move_crypto_fork 2021-04-13 13:28:15 +01:00
issuer Issuer's ACME EAB algorithm can no longer be set 2021-04-09 10:28:19 +01:00
logs DataForCertificate: use fake clientset instead of fake lister 2021-03-04 17:20:45 +01:00
metrics spelling: prometheus 2021-03-04 13:04:38 -05:00
scheduler Use The cert-manager Authors. 2020-12-11 19:04:13 +01:00
util fix incorrect comparison function for public keys 2021-04-22 16:07:18 +01:00
webhook Passes through request context of webhook to admission functions 2021-04-03 13:19:01 +01:00