Revert erroneous fix and fix #287
This commit is contained in:
parent
601673808d
commit
3b238c5a81
1 changed files with 4 additions and 4 deletions
|
|
@ -10,6 +10,10 @@ import (
|
|||
)
|
||||
|
||||
type Key struct {
|
||||
kr crypto.KeyRing
|
||||
}
|
||||
|
||||
func (k *Key) GetKeyID() string {
|
||||
if len(k.kr.GetEntities()) > 0 {
|
||||
return k.kr.GetEntities()[0].PrimaryKey.KeyIdShortString()
|
||||
} else {
|
||||
|
|
@ -17,10 +21,6 @@ type Key struct {
|
|||
}
|
||||
}
|
||||
|
||||
func (k *Key) GetKeyID() string {
|
||||
return k.kr.FirstKeyID
|
||||
}
|
||||
|
||||
func (k *Key) Encrypt(plaintext []byte, armor bool) []byte {
|
||||
var b bytes.Buffer
|
||||
var w io.WriteCloser
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue