csidh

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CsidhNike

type CsidhNike struct{}
var NOBS_CSIDH512Scheme *CsidhNike

CSIDHScheme is the nobs CSIDH-512 NIKE.

func (CsidhNike) Blind

func (e CsidhNike) Blind(groupMember nike.PublicKey, blindingFactor nike.PrivateKey) (blindedGroupMember nike.PublicKey)

func (*CsidhNike) DerivePublicKey

func (e *CsidhNike) DerivePublicKey(privKey nike.PrivateKey) nike.PublicKey

func (*CsidhNike) DeriveSecret

func (e *CsidhNike) DeriveSecret(privKey nike.PrivateKey, pubKey nike.PublicKey) []byte

func (*CsidhNike) GenerateKeyPair

func (e *CsidhNike) GenerateKeyPair() (nike.PublicKey, nike.PrivateKey, error)

func (*CsidhNike) GenerateKeyPairFromEntropy

func (e *CsidhNike) GenerateKeyPairFromEntropy(rng io.Reader) (nike.PublicKey, nike.PrivateKey, error)

func (*CsidhNike) GeneratePrivateKey

func (e *CsidhNike) GeneratePrivateKey(rng io.Reader) nike.PrivateKey

func (*CsidhNike) Name

func (e *CsidhNike) Name() string

func (*CsidhNike) NewEmptyPrivateKey

func (e *CsidhNike) NewEmptyPrivateKey() nike.PrivateKey

func (*CsidhNike) NewEmptyPublicKey

func (e *CsidhNike) NewEmptyPublicKey() nike.PublicKey

func (*CsidhNike) PrivateKeySize

func (e *CsidhNike) PrivateKeySize() int

func (*CsidhNike) PublicKeySize

func (e *CsidhNike) PublicKeySize() int

func (*CsidhNike) UnmarshalBinaryPrivateKey

func (e *CsidhNike) UnmarshalBinaryPrivateKey(b []byte) (nike.PrivateKey, error)

func (*CsidhNike) UnmarshalBinaryPublicKey

func (e *CsidhNike) UnmarshalBinaryPublicKey(b []byte) (nike.PublicKey, 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) Blind

func (p *PublicKey) Blind(blindingFactor nike.PrivateKey) error

func (*PublicKey) Bytes

func (p *PublicKey) Bytes() []byte

func (*PublicKey) FromBytes

func (p *PublicKey) FromBytes(b []byte) error

func (*PublicKey) MarshalBinary

func (p *PublicKey) MarshalBinary() ([]byte, error)

MarshalBinary is an implementation of a method on the BinaryMarshaler interface defined in https://golang.org/pkg/encoding/

func (*PublicKey) MarshalText

func (p *PublicKey) MarshalText() ([]byte, error)

MarshalText is an implementation of a method on the TextMarshaler interface defined in https://golang.org/pkg/encoding/

func (*PublicKey) Reset

func (p *PublicKey) Reset()

func (*PublicKey) UnmarshalBinary

func (p *PublicKey) UnmarshalBinary(data []byte) error

UnmarshalBinary is an implementation of a method on the BinaryUnmarshaler interface defined in https://golang.org/pkg/encoding/

func (*PublicKey) UnmarshalText

func (p *PublicKey) UnmarshalText(data []byte) error

UnmarshalText is an implementation of a method on the TextUnmarshaler interface defined in https://golang.org/pkg/encoding/

Jump to

Keyboard shortcuts

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