MCPcopy
hub / github.com/smallstep/cli / Public

Method Public

internal/cryptoutil/cryptoutil.go:301–303  ·  view source on GitHub ↗

Public implements crypto.Signer and returns the public key.

()

Source from the content-addressed store, hash-verified

299
300// Public implements crypto.Signer and returns the public key.
301func (s *kmsSigner) Public() crypto.PublicKey {
302 return s.PublicKey
303}
304
305// Sign implements crypto.Signer using the `step-kms-plugin`.
306func (s *kmsSigner) Sign(_ io.Reader, digest []byte, opts crypto.SignerOpts) (signature []byte, err error) {

Callers 15

getAKFunction · 0.45
getPreferredEKFunction · 0.45
attestMethod · 0.45
generateX5CTokenFunction · 0.45
doDeviceAttestationFunction · 0.45
createActionFunction · 0.45
encryptActionFunction · 0.45
signActionFunction · 0.45
publicKeyFunction · 0.45
fingerprintActionFunction · 0.45

Calls

no outgoing calls

Tested by 4

Test_parseECDSAFunction · 0.36
TestToken_SignedStringFunction · 0.36