detect

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FactoryDetect

func FactoryDetect(source io.Reader) (bool, error)

FactoryDetect 出厂检测,15种检测,每组 10^6比特,分50组 source: 随机源

func FactoryDetectFast

func FactoryDetectFast(source io.Reader) (bool, error)

FactoryDetectFast 出厂检测,15种检测,每组 10^6比特,分50组 source: 随机源

func PeriodDetect

func PeriodDetect(source io.Reader) (bool, error)

PeriodDetect 周期性检测,除去离散傅里叶检测、线型复杂度检测、通用统计的12种检测 检测 20组,每组 20000比特 source: 随机源

func PeriodDetectFast

func PeriodDetectFast(source io.Reader) (bool, error)

PeriodDetectFast 周期性检测,除去离散傅里叶检测、线型复杂度检测、通用统计的12种检测 检测 20组,每组 20000比特 source: 随机源

func PowerOnDetect

func PowerOnDetect(source io.Reader) (bool, error)

PowerOnDetect 上电自检,15种检测,每组 10^6比特,分20组 source: 随机源

func PowerOnDetectFast

func PowerOnDetectFast(source io.Reader) (bool, error)

PowerOnDetectFast 上电自检,15种检测,每组 10^6比特,分20组 source: 随机源

func Round12

func Round12(data []byte) []*randomness.TestResult

Round12 12种方法测试轮(除去:离散傅里叶检测、线型复杂度检测、通用统计) data: 待检测数据,推荐长度: 20000 bit => 2,500

func Round15

func Round15(data []byte) []*randomness.TestResult

Round15 15种方法测试轮 data: 待检测数据,推荐长度: 10^6 bit => 125,000 byte

func SingleDetect

func SingleDetect(source io.Reader, numByte int) (bool, error)

SingleDetect 单次检测,单根据实际应用时每次才随机数的大小确定,检测采用扑克检测 source: 随机源 numByte: 采集字节数,不能小于16

func Threshold

func Threshold(s int) int

Threshold 样本通过检测判定数量 s: 检测样本数 return 通过检测需要的样本数量

func ThresholdQ

func ThresholdQ(qValues []float64) float64

ThresholdQ 样本分布均匀性 (k=10)

Types

This section is empty.

Jump to

Keyboard shortcuts

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