elliptic

package
v0.0.0-...-52ff330 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func P384

func P384() el.Curve

Types

type EllipticSha256HkdfHmac

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

func NewP256Sha256HkdfHmac

func NewP256Sha256HkdfHmac(mhf suite.MHF) *EllipticSha256HkdfHmac

func NewP384Sha256HkdfHmac

func NewP384Sha256HkdfHmac(mhf suite.MHF) *EllipticSha256HkdfHmac

Go's standard P-384 isn't constant time at the time of writing.

func (EllipticSha256HkdfHmac) ClearCofactor

func (c EllipticSha256HkdfHmac) ClearCofactor(elem suite.Element) suite.Element

func (EllipticSha256HkdfHmac) CofactorScalar

func (c EllipticSha256HkdfHmac) CofactorScalar() suite.Scalar

func (EllipticSha256HkdfHmac) DeriveKey

func (s EllipticSha256HkdfHmac) DeriveKey(salt, ikm, info []byte) []byte

func (EllipticSha256HkdfHmac) Element

func (c EllipticSha256HkdfHmac) Element() suite.Element

func (EllipticSha256HkdfHmac) ElementLen

func (c EllipticSha256HkdfHmac) ElementLen() int

func (EllipticSha256HkdfHmac) Group

func (EllipticSha256HkdfHmac) Hash

func (s EllipticSha256HkdfHmac) Hash() hash.Hash

func (EllipticSha256HkdfHmac) HashDigest

func (s EllipticSha256HkdfHmac) HashDigest(content []byte) []byte

func (EllipticSha256HkdfHmac) HashSize

func (s EllipticSha256HkdfHmac) HashSize() int

func (EllipticSha256HkdfHmac) M

func (c EllipticSha256HkdfHmac) M() suite.Element

TO-DO: 5. Per-User M and N in SPAKE2 RFC

func (EllipticSha256HkdfHmac) Mac

func (s EllipticSha256HkdfHmac) Mac(content, secret []byte) []byte

func (EllipticSha256HkdfHmac) MacEqual

func (s EllipticSha256HkdfHmac) MacEqual(a, b []byte) bool

func (EllipticSha256HkdfHmac) Mhf

func (s EllipticSha256HkdfHmac) Mhf(password, salt []byte) ([]byte, error)

func (EllipticSha256HkdfHmac) N

func (c EllipticSha256HkdfHmac) N() suite.Element

TO-DO: 5. Per-User M and N in SPAKE2 RFC

func (EllipticSha256HkdfHmac) Order

func (c EllipticSha256HkdfHmac) Order() *big.Int

func (EllipticSha256HkdfHmac) RandomElement

func (c EllipticSha256HkdfHmac) RandomElement() (suite.Element, error)

func (EllipticSha256HkdfHmac) RandomScalar

func (c EllipticSha256HkdfHmac) RandomScalar() (suite.Scalar, error)

func (EllipticSha256HkdfHmac) Scalar

func (c EllipticSha256HkdfHmac) Scalar() suite.Scalar

func (EllipticSha256HkdfHmac) ScalarLen

func (c EllipticSha256HkdfHmac) ScalarLen() int

func (EllipticSha256HkdfHmac) String

func (c EllipticSha256HkdfHmac) String() string

type EllipticSha512HkdfHmac

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

func NewP256Sha512HkdfHmac

func NewP256Sha512HkdfHmac(mhf suite.MHF) *EllipticSha512HkdfHmac

func NewP384Sha512HkdfHmac

func NewP384Sha512HkdfHmac(mhf suite.MHF) *EllipticSha512HkdfHmac

Go's standard P-384 isn't constant time at the time of writing.

func (EllipticSha512HkdfHmac) ClearCofactor

func (c EllipticSha512HkdfHmac) ClearCofactor(elem suite.Element) suite.Element

func (EllipticSha512HkdfHmac) CofactorScalar

func (c EllipticSha512HkdfHmac) CofactorScalar() suite.Scalar

func (EllipticSha512HkdfHmac) DeriveKey

func (s EllipticSha512HkdfHmac) DeriveKey(salt, ikm, info []byte) []byte

func (EllipticSha512HkdfHmac) Element

func (c EllipticSha512HkdfHmac) Element() suite.Element

func (EllipticSha512HkdfHmac) ElementLen

func (c EllipticSha512HkdfHmac) ElementLen() int

func (EllipticSha512HkdfHmac) Group

func (EllipticSha512HkdfHmac) Hash

func (s EllipticSha512HkdfHmac) Hash() hash.Hash

func (EllipticSha512HkdfHmac) HashDigest

func (s EllipticSha512HkdfHmac) HashDigest(content []byte) []byte

func (EllipticSha512HkdfHmac) HashSize

func (s EllipticSha512HkdfHmac) HashSize() int

func (EllipticSha512HkdfHmac) M

func (c EllipticSha512HkdfHmac) M() suite.Element

TO-DO: 5. Per-User M and N in SPAKE2 RFC

func (EllipticSha512HkdfHmac) Mac

func (s EllipticSha512HkdfHmac) Mac(content, secret []byte) []byte

func (EllipticSha512HkdfHmac) MacEqual

func (s EllipticSha512HkdfHmac) MacEqual(a, b []byte) bool

func (EllipticSha512HkdfHmac) Mhf

func (s EllipticSha512HkdfHmac) Mhf(password, salt []byte) ([]byte, error)

func (EllipticSha512HkdfHmac) N

func (c EllipticSha512HkdfHmac) N() suite.Element

TO-DO: 5. Per-User M and N in SPAKE2 RFC

func (EllipticSha512HkdfHmac) Order

func (c EllipticSha512HkdfHmac) Order() *big.Int

func (EllipticSha512HkdfHmac) RandomElement

func (c EllipticSha512HkdfHmac) RandomElement() (suite.Element, error)

func (EllipticSha512HkdfHmac) RandomScalar

func (c EllipticSha512HkdfHmac) RandomScalar() (suite.Scalar, error)

func (EllipticSha512HkdfHmac) Scalar

func (c EllipticSha512HkdfHmac) Scalar() suite.Scalar

func (EllipticSha512HkdfHmac) ScalarLen

func (c EllipticSha512HkdfHmac) ScalarLen() int

func (EllipticSha512HkdfHmac) String

func (c EllipticSha512HkdfHmac) String() string

Jump to

Keyboard shortcuts

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