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
12 lines
374 B
Go
12 lines
374 B
Go
// Package constants provides a set of common OpenPGP constants.
|
|
package constants
|
|
|
|
// Constants for armored data.
|
|
const (
|
|
ArmorHeaderVersion = "GopenPGP 2.7.5"
|
|
ArmorHeaderComment = "https://gopenpgp.org"
|
|
PGPMessageHeader = "PGP MESSAGE"
|
|
PGPSignatureHeader = "PGP SIGNATURE"
|
|
PublicKeyHeader = "PGP PUBLIC KEY BLOCK"
|
|
PrivateKeyHeader = "PGP PRIVATE KEY BLOCK"
|
|
)
|