keyrecovery

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package keyrecovery provides utility functions and structures allowing credential management.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Recover

func Recover(
	conf *internal.Configuration,
	randomizedPwd, serverPublicKey, clientIdentity, serverIdentity []byte,
	envelope *Envelope,
) (clientSecretKey *group.Scalar, clientPublicKey *group.Element, export []byte, err error)

Recover returns the client's private and public key, as well as the secret export key.

Types

type Credentials

type Credentials struct {
	ClientIdentity, ServerIdentity []byte
	EnvelopeNonce                  []byte // testing: integrated to support testing
}

Credentials structure is currently used for testing purposes.

type Envelope

type Envelope struct {
	Nonce   []byte
	AuthTag []byte
}

Envelope represents the OPAQUE envelope.

func Store

func Store(
	conf *internal.Configuration,
	randomizedPwd []byte, serverPublicKey *group.Element,
	creds *Credentials,
) (env *Envelope, pku *group.Element, export []byte)

Store returns the client's Envelope, the masking key for the registration, and the additional export key.

func (*Envelope) Serialize

func (e *Envelope) Serialize() []byte

Serialize returns the byte serialization of the envelope.

Jump to

Keyboard shortcuts

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