Documentation ¶
Index ¶
- Variables
- type CsidhNike
- func (e CsidhNike) Blind(groupMember nike.PublicKey, blindingFactor nike.PrivateKey) (blindedGroupMember nike.PublicKey)
- func (e *CsidhNike) DerivePublicKey(privKey nike.PrivateKey) nike.PublicKey
- func (e *CsidhNike) DeriveSecret(privKey nike.PrivateKey, pubKey nike.PublicKey) []byte
- func (e *CsidhNike) GenerateKeyPair() (nike.PublicKey, nike.PrivateKey, error)
- func (e *CsidhNike) GenerateKeyPairFromEntropy(rng io.Reader) (nike.PublicKey, nike.PrivateKey, error)
- func (e *CsidhNike) GeneratePrivateKey(rng io.Reader) nike.PrivateKey
- func (e *CsidhNike) Name() string
- func (e *CsidhNike) NewEmptyPrivateKey() nike.PrivateKey
- func (e *CsidhNike) NewEmptyPublicKey() nike.PublicKey
- func (e *CsidhNike) PrivateKeySize() int
- func (e *CsidhNike) PublicKeySize() int
- func (e *CsidhNike) UnmarshalBinaryPrivateKey(b []byte) (nike.PrivateKey, error)
- func (e *CsidhNike) UnmarshalBinaryPublicKey(b []byte) (nike.PublicKey, error)
- type PrivateKey
- func (p *PrivateKey) Bytes() []byte
- func (p *PrivateKey) FromBytes(b []byte) error
- func (p *PrivateKey) MarshalBinary() ([]byte, error)
- func (p *PrivateKey) MarshalText() ([]byte, error)
- func (p *PrivateKey) Public() nike.PublicKey
- func (p *PrivateKey) Reset()
- func (p *PrivateKey) UnmarshalBinary(data []byte) error
- func (p *PrivateKey) UnmarshalText(data []byte) error
- type PublicKey
- func (p *PublicKey) Blind(blindingFactor nike.PrivateKey) error
- func (p *PublicKey) Bytes() []byte
- func (p *PublicKey) FromBytes(b []byte) error
- func (p *PublicKey) MarshalBinary() ([]byte, error)
- func (p *PublicKey) MarshalText() ([]byte, error)
- func (p *PublicKey) Reset()
- func (p *PublicKey) UnmarshalBinary(data []byte) error
- func (p *PublicKey) UnmarshalText(data []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var NOBS_CSIDH512Scheme nike.Scheme
CSIDHScheme is the nobs CSIDH-512 NIKE.
Functions ¶
This section is empty.
Types ¶
type CsidhNike ¶
type CsidhNike struct{}
func (*CsidhNike) DerivePublicKey ¶
func (e *CsidhNike) DerivePublicKey(privKey nike.PrivateKey) nike.PublicKey
func (*CsidhNike) DeriveSecret ¶
func (*CsidhNike) GenerateKeyPair ¶
func (*CsidhNike) GenerateKeyPairFromEntropy ¶
func (*CsidhNike) GeneratePrivateKey ¶
func (e *CsidhNike) GeneratePrivateKey(rng io.Reader) nike.PrivateKey
func (*CsidhNike) NewEmptyPrivateKey ¶
func (e *CsidhNike) NewEmptyPrivateKey() nike.PrivateKey
func (*CsidhNike) NewEmptyPublicKey ¶
func (*CsidhNike) PrivateKeySize ¶
func (*CsidhNike) PublicKeySize ¶
func (*CsidhNike) UnmarshalBinaryPrivateKey ¶
func (e *CsidhNike) UnmarshalBinaryPrivateKey(b []byte) (nike.PrivateKey, error)
type PrivateKey ¶
type PrivateKey struct {
// contains filtered or unexported fields
}
func (*PrivateKey) Bytes ¶
func (p *PrivateKey) Bytes() []byte
func (*PrivateKey) FromBytes ¶
func (p *PrivateKey) FromBytes(b []byte) error
func (*PrivateKey) MarshalBinary ¶
func (p *PrivateKey) MarshalBinary() ([]byte, error)
func (*PrivateKey) MarshalText ¶
func (p *PrivateKey) MarshalText() ([]byte, error)
func (*PrivateKey) Public ¶
func (p *PrivateKey) Public() nike.PublicKey
func (*PrivateKey) Reset ¶
func (p *PrivateKey) Reset()
func (*PrivateKey) UnmarshalBinary ¶
func (p *PrivateKey) UnmarshalBinary(data []byte) error
func (*PrivateKey) UnmarshalText ¶
func (p *PrivateKey) UnmarshalText(data []byte) error
type PublicKey ¶
type PublicKey struct {
// contains filtered or unexported fields
}
func (*PublicKey) MarshalBinary ¶
MarshalBinary is an implementation of a method on the BinaryMarshaler interface defined in https://golang.org/pkg/encoding/
func (*PublicKey) MarshalText ¶
MarshalText is an implementation of a method on the TextMarshaler interface defined in https://golang.org/pkg/encoding/
func (*PublicKey) UnmarshalBinary ¶
UnmarshalBinary is an implementation of a method on the BinaryUnmarshaler interface defined in https://golang.org/pkg/encoding/
func (*PublicKey) UnmarshalText ¶
UnmarshalText is an implementation of a method on the TextUnmarshaler interface defined in https://golang.org/pkg/encoding/
Click to show internal directories.
Click to hide internal directories.