Add ToPublic method to get a public key object from a private key (#65)
This commit is contained in:
parent
48f05401ce
commit
979fdb3f4b
3 changed files with 36 additions and 0 deletions
|
|
@ -32,6 +32,11 @@ EncryptBinaryMessageArmored(key string, data []byte) (string, error)
|
|||
DecryptBinaryMessageArmored(privateKey string, passphrase []byte, ciphertext string) ([]byte, error)
|
||||
```
|
||||
|
||||
- Method to derive a public key object from a private key
|
||||
```go
|
||||
(key *Key) ToPublic() (publicKey *Key, err error)
|
||||
```
|
||||
|
||||
### Changed
|
||||
- Improved key and message armoring testing
|
||||
- `EncryptSessionKey` now creates encrypted key packets for each valid encryption key in the provided keyring.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue