NewEntity returns a new OpenPGP entity.
()
| 142 | |
| 143 | // NewEntity returns a new OpenPGP entity. |
| 144 | func NewEntity() (*openpgp.Entity, error) { |
| 145 | name := "" // intentionally empty |
| 146 | comment := "camlistore" |
| 147 | email := "" // intentionally empty |
| 148 | return openpgp.NewEntity(name, comment, email, nil) |
| 149 | } |
| 150 | |
| 151 | func WriteKeyRing(w io.Writer, el openpgp.EntityList) error { |
| 152 | armoredWriter, err := armor.Encode(w, openpgp.PrivateKeyType, nil) |
no outgoing calls