add config to key generation
This commit is contained in:
parent
edf3da1573
commit
60d877f35d
2 changed files with 9 additions and 2 deletions
2
armor.go
2
armor.go
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue