Documentation ¶
Index ¶
- func NewExtendedSignerFromCBORHex(cborHex string) (cose.Signer, error)
- func NewExtendedSignerFromCOSEKey(key *COSEKey) (cose.Signer, error)
- func NewSignerFromCBORHex(cborHex string) (cose.Signer, error)
- func NewSignerFromCOSEKey(key *COSEKey) (cose.Signer, error)
- func NewVerifierFromCBORHex(cborHex string) (cose.Verifier, error)
- func NewVerifierFromCOSEKey(key *COSEKey) (cose.Verifier, error)
- func SignExtendedPayloadWithKeyFromCBORHex(payload, key string) (string, error)
- func SignExtendedWithKey(payload, key []byte) (string, error)
- func SignPayloadWithKeyFromCBORHex(payload, key string) (string, error)
- func SignWithKey(payload, key []byte) (string, error)
- func VerifyFromCBORHex(signature, key string) error
- type COSEKey
- type COSESign1Message
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExtendedSignerFromCBORHex ¶ added in v0.1.22
func NewExtendedSignerFromCOSEKey ¶ added in v0.1.22
////////////////////////////////////////////////////////////// extended signer (ed25519e)
func NewSignerFromCBORHex ¶
func NewSignerFromCOSEKey ¶
func NewVerifierFromCBORHex ¶
func NewVerifierFromCOSEKey ¶
func SignExtendedPayloadWithKeyFromCBORHex ¶ added in v0.1.22
func SignExtendedWithKey ¶ added in v0.1.22
func SignWithKey ¶
func VerifyFromCBORHex ¶
Types ¶
type COSEKey ¶
type COSEKey struct { Crv uint64 `cbor:"-1,keyasint"` Key cbor.ByteString `cbor:"-2,keyasint"` Kty uint64 `cbor:"1,keyasint"` Kid cbor.ByteString `cbor:"2,keyasint,omitempty"` Alg int64 `cbor:"3,keyasint"` }
func NewCOSEKeyFromBytes ¶
func NewCOSEKeyFromCBORHex ¶
func (*COSEKey) MarshalCBOR ¶
func (*COSEKey) UnmarshalCBOR ¶
type COSESign1Message ¶
type COSESign1Message struct {
*cose.Sign1Message
}
func NewCOSESign1MessageFromCBORHex ¶
func NewCOSESign1MessageFromCBORHex(cborHex string) (*COSESign1Message, error)
func NewCOSESign1MessageWithPayload ¶
func NewCOSESign1MessageWithPayload(payload string, kid []byte) *COSESign1Message
func (*COSESign1Message) MarshalCBOR ¶
func (m *COSESign1Message) MarshalCBOR() ([]byte, error)
func (*COSESign1Message) UnmarshalCBOR ¶
func (m *COSESign1Message) UnmarshalCBOR(data []byte) error
Click to show internal directories.
Click to hide internal directories.