Documentation ¶
Overview ¶
Package internal provides values, structures, and functions to operate OPAQUE that are not part of the public API.
Index ¶
Constants ¶
View Source
const ( // NonceLength is the default length used for nonces. NonceLength = 32 // SeedLength is the default length used for seeds. SeedLength = 32 )
Variables ¶
View Source
var ErrConfigurationInvalidLength = errors.New("invalid encoded configuration length")
ErrConfigurationInvalidLength happens when deserializing a configuration of invalid length.
Functions ¶
func RandomBytes ¶
RandomBytes returns random bytes of length len (wrapper for crypto/rand).
Types ¶
type Configuration ¶ added in v0.8.1
type Configuration struct { KDF *KDF MAC *Mac Hash *Hash KSF *KSF OPRF oprf.Identifier Context []byte NonceLen int EnvelopeSize int Group group.Group }
Configuration is the internal representation of the instance runtime parameters.
type Hash ¶
type Hash struct {
// contains filtered or unexported fields
}
Hash wraps a hash function and exposes only necessary hashing methods.
type IdentityKSF ¶ added in v0.8.0
type IdentityKSF struct{}
IdentityKSF represents a KSF with no operations.
type KDF ¶
type KDF struct {
// contains filtered or unexported fields
}
KDF wraps a hash function and exposes KDF methods.
type KSF ¶ added in v0.8.0
type KSF struct {
// contains filtered or unexported fields
}
KSF wraps a key stretching function and exposes its functions.
func NewKSF ¶ added in v0.8.0
func NewKSF(id ksf.Identifier) *KSF
NewKSF returns a newly instantiated KSF.
Directories ¶
Path | Synopsis |
---|---|
Package ake provides high-level functions for the 3DH AKE.
|
Package ake provides high-level functions for the 3DH AKE. |
Package encoding provides encoding utilities.
|
Package encoding provides encoding utilities. |
Package keyrecovery provides utility functions and structures allowing credential management.
|
Package keyrecovery provides utility functions and structures allowing credential management. |
Package masking provides the credential masking mechanism.
|
Package masking provides the credential masking mechanism. |
Package oprf implements the Elliptic Curve Oblivious Pseudorandom Function (EC-OPRF) from https://tools.ietf.org/html/draft-irtf-cfrg-voprf.
|
Package oprf implements the Elliptic Curve Oblivious Pseudorandom Function (EC-OPRF) from https://tools.ietf.org/html/draft-irtf-cfrg-voprf. |
Package tag provides the static tag strings to OPAQUE.
|
Package tag provides the static tag strings to OPAQUE. |
Click to show internal directories.
Click to hide internal directories.