opaque

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: GPL-3.0 Imports: 1 Imported by: 3

Documentation

Overview

Package opaque holds the functions and structures to perform OPAQUE registration and authentication https://github.com/cfrg/draft-irtf-cfrg-opaque

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Opaque

type Opaque struct {
	Type    Type   // The type of OPAQUE message from the constants
	Payload []byte // OPAQUE payload data
}

Opaque is a structure embedded into Merlin Base messages as a payload used to complete OPAQUE registration and authentication

type Type

type Type int

Type represents the type of OPAQUE message

const (
	// Undefined is the default value when a Type was not set
	Undefined Type = iota
	// RegInit is used to denote that the embedded payload contains data for the OPAQUE protocol Registration Initialization step
	RegInit
	// RegComplete is used to denote that the embedded payload contains data for the OPAQUE protocol Registration Complete step
	RegComplete
	// AuthInit is used to denote that the embedded payload contains data for the OPAQUE protocol Authorization Initialization step
	AuthInit
	// AuthComplete is used to denote that the embedded payload contains data for the OPAQUE protocol Authorization Complete step
	AuthComplete
	// ReRegister is used to instruct the Agent it needs to execute the OPAQUE Registration process with the server
	ReRegister
	// ReAuthenticate is used to instruct the Agent it needs to execute the OPAQUE Authentication process with the server
	ReAuthenticate
)

func (Type) String

func (t Type) String() string

String returns a string representation of the Opaque.Type

Jump to

Keyboard shortcuts

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