Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var KnownDerivations = make(map[string]Derivation)
KnownDerivations maps the derivation names to their implementations.
Functions ¶
Types ¶
type Delegated ¶
type Delegated struct{}
Delegated implements the level 2 drkey derivation from level 1, without DS. It relies on the Standard implementation to derive the DS from the level 1 key.
func (Delegated) DeriveLvl2 ¶
DeriveLvl2 derives the level 2 DRKey without passing through a delegation secret.
func (Delegated) DeriveLvl2FromDS ¶
func (p Delegated) DeriveLvl2FromDS(meta drkey.Lvl2Meta, ds drkey.DelegationSecret) ( drkey.Lvl2Key, error)
DeriveLvl2FromDS will derive the level 2 key from a delegation secret.
type DelegatedDerivation ¶
type DelegatedDerivation interface { Derivation DeriveLvl2FromDS(meta drkey.Lvl2Meta, ds drkey.DelegationSecret) (drkey.Lvl2Key, error) }
DelegatedDerivation extends a Derivation with a derivation from a DS.
type Derivation ¶
type Derivation interface { Name() string DeriveLvl2(meta drkey.Lvl2Meta, key drkey.Lvl1Key) (drkey.Lvl2Key, error) }
Derivation specifies the interface to implement for a derivation method.
Click to show internal directories.
Click to hide internal directories.