Add keyRing.GetVerifiedSignatureTimestamp()

Add a function to verify a detached signature and access
its creation time.
This commit is contained in:
marin thiercelin 2021-12-20 15:45:14 +01:00
parent eec288520e
commit 6f86adc432
No known key found for this signature in database
GPG key ID: 117C025B1F21B2C6
7 changed files with 211 additions and 8 deletions

View file

@ -4,6 +4,14 @@ 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).
## Unreleased
### Added
- Function to verify a detached signature and get it's creation time:
```go
func (keyRing *KeyRing) GetVerifiedSignatureTimestamp(message *PlainMessage, signature *PGPSignature, verifyTime int64) (int64, error)
```
## [2.3.1] 2021-12-15
### Fixed
- Fix the verification of PGP/MIME message signatures: