Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Pkey ¶
type Pkey struct { Alg string `json:"alg"` ID []byte `json:"id"` Curve struct { Pkey []byte `json:"pkey"` } `json:"curve"` Ed struct { Pkey []byte `json:"pkey"` } `json:"ed"` // contains filtered or unexported fields }
func (Pkey) GetCurveKey ¶
type Signature ¶
type Signature struct { Alg string `json:"alg"` Pkey *Pkey `json:"pkey"` Hash []byte `json:"hash"` Sig []byte `json:"sig"` }
func NewSignature ¶
type Skey ¶
type Skey struct { Alg string `json:"alg"` ID []byte `json:"id"` Kdf struct { Alg string `json:"alg"` Salt []byte `json:"salt"` Rounds int `json:"rounds"` } `json:"kdf"` Curve struct { Pkey []byte `json:"pkey"` Skey []byte `json:"skey"` } `json:"curve"` Ed struct { Pkey []byte `json:"pkey"` Skey []byte `json:"skey"` } `json:"ed"` Checksum []byte `json:"checksum"` // contains filtered or unexported fields }
func GenerateKey ¶
func (Skey) GetCurveKey ¶
Click to show internal directories.
Click to hide internal directories.