MCPcopy Create free account
hub / github.com/SermoDigital/jose / Sign

Method Sign

crypto/signing_method.go:18–18  ·  view source on GitHub ↗

Sign returns a Signature for the raw bytes, as well as any errors that occurred during the signing.

(raw []byte, key interface{})

Source from the content-addressed store, hash-verified

16 // Sign returns a Signature for the raw bytes, as well as any errors
17 // that occurred during the signing.
18 Sign(raw []byte, key interface{}) (Signature, error)
19
20 // Used to cause quick panics when a crypto.SigningMethod whose form of hashing
21 // isn't linked in the binary when you register a crypto.SigningMethod.

Callers 2

SignMethod · 0.65
signMethod · 0.65

Implementers 5

SigningMethodRSAcrypto/rsa.go
SigningMethodECDSAcrypto/ecdsa.go
SigningMethodHMACcrypto/hmac.go
SigningMethodNonecrypto/none.go
TestSigningMethodjws/signing_methods_test.go

Calls

no outgoing calls

Tested by

no test coverage detected