INNER CODE UNIT · Go

TestSetAuthToConfig

GGP1/kure · auth/auth_test.go:213

func TestSetAuthToConfig(t *testing.T) {
	defer config.Reset()

	expPassword := memguard.NewEnclave([]byte("test"))
	const (
		expMem  uint32 = 150000
		expIter uint32 = 110
		expTh   uint32 = 4
	)

	authParams := auth.Params{
		Argon2: auth.Argon2{
			Iterations: expIter,
			Memory:     expMem,
			Threads:    expTh,
		},
	}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…