INNER CODE UNIT · Go

setAuthToConfig

GGP1/kure · auth/auth.go:209

func setAuthToConfig(password *memguard.Enclave, params auth.Params) {
	auth := map[string]interface{}{
		"password":   password,
		"iterations": params.Argon2.Iterations,
		"memory":     params.Argon2.Memory,
		"threads":    params.Argon2.Threads,
	}
	config.Set(authKey, auth)
}

// Auth key must be set to the configuration before any database operation is performed.
func setKeyToConfig(key []byte) {
	config.Set(authKey+".key", key)
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…