pake

package
v0.149.5 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: MIT Imports: 4 Imported by: 0

README

Shared BoringSSL SPAKE2

The boringssl tree is the source (not build artifacts) vendored by Apple Swift Crypto revision 1c80d3aff53fedc445b60692980cb4f19a618657, BoringSSL 0226f30467f540a3f62ef48d453f93927da199b6. Upstream licenses are preserved. Assembly is omitted and OPENSSL_NO_ASM selects the upstream portable implementations. No upstream algorithms are edited. Root bssl_*.cc files compile the same upstream translation units for cgo, which does not recurse into subdirectories. SwiftPM directly builds those same sources. Requires CGO_ENABLED=1 and a native C++17 compiler. Existing pure-Go builds use an explicit unavailable stub for pairing while retaining the older wing/CLI features; never substitute hand-written PAKE. Build the pairing-capable Linux wing natively with g++; macOS-to-Linux cross compilation needs an appropriate C/C++ cross toolchain. This PAKE dialect is BoringSSL SPAKE2, not an arbitrary RFC 9382 wire implementation.

Documentation

Overview

Package pake wraps BoringSSL SPAKE2; it contains no PAKE arithmetic.

Index

Constants

View Source
const Available = true

Variables

This section is empty.

Functions

This section is empty.

Types

type Exchange

type Exchange struct {
	// contains filtered or unexported fields
}

func New

func New(alice bool, secret, wingIdentity string) (*Exchange, []byte, error)

func (*Exchange) Close

func (e *Exchange) Close()

func (*Exchange) Finish

func (e *Exchange) Finish(message []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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