peridot/vendor/github.com/ProtonMail/gopenpgp/v2/constants/cipher.go

22 lines
480 B
Go
Raw Permalink Normal View History

2022-07-07 20:11:50 +00:00
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
)
const DefaultCompression = 2 // ZLIB
const DefaultCompressionLevel = 6 // Corresponds to default -1 for ZLIB