コード例 #1
0
ファイル: crypto.go プロジェクト: Braintreep/scramble
func SerializeKeys(entity *openpgp.Entity) (privKeyArmor, pubKeyArmor string, err error) {
	// First serialize the private parts.
	// NOTE: need to call this in order to initialize the newly created entities,
	// otherwise entity.Serialize() will fail
	// https://code.google.com/p/go/issues/detail?id=6483
	b := bytes.NewBuffer(nil)
	w, _ := armor.Encode(b, openpgp.PrivateKeyType, nil)
	err = entity.SerializePrivate(w, nil)
	if err != nil {
		return "", "", err
	}
	w.Close()
	privKeyArmor = b.String()

	// Serialize the public key.
	b.Reset()
	w, _ = armor.Encode(b, openpgp.PublicKeyType, nil)
	err = entity.Serialize(w)
	if err != nil {
		return "", "", err
	}
	w.Close()
	pubKeyArmor = b.String()

	return
}
コード例 #2
0
ファイル: testcrypto.go プロジェクト: bussiere/GoJackpoint
func main() {

	//openpgp.NewEntity("bussiere", "test", "[email protected]", nil)

	var entity *openpgp.Entity
	entity, err := openpgp.NewEntity("bussiere", "test", "[email protected]", nil)
	if err != nil {

	}

	var (
		buffer bytes.Buffer
	)

	entity.SerializePrivate(&buffer, nil)
	data := base64.StdEncoding.EncodeToString([]byte(buffer.String()))

	fmt.Printf("%q\n", data)

	buffer = bytes.Buffer
	entity.Serialize(&buffer)
	data2 := base64.StdEncoding.EncodeToString([]byte(buffer.String()))

	fmt.Printf("%q\n", data2)

	buffer = bytes.Buffer
	entity.PrivateKey.Serialize(&buffer)
	data3 := base64.StdEncoding.EncodeToString([]byte(buffer.String()))

	fmt.Printf("%q\n", data3)

	buffer = bytes.Buffer
	entity.PrimaryKey.Serialize(&buffer)
	data4 := base64.StdEncoding.EncodeToString([]byte(buffer.String()))

	fmt.Printf("%q\n", data4)

	//fmt.Printf(buffer.String())

	// "xcLYBFFBjX0BB/9iTV9vRbVIEr8g5/K1QOtDhwrn6S7DWkJwz5K64trO0LbBWHzAThjCb3yeZPMwl92ZyeQAKT4LW7gjXNc6YJeq

	//"xcLYBFFBjaMBCADg3+lpaFMBJGRwRzqaNc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o/VpqvY/4erz+QT/gKGp1n3F3AnddzGcZdYj5k1KfINfkfNp+NPvepIjbUwq06wyPOLPrSNcqyScjhYDRAZNUTxGFABd7bUQARAQAB"

}
コード例 #3
0
ファイル: signer.go プロジェクト: pruthvirajsinh/PrcIdSigner
//PubEntToAsciiArmor creates ASscii Armor from pubEnt of type openpgp.Entity
func PubEntToAsciiArmor(pubEnt openpgp.Entity) (asciiEntity string, err error) {
	gotWriter := bytes.NewBuffer(nil)
	wr, errEncode := armor.Encode(gotWriter, openpgp.PublicKeyType, nil)
	if errEncode != nil {
		//		fmt.Println("Encoding Armor ", errEncode.Error())
		err = errEncode
		return
	}
	errSerial := pubEnt.Serialize(wr)
	if errSerial != nil {
		//		fmt.Println("Serializing PubKey ", errSerial.Error())
	}
	errClosing := wr.Close()
	if errClosing != nil {
		//		fmt.Println("Closing writer ", errClosing.Error())
	}
	asciiEntity = gotWriter.String()
	return
}
コード例 #4
0
ファイル: keymgr.go プロジェクト: postfix/nyms-agent
func AddPublicKey(e *openpgp.Entity) error {
	return serializeKey(e, publicKeyringFilename, func(w io.Writer) error {
		return e.Serialize(w)
	})
}
コード例 #5
0
ファイル: keymgr.go プロジェクト: postfix/nyms-agent
func addSecretKey(e *openpgp.Entity) error {
	return serializeKey(e, secretKeyringFilename, func(w io.Writer) error {
		return e.SerializePrivate(w, nil)
	})
}
コード例 #6
0
ファイル: keymgr.go プロジェクト: postfix/nyms-agent
func ArmorSecretKey(e *openpgp.Entity) (string, error) {
	return exportArmoredKey(e, secretKeyArmorHeader, func(w io.Writer) error {
		return e.SerializePrivate(w, nil)
	})
}
コード例 #7
0
ファイル: keymgr.go プロジェクト: postfix/nyms-agent
func ArmorPublicKey(e *openpgp.Entity) (string, error) {
	return exportArmoredKey(e, publicKeyArmorHeader, func(w io.Writer) error {
		return e.Serialize(w)
	})
}