Documentation ¶
Index ¶
- func P384() el.Curve
- type EllipticSha256HkdfHmac
- func (c EllipticSha256HkdfHmac) ClearCofactor(elem suite.Element) suite.Element
- func (c EllipticSha256HkdfHmac) CofactorScalar() suite.Scalar
- func (s EllipticSha256HkdfHmac) DeriveKey(salt, ikm, info []byte) []byte
- func (c EllipticSha256HkdfHmac) Element() suite.Element
- func (c EllipticSha256HkdfHmac) ElementLen() int
- func (s EllipticSha256HkdfHmac) Group() suite.Group
- func (s EllipticSha256HkdfHmac) Hash() hash.Hash
- func (s EllipticSha256HkdfHmac) HashDigest(content []byte) []byte
- func (s EllipticSha256HkdfHmac) HashSize() int
- func (c EllipticSha256HkdfHmac) M() suite.Element
- func (s EllipticSha256HkdfHmac) Mac(content, secret []byte) []byte
- func (s EllipticSha256HkdfHmac) MacEqual(a, b []byte) bool
- func (s EllipticSha256HkdfHmac) Mhf(password, salt []byte) ([]byte, error)
- func (c EllipticSha256HkdfHmac) N() suite.Element
- func (c EllipticSha256HkdfHmac) Order() *big.Int
- func (c EllipticSha256HkdfHmac) RandomElement() (suite.Element, error)
- func (c EllipticSha256HkdfHmac) RandomScalar() (suite.Scalar, error)
- func (c EllipticSha256HkdfHmac) Scalar() suite.Scalar
- func (c EllipticSha256HkdfHmac) ScalarLen() int
- func (c EllipticSha256HkdfHmac) String() string
- type EllipticSha512HkdfHmac
- func (c EllipticSha512HkdfHmac) ClearCofactor(elem suite.Element) suite.Element
- func (c EllipticSha512HkdfHmac) CofactorScalar() suite.Scalar
- func (s EllipticSha512HkdfHmac) DeriveKey(salt, ikm, info []byte) []byte
- func (c EllipticSha512HkdfHmac) Element() suite.Element
- func (c EllipticSha512HkdfHmac) ElementLen() int
- func (s EllipticSha512HkdfHmac) Group() suite.Group
- func (s EllipticSha512HkdfHmac) Hash() hash.Hash
- func (s EllipticSha512HkdfHmac) HashDigest(content []byte) []byte
- func (s EllipticSha512HkdfHmac) HashSize() int
- func (c EllipticSha512HkdfHmac) M() suite.Element
- func (s EllipticSha512HkdfHmac) Mac(content, secret []byte) []byte
- func (s EllipticSha512HkdfHmac) MacEqual(a, b []byte) bool
- func (s EllipticSha512HkdfHmac) Mhf(password, salt []byte) ([]byte, error)
- func (c EllipticSha512HkdfHmac) N() suite.Element
- func (c EllipticSha512HkdfHmac) Order() *big.Int
- func (c EllipticSha512HkdfHmac) RandomElement() (suite.Element, error)
- func (c EllipticSha512HkdfHmac) RandomScalar() (suite.Scalar, error)
- func (c EllipticSha512HkdfHmac) Scalar() suite.Scalar
- func (c EllipticSha512HkdfHmac) ScalarLen() int
- func (c EllipticSha512HkdfHmac) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 (EllipticSha256HkdfHmac) CofactorScalar ¶
func (EllipticSha256HkdfHmac) DeriveKey ¶
func (s EllipticSha256HkdfHmac) DeriveKey(salt, ikm, info []byte) []byte
func (EllipticSha256HkdfHmac) ElementLen ¶
func (c EllipticSha256HkdfHmac) ElementLen() int
func (EllipticSha256HkdfHmac) Group ¶
func (s EllipticSha256HkdfHmac) Group() suite.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) 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) RandomElement ¶
func (EllipticSha256HkdfHmac) RandomScalar ¶
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 (EllipticSha512HkdfHmac) CofactorScalar ¶
func (EllipticSha512HkdfHmac) DeriveKey ¶
func (s EllipticSha512HkdfHmac) DeriveKey(salt, ikm, info []byte) []byte
func (EllipticSha512HkdfHmac) ElementLen ¶
func (c EllipticSha512HkdfHmac) ElementLen() int
func (EllipticSha512HkdfHmac) Group ¶
func (s EllipticSha512HkdfHmac) Group() suite.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) 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) RandomElement ¶
func (EllipticSha512HkdfHmac) RandomScalar ¶
Click to show internal directories.
Click to hide internal directories.