Add getEntity and getEcryptionKeyIDs functions to key and message types respectively (#55)
* add getEntity function to key struct * add getEncryptionKeyIDs * add chengelog + bool return in getEncryptionKeyIDs * fix description
This commit is contained in:
parent
d1f6f7d718
commit
8d42a53775
5 changed files with 64 additions and 0 deletions
|
|
@ -354,6 +354,11 @@ func (key *Key) GetSHA256Fingerprints() (fingerprints []string) {
|
|||
return
|
||||
}
|
||||
|
||||
// GetEntity gets x/crypto Entity object.
|
||||
func (key *Key) GetEntity() *openpgp.Entity {
|
||||
return key.entity
|
||||
}
|
||||
|
||||
// --- Internal methods
|
||||
|
||||
// getSHA256FingerprintBytes computes the SHA256 fingerprint of a public key
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue