-
Notifications
You must be signed in to change notification settings - Fork 10
/
constants.go
42 lines (31 loc) · 1.08 KB
/
constants.go
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
40
41
42
// Copyright 2019 Canonical Ltd.
// Licensed under the LGPLv3 with static-linking exception.
// See LICENCE file for details.
package tpm2
import (
"math"
)
const (
DefaultRSAExponent = 65537
)
const (
CapabilityMaxProperties uint32 = math.MaxUint32
)
const (
// CFBKey is used as the label for the symmetric key derivation used in parameter encryption.
CFBKey = "CFB"
// DuplicateString is used as the label for key establishment for object duplication.
DuplicateString = "DUPLICATE"
// IdentityKey is used as the label for key establishment when issuing and using activation
// credentials.
IdentityKey = "IDENTITY"
// IntegrityKey is used as the label for the HMAC key derivation used for outer wrappers.
IntegrityKey = "INTEGRITY"
// SecretKey is used as the label for salt establishment when starting a salted session.
SecretKey = "SECRET"
// SessionKey is used as the label for the session key derivation.
SessionKey = "ATH"
// StorageKey is used as the label for the symmetric key derivation used for encrypting and
// decrypting outer wrappers.
StorageKey = "STORAGE"
)