peridot/vendor/github.com/ProtonMail/gopenpgp/v2/constants/cipher.go
2024-10-16 13:40:38 +02:00

23 lines
511 B
Go

package constants
// Cipher suite names.
const (
ThreeDES = "3des"
TripleDES = "tripledes" // Both "3des" and "tripledes" refer to 3DES.
CAST5 = "cast5"
AES128 = "aes128"
AES192 = "aes192"
AES256 = "aes256"
)
const (
SIGNATURE_OK int = 0
SIGNATURE_NOT_SIGNED int = 1
SIGNATURE_NO_VERIFIER int = 2
SIGNATURE_FAILED int = 3
SIGNATURE_BAD_CONTEXT int = 4
)
const DefaultCompression = 2 // ZLIB
const DefaultCompressionLevel = 6 // Corresponds to default -1 for ZLIB