Documentation
¶
Overview ¶
Package keyderiv owns suite-0x02 HKDF-SHA256 derivation.
Every branch uses ASCII(label)||0x00||context with an empty salt so Go and TypeScript implementations align on a single info parameter.
Index ¶
Constants ¶
const ( V2ReadSecretBytes = 16 V2IdentityBytes = 16 V2PKHashBytes = 16 )
const ( V2DescriptorLabel = "windshare/v2 descriptor" V2SessionAuthLabel = "windshare/v2 session-auth" )
const KeyBytes = 32
KeyBytes is the uniform output length (AES-256 key) for all derived keys.
Variables ¶
var ErrV2KeyMaterial = errors.New("keyderiv: invalid suite-0x02 key material")
Functions ¶
func V2DescriptorKey ¶
V2DescriptorKey binds the bootstrap object key to the sender public-key hash.
func V2SessionAuthKey ¶
V2SessionAuthKey authenticates the transcript before sender resource admission.
Types ¶
This section is empty.