Documentation
¶
Index ¶
- Constants
- Variables
- func Decrypt(entity *openpgp.Entity, encrypted []byte) ([]byte, error)
- func Encrypt(entity *openpgp.Entity, message []byte) ([]byte, error)
- func GetEntity(publicKey []byte, privateKey []byte) (*openpgp.Entity, error)
- func Sign(entity *openpgp.Entity, message []byte) ([]byte, error)
- func Verify(publicKeyEntity *openpgp.Entity, message []byte, signature []byte) error
- type KeyPair
Constants ¶
View Source
const ( CompressionLevel = 9 // 9 is the highest compression level RSABits = 4096 // 4096 bits YearInSeconds = 31536000 // 1 year in seconds -> 60 * 60 * 24 * 365 = 31,536,000 )
Variables ¶
View Source
var (
PreferredHashSHA256 = []uint8{8} // SHA-256
)
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.