Documentation ¶
Index ¶
Constants ¶
View Source
const (
MainSecretMinLength = 16
)
View Source
const (
Salt = "idmsvc-backend"
)
Variables ¶
View Source
var ( // MAC key for domain registration token DomainRegKeyInfo = HkdfInfo{[]byte("domain registration key"), 32} // hex string to identify AES encryption keys for encrypted private JWKs HostconfEncryptionIdInfo = HkdfInfo{[]byte("hostconf JWK encryption id"), 8} // AES-GCM encryption keys for private JWKs HostconfEncryptionKeyInfo = HkdfInfo{[]byte("hostconf JWK encryption key"), 16} )
Functions ¶
func GenerateRandomMainSecret ¶
func GenerateRandomMainSecret() string
Generate random value for main secret, used in tests
Types ¶
type AppSecrets ¶
type AppSecrets struct { DomainRegKey []byte HostconfEncryptionId string HostConfEncryptionKey []byte }
func NewAppSecrets ¶
func NewAppSecrets(mainSecret string) (sec *AppSecrets, err error)
Parse main secret and get sub secrets
Click to show internal directories.
Click to hide internal directories.