add config to key generation

This commit is contained in:
zhj4478 2018-06-06 14:05:57 -07:00
parent edf3da1573
commit 60d877f35d
2 changed files with 9 additions and 2 deletions

View file

@ -22,7 +22,7 @@ func ArmorKey(input []byte) (string, error) {
// ArmorWithType make bytes input to armor format
func ArmorWithType(input []byte, armorType string) (string, error) {
var b bytes.Buffer
w, err := armor.Encode(&b, armorType, nil)
w, err := armor.Encode(&b, armorType, armorHeader)
if err != nil {
return "", err
}