Prepare release 2.7.5 with packet API (#269)
Adds the following API functions: - API to get signature key IDs for mobile: func (msg *PGPMessage) GetHexSignatureKeyIDsJson() []byte - API to get encryption key IDs for mobile: func (msg *PGPMessage) GetHexEncryptionKeyIDsJson() []byte - API to get the number of key packets in a PGP message: func (msg *PGPSplitMessage) GetNumberOfKeyPackets() (int, error) - API in package `helper` to encrypt a PGP message to an additional key: func EncryptPGPMessageToAdditionalKey(messageToModify *crypto.PGPSplitMessage, keyRing *crypto.KeyRing, additionalKey *crypto.KeyRing) error
This commit is contained in:
parent
02a4599829
commit
c6a3058e2e
7 changed files with 157 additions and 2 deletions
20
CHANGELOG.md
20
CHANGELOG.md
|
|
@ -4,6 +4,26 @@ All notable changes to this project will be documented in this file.
|
|||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## [2.7.5] 2023-31-01
|
||||
|
||||
### Added
|
||||
- API to get signature key IDs for mobile:
|
||||
```go
|
||||
func (msg *PGPMessage) GetHexSignatureKeyIDsJson() []byte
|
||||
```
|
||||
- API to get encryption key IDs for mobile:
|
||||
```go
|
||||
func (msg *PGPMessage) GetHexEncryptionKeyIDsJson() []byte
|
||||
```
|
||||
- API to get the number of key packets in a PGP message:
|
||||
```go
|
||||
func (msg *PGPSplitMessage) GetNumberOfKeyPackets() (int, error)
|
||||
```
|
||||
- API in package `helper` to encrypt a PGP message to an additional key:
|
||||
```go
|
||||
func EncryptPGPMessageToAdditionalKey(messageToModify *crypto.PGPSplitMessage, keyRing *crypto.KeyRing, additionalKey *crypto.KeyRing) error
|
||||
```
|
||||
|
||||
## [2.7.4] 2023-10-27
|
||||
### Fixed
|
||||
- Ensure that `(SessionKey).Decrypt` functions return an error if no integrity protection is present in the encrypted input. To protect SEIPDv1 encrypted messages, SED packets must not be allowed in decryption.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue