tag

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package tag provides the static tag strings to OPAQUE.

Index

Constants

View Source
const (

	// OPRF is a string explicitly stating the version name.
	OPRF = "VOPRF07-"

	// OPRFPrefix is the DST prefix to use for HashToGroup operations.
	OPRFPrefix = "HashToGroup-"

	// OPRFFinalize is the DST suffix used in the client transcript.
	OPRFFinalize = "Finalize-"

	// AuthKey is the envelope's MAC key's KDF dst.
	AuthKey = "AuthKey"

	// ExportKey is the export key's KDF dst.
	ExportKey = "ExportKey"

	// MaskingKey is the masking key's creation KDF dst.
	MaskingKey = "MaskingKey"

	// DerivePrivateKey is the client's internal mode private key hash-to-scalar dst.
	DerivePrivateKey = "OPAQUE-HashToScalar"

	// ExpandPrivateKey is the client's internal mode private key seed KDF dst.
	ExpandPrivateKey = "PrivateKey"

	// EncryptionPad is the external mode's encryption key KDF dst.
	EncryptionPad = "Pad"

	// VersionTag indicates the protocol RFC identifier for the AKE transcript prefix.
	VersionTag = "RFCXXXX"

	// LabelPrefix is the 3DH secret KDF dst prefix.
	LabelPrefix = "OPAQUE-"

	// Handshake is the 3DH HandshakeSecret dst.
	Handshake = "HandshakeSecret"

	// SessionKey is the 3DH session secret dst.
	SessionKey = "SessionKey"

	// MacServer is 3DH server's MAC key KDF dst.
	MacServer = "ServerMAC"

	// MacClient is 3DH server's MAC key KDF dst.
	MacClient = "ClientMAC"

	// CredentialResponsePad is the masking keys KDF dst to expand to the input.
	CredentialResponsePad = "CredentialResponsePad"

	// ExpandOPRF is the server's OPRF key seed KDF dst.
	ExpandOPRF = "OprfKey"

	// DeriveKeyPair is the server's OPRF hash-to-scalar dst.
	DeriveKeyPair = "OPAQUE-DeriveKeyPair"
)

These strings are the static tags and labels used throughout the protocol.

Variables

This section is empty.

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL