core

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: 3 Imported by: 0

Documentation

Overview

Package core provides parameter sets and validation for kMOSAIC.

Index

Constants

This section is empty.

Variables

View Source
var MOS128Params = kmosaic.MOSAICParams{
	Level: kmosaic.MOS128,
	SLSS: kmosaic.SLSSParams{
		N:     512,
		M:     384,
		Q:     12289,
		W:     64,
		Sigma: 3.19,
	},
	TDD: kmosaic.TDDParams{
		N:     24,
		R:     6,
		Q:     7681,
		Sigma: 2.0,
	},
	EGRW: kmosaic.EGRWParams{
		P: 1021,
		K: 128,
	},
}

MOS128Params is the parameter set for 128-bit post-quantum security.

View Source
var MOS256Params = kmosaic.MOSAICParams{
	Level: kmosaic.MOS256,
	SLSS: kmosaic.SLSSParams{
		N:     1024,
		M:     768,
		Q:     12289,
		W:     128,
		Sigma: 3.19,
	},
	TDD: kmosaic.TDDParams{
		N:     36,
		R:     9,
		Q:     7681,
		Sigma: 2.0,
	},
	EGRW: kmosaic.EGRWParams{
		P: 2039,
		K: 256,
	},
}

MOS256Params is the parameter set for 256-bit post-quantum security.

Functions

func GetParams

func GetParams(level kmosaic.SecurityLevel) (kmosaic.MOSAICParams, error)

GetParams returns the parameter set for the given security level.

func ValidateParams

func ValidateParams(params kmosaic.MOSAICParams) error

ValidateParams validates the parameter set for security and consistency.

Types

This section is empty.

Jump to

Keyboard shortcuts

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