Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TypeToString map[Type]string = map[Type]string{ NULL_TYPE: "NULL", KYBER: "KYBER", DILITHIUM: "DILITHIUM", Ed25519: "ED25519", ANON: "ANON", }
View Source
var X []kyber.Point
Functions ¶
func Decrypt ¶
func Decrypt(e *EncryptedData, sks ...any) [][]byte
func GetKeyPair ¶
func GetKeyPair(keyType Type) *keys
Types ¶
type AnonEncrypt ¶
type AnonEncrypt interface { GenEncryptionKeys(keyNum int) (s *edwards25519.SuiteEd25519, X []kyber.Point, y []kyber.Scalar) Encrypt(X []kyber.Point, suite *edwards25519.SuiteEd25519, m []byte) []byte }
type EncryptedData ¶
type EncryptedData struct { X []kyber.Point // contains filtered or unexported fields }
func Encrypt ¶
func Encrypt(k *keys, keyNum int, msg []byte) *EncryptedData
func (*EncryptedData) GetCipherText ¶
func (e *EncryptedData) GetCipherText() []byte
func (*EncryptedData) GetSuite ¶
func (e *EncryptedData) GetSuite() *edwards25519.SuiteEd25519
func (*EncryptedData) GetX ¶
func (e *EncryptedData) GetX() []kyber.Point
type KeyGen ¶
type KeyGen interface { NewKeyPair(keyType Type) GetPrivate() *privateKey GetPublic() *publicKey }
type KyberKeyPair ¶
Click to show internal directories.
Click to hide internal directories.