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:
Lukas Burkhalter 2024-02-07 08:09:26 +01:00 committed by GitHub
parent 02a4599829
commit c6a3058e2e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 157 additions and 2 deletions

View file

@ -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.