Documentation ¶
Index ¶
- type KEMPrivateKeyV1
- type KEMPublicKeyV1
- type Message
- type PrivateKey
- type PrivateKeyV1
- type PublicKey
- type PublicKeyV1
- type Scheme
- func (s *Scheme[XOF, KEMPriv, KEMPub, SigPriv, SigPub]) CiphertextSize(numReaders, ptextLen int) int
- func (s *Scheme[XOF, KEMPriv, KEMPub, SigPriv, SigPub]) Decrypt(out []byte, private *PrivateKey[KEMPriv, SigPriv], writers []*SigPub, ...) (int, []byte, error)
- func (s *Scheme[XOF, KEMPriv, KEMPub, SigPriv, SigPub]) DerivePublic(priv PrivateKey[KEMPriv, SigPriv]) PublicKey[KEMPub, SigPub]
- func (s *Scheme[XOF, KEMPriv, KEMPub, SigPriv, SigPub]) Encrypt(out []byte, private *PrivateKey[KEMPriv, SigPriv], pubs []*KEMPub, ...) ([]byte, error)
- func (s *Scheme[XOF, KEMPriv, KEMPub, SigPriv, SigPub]) EncryptDet(out []byte, private *PrivateKey[KEMPriv, SigPriv], pubs []*KEMPub, ...) ([]byte, error)
- func (s *Scheme[XOF, KEMPriv, KEMPub, SigPriv, SigPub]) Generate(rng io.Reader) (retPub PublicKey[KEMPub, SigPub], retPriv PrivateKey[KEMPriv, SigPriv], ...)
- func (s *Scheme[XOF, KEMPriv, KEMPub, SigPriv, SigPub]) MarshalPublic(dst []byte, pub *PublicKey[KEMPub, SigPub])
- func (s *Scheme[XOF, KEMPriv, KEMPub, SigPriv, SigPub]) Overhead(numReaders int) int
- func (s *Scheme[XOF, KEMPriv, KEMPub, SigPriv, SigPub]) ParsePublic(x []byte) (ret PublicKey[KEMPub, SigPub], _ error)
- func (s *Scheme[XOF, KEMPriv, KEMPub, SigPriv, SigPub]) PlaintextSize(ctext []byte) (int, error)
- type SchemeV1
- type SignPrivateKeyV1
- type SignPublicKeyV1
- type XOFStateV1
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KEMPrivateKeyV1 ¶
type KEMPrivateKeyV1 = kem.DualKey[kem_x25519.PrivateKey, kem_sntrup.PrivateKey4591761]
type KEMPublicKeyV1 ¶
type KEMPublicKeyV1 = kem.DualKey[kem_x25519.PublicKey, kem_sntrup.PublicKey4591761]
type Message ¶
func ParseMessage ¶
type PrivateKey ¶
type PrivateKey[KEMPriv, SigPriv any] struct { KEM KEMPriv Sign SigPriv }
type PrivateKeyV1 ¶
type PrivateKeyV1 = PrivateKey[KEMPrivateKeyV1, SignPrivateKeyV1]
type PublicKeyV1 ¶
type PublicKeyV1 = PublicKey[KEMPublicKeyV1, SignPublicKeyV1]
type Scheme ¶
type Scheme[XOF, KEMPriv, KEMPub, SigPriv, SigPub any] struct { KEM kem.Scheme256[KEMPriv, KEMPub] Sign sign.Scheme[SigPriv, SigPub] AEAD aead.SUV256 XOF xof.Scheme[XOF] }
func (*Scheme[XOF, KEMPriv, KEMPub, SigPriv, SigPub]) CiphertextSize ¶
func (*Scheme[XOF, KEMPriv, KEMPub, SigPriv, SigPub]) DerivePublic ¶
func (s *Scheme[XOF, KEMPriv, KEMPub, SigPriv, SigPub]) DerivePublic(priv PrivateKey[KEMPriv, SigPriv]) PublicKey[KEMPub, SigPub]
func (*Scheme[XOF, KEMPriv, KEMPub, SigPriv, SigPub]) EncryptDet ¶
func (*Scheme[XOF, KEMPriv, KEMPub, SigPriv, SigPub]) MarshalPublic ¶
func (*Scheme[XOF, KEMPriv, KEMPub, SigPriv, SigPub]) ParsePublic ¶
type SchemeV1 ¶
type SchemeV1 = Scheme[XOFStateV1, KEMPrivateKeyV1, KEMPublicKeyV1, SignPrivateKeyV1, SignPublicKeyV1]
type SignPrivateKeyV1 ¶
type SignPrivateKeyV1 = sig_ed25519.PrivateKey
type SignPublicKeyV1 ¶
type SignPublicKeyV1 = sig_ed25519.PublicKey
type XOFStateV1 ¶
type XOFStateV1 = xof_sha3.SHAKE256State
Click to show internal directories.
Click to hide internal directories.