Documentation ¶
Index ¶
- func FactoryDetect(source io.Reader) (bool, error)
- func FactoryDetectFast(source io.Reader) (bool, error)
- func PeriodDetect(source io.Reader) (bool, error)
- func PeriodDetectFast(source io.Reader) (bool, error)
- func PowerOnDetect(source io.Reader) (bool, error)
- func PowerOnDetectFast(source io.Reader) (bool, error)
- func Round12(data []byte) []*randomness.TestResult
- func Round15(data []byte) []*randomness.TestResult
- func SingleDetect(source io.Reader, numByte int) (bool, error)
- func Threshold(s int) int
- func ThresholdQ(qValues []float64) float64
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FactoryDetect ¶
FactoryDetect 出厂检测,15种检测,每组 10^6比特,分50组 source: 随机源
func FactoryDetectFast ¶
FactoryDetectFast 出厂检测,15种检测,每组 10^6比特,分50组 source: 随机源
func PeriodDetect ¶
PeriodDetect 周期性检测,除去离散傅里叶检测、线型复杂度检测、通用统计的12种检测 检测 20组,每组 20000比特 source: 随机源
func PeriodDetectFast ¶
PeriodDetectFast 周期性检测,除去离散傅里叶检测、线型复杂度检测、通用统计的12种检测 检测 20组,每组 20000比特 source: 随机源
func PowerOnDetect ¶
PowerOnDetect 上电自检,15种检测,每组 10^6比特,分20组 source: 随机源
func PowerOnDetectFast ¶
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 ¶
SingleDetect 单次检测,单根据实际应用时每次才随机数的大小确定,检测采用扑克检测 source: 随机源 numByte: 采集字节数,不能小于16
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.