Documentation ¶
Overview ¶
Package kcdsattak implements functions what generate the KCDSA parameters as defined in TTAK.KO-12.0001/R4
Index ¶
- Variables
- func GenerateG(P, J *big.Int, H []byte) (G *big.Int, err error)
- func GenerateHG(rand io.Reader, P, J *big.Int) (H []byte, G *big.Int, err error)
- func GenerateJ(seed []byte, domain Domain) (J *big.Int, err error)
- func GeneratePQ(J *big.Int, seed []byte, domain Domain) (p, q *big.Int, count int, err error)
- func GenerateXYZ(P, Q, G *big.Int, userProvidedRandomInput []byte, xkey []byte, domain Domain) (X, Y, Z *big.Int, xkeyNext []byte, err error)
- func PPGF(seed []byte, nBits int, domain Domain) []byte
- type Domain
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrUseAnotherSeed = errors.New("krypto/kcdsa/kcdsattak: use another seed") ErrUseAnotherH = errors.New("krypto/kcdsa/kcdsattak: use another H") ErrWrongSeed = errors.New("krypto/kcdsa/kcdsattak: wrong seed length") ErrShortXKey = errors.New("krypto/kcdsa/kcdsattak: XKEY is too short") )
Functions ¶
func GenerateHG ¶
Generate H, G, defined in TTAK.KO-12.0001/R4
func GeneratePQ ¶
Generate P, Q, defined in TTAK.KO-12.0001/R4
Types ¶
Click to show internal directories.
Click to hide internal directories.