Documentation ¶
Index ¶
- func Challenge(pwd string, ctx *engine.AccountInfo) ([]byte, []byte, error)
- func Finish(bfac []byte, resp []byte) ([]byte, error)
- func GenerateKey() ([]byte, error)
- func GenerateSalt() ([]byte, error)
- func NewDeviceForAccount(key []byte, salt []byte) (*deviceForAccount, error)
- func Response(dev *deviceForAccount, chal []byte) ([]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Challenge ¶
Challenge takes the master password `pwd`, the account information `ctx` (including username and url) and returns a blinding factor and a challenge.
func Finish ¶
Finish takes the blinding factor generated from `Challenge` and the response from `Response` and output a pseudo-random string.
func GenerateKey ¶
GenerateKey generates a new random device key.
func NewDeviceForAccount ¶
NewDeviceForAccount converts the key material and salt of an account to a proper cryptograhic format.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.