Versions in this module Expand all Collapse all v0 v0.10.0 Mar 17, 2023 v0.9.1 Feb 12, 2023 v0.9.0 Jul 15, 2022 v0.8.2 Apr 5, 2022 v0.8.1 Mar 28, 2022 Changes in this version + type Configuration struct + AkePointLength int + Context []byte + EnvelopeSize int + Group group.Group + Hash *Hash + KDF *KDF + KSF *KSF + MAC *Mac + NonceLen int + OPRF oprf.Ciphersuite + OPRFPointLength int + func (c *Configuration) DeserializeKE1(input []byte) (*message.KE1, error) + func (c *Configuration) DeserializeKE2(input []byte) (*message.KE2, error) + func (c *Configuration) DeserializeKE3(input []byte) (*message.KE3, error) + func (c *Configuration) DeserializeRegistrationRecord(input []byte) (*message.RegistrationRecord, error) + func (c *Configuration) DeserializeRegistrationRequest(input []byte) (*message.RegistrationRequest, error) + func (c *Configuration) DeserializeRegistrationResponse(input []byte) (*message.RegistrationResponse, error) + func (c *Configuration) XorResponse(key, nonce, in []byte) []byte v0.8.0 Mar 21, 2022 Changes in this version + const SeedLength + type IdentityKSF struct + func (i IdentityKSF) Harden(password, _ []byte, _ int) []byte + type KSF struct + func NewKSF(id ksf.Identifier) *KSF type Parameters + KSF *KSF + func (p *Parameters) DeserializeRecord(input []byte) (*message.RegistrationRecord, error) + func (p *Parameters) XorResponse(key, nonce, in []byte) []byte v0.6.0 Aug 17, 2021 Changes in this version + const NonceLength + var ErrConfigurationInvalidLength = errors.New("invalid encoded configuration length") + func RandomBytes(length int) []byte + func Xor(a, b []byte) []byte + type Hash struct + func NewHash(id crypto.Hash) *Hash + func (h *Hash) Size() int + func (h *Hash) Sum() []byte + func (h *Hash) Write(p []byte) + type IdentityMHF struct + func (i IdentityMHF) Harden(password, _ []byte, _ int) []byte + type KDF struct + func NewKDF(id crypto.Hash) *KDF + func (k *KDF) Expand(key, info []byte, length int) []byte + func (k *KDF) Extract(salt, ikm []byte) []byte + func (k *KDF) Size() int + type MHF struct + func NewMHF(id mhf.Identifier) *MHF + type Mac struct + func NewMac(id crypto.Hash) *Mac + func (m *Mac) Equal(a, b []byte) bool + func (m *Mac) MAC(key, message []byte) []byte + func (m *Mac) Size() int + type Parameters struct + AkePointLength int + Context []byte + EnvelopeSize int + Group group.Group + Hash *Hash + KDF *KDF + MAC *Mac + MHF *MHF + NonceLen int + OPRF oprf.Ciphersuite + OPRFPointLength int + func (p *Parameters) DeserializeKE1(input []byte) (*message.KE1, error) + func (p *Parameters) DeserializeKE2(input []byte) (*message.KE2, error) + func (p *Parameters) DeserializeKE3(input []byte) (*message.KE3, error) + func (p *Parameters) DeserializeRegistrationRecord(input []byte) (*message.RegistrationRecord, error) + func (p *Parameters) DeserializeRegistrationRequest(input []byte) (*message.RegistrationRequest, error) + func (p *Parameters) DeserializeRegistrationResponse(input []byte) (*message.RegistrationResponse, error) + func (p *Parameters) MaskResponse(key, nonce, in []byte) []byte