File: cipher.go

package info (click to toggle)
golang-github-protonmail-gopenpgp-v3 3.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,028 kB
  • sloc: sh: 87; makefile: 2
file content (39 lines) | stat: -rw-r--r-- 878 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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
)

// SecurityLevel constants.
// The type is int8 for compatibility with gomobile.
const (
	// StandardSecurity is the default security level.
	StandardSecurity int8 = 0
	// HighSecurity is the high security level.
	HighSecurity int8 = 1
)

// Wraps the packet.CipherFunction enum from go-crypto
// for go-mobile clients.
// int8 type for go-mobile support.
const (
	Cipher3DES   int8 = 2
	CipherCAST5  int8 = 3
	CipherAES128 int8 = 7
	CipherAES192 int8 = 8
	CipherAES256 int8 = 9
)