tdd

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package tdd implements the Tensor Decomposition Distinguishing problem for kMOSAIC.

Index

Constants

View Source
const (
	DomainFactors = "kmosaic-tdd-factors-v1"
	DomainNoise   = "kmosaic-tdd-noise-v1"
	DomainMask    = "kmosaic-tdd-mask-v1"
	DomainHint    = "kmosaic-tdd-hint-v1"
	DomainFactorA = "kmosaic-tdd-factor-a-v1"
	DomainFactorB = "kmosaic-tdd-factor-b-v1"
	DomainFactorC = "kmosaic-tdd-factor-c-v1"
)

Variables

This section is empty.

Functions

func Decrypt

Decrypt decrypts a TDD ciphertext

func DeserializePublicKey added in v1.0.1

func DeserializePublicKey(data []byte) (*kmosaic.TDDPublicKey, error)

DeserializePublicKey deserializes TDD public key

func Encrypt

func Encrypt(pk kmosaic.TDDPublicKey, message []byte, params kmosaic.TDDParams, randomness []byte) (*kmosaic.TDDCiphertext, error)

Encrypt encrypts a message fragment using TDD

func KeyGen

func KeyGen(params kmosaic.TDDParams, seed []byte) (*kmosaic.TDDKeyPair, error)

KeyGen generates TDD key pair

func SerializePublicKey

func SerializePublicKey(pk kmosaic.TDDPublicKey) []byte

SerializePublicKey serializes TDD public key

Types

This section is empty.

Jump to

Keyboard shortcuts

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