Documentation
¶
Index ¶
- Constants
- func GenerateG(G *big.Int, P, J, H *big.Int) (ok bool)
- func GenerateHG(H, G *big.Int, buf []byte, rand io.Reader, P, J *big.Int) (bufOut []byte, err error)
- func GenerateJ(J *big.Int, buf []byte, seed []byte, h hash.Hash, d Domain) (bufNew []byte, ok bool)
- func GeneratePQ(P, Q *big.Int, buf []byte, J *big.Int, seed []byte, h hash.Hash, d Domain) (bufNew []byte, count int, ok bool)
- func GenerateX(X *big.Int, Q *big.Int, upri, xkey []byte, h hash.Hash, d Domain)
- func GenerateY(Y *big.Int, P, Q, G, X *big.Int)
- func RegeneratePQ(domain Domain, J *big.Int, seed []byte, count int) (P, Q *big.Int, ok bool)
- func Sign(R, S *big.Int, P, Q, G, Y, X *big.Int, domain Domain, K *big.Int, data []byte, ...) (tmpBufOut []byte, ok bool)
- func Verify(P, Q, G, Y *big.Int, domain Domain, data []byte, R, S *big.Int) bool
- type Domain
- type GeneratedParameter
Constants ¶
View Source
const ( A2048B224SHA224 = iota // 권고 A2048B224SHA256 // A2048B224SHA224 와 강도 동일 A2048B256SHA256 // 효율성이 떨어지지만, 필요에 따라 이용 가능하다. A3072B256SHA256 // 권고 A1024B160HAS160 // 레거시 )
Variables ¶
This section is empty.
Functions ¶
func GenerateHG ¶
func GeneratePQ ¶
func RegeneratePQ ¶
Types ¶
type Domain ¶
type GeneratedParameter ¶
type GeneratedParameter struct { P *big.Int Q *big.Int G *big.Int J *big.Int Seed []byte Count int H *big.Int }
func GenerateParametersFast ¶
func GenerateParametersFast(rand io.Reader, d Domain) (generated GeneratedParameter, err error)
func GenerateParametersTTAK ¶
func GenerateParametersTTAK(rand io.Reader, domain Domain) (generated GeneratedParameter, err error)
Click to show internal directories.
Click to hide internal directories.