Documentation ¶
Index ¶
- func ParseSecretPrivateKey(data []byte) (pk *ecdsa.PrivateKey, err error)
- func SetMasterKey(hexKey string) (err error)
- func VerifyHashSig(key *ecdsa.PublicKey, data, sig []byte) bool
- type Key
- func (k *Key) Marshal() ([]byte, error)
- func (k *Key) NewPrivateKey() (err error)
- func (k *Key) ParseSecretPrivateKey(data []byte) (err error)
- func (k *Key) Sign(data []byte) (s []byte, err error)
- func (k *Key) TryMarshalSecretPrivateKey() []byte
- func (k *Key) TryParseSecretPrivateKey(data []byte)
- func (k *Key) Verify(data, sig []byte) (ok bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseSecretPrivateKey ¶
func ParseSecretPrivateKey(data []byte) (pk *ecdsa.PrivateKey, err error)
ParseSecretPrivateKey parses ecdsa priv key from encrypted data. Data is encrypted with
func SetMasterKey ¶
Types ¶
type Key ¶
type Key struct { webauthncose.EC2PublicKeyData // contains filtered or unexported fields }
func NewFromData ¶
func NewFromPrivateKey ¶
func NewFromPrivateKey(priKey *ecdsa.PrivateKey) *Key
func (*Key) NewPrivateKey ¶
func (*Key) ParseSecretPrivateKey ¶
func (*Key) TryMarshalSecretPrivateKey ¶
func (*Key) TryParseSecretPrivateKey ¶
Click to show internal directories.
Click to hide internal directories.