Exemplo n.º 1
0
func produceAltKeyPair() *config.KeyPair {
	keyPair := new(config.KeyPair)
	keyPair.Gen(altSuite, random.Stream)
	return keyPair
}
Exemplo n.º 2
0
func generateKeyPair() *config.KeyPair {
	keypair := new(config.KeyPair)
	keypair.Gen(testSuite, random.Stream)
	return keypair
}
Exemplo n.º 3
0
// KeyPair will generate a keypair (private + public key) from a given suite
func KeyPair(s abstract.Suite) config.KeyPair {
	kp := config.KeyPair{}
	kp.Gen(s, random.Stream)
	return kp
}
Exemplo n.º 4
0
// Used to initialize the key pairs.
func produceKeyPair() *config.KeyPair {
	keyPair := new(config.KeyPair)
	keyPair.Gen(KEY_SUITE, random.Stream)
	return keyPair
}