Debian Codegraph @

age/internal/tests/scrypt_work_factor_23.go

raw symbols SCIP
1 // Copyright 2022 The age Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 //go:build ignore
6 // +build ignore
7
8 package main
9
10 import "c2sp.org/CCTV/age/internal/testkit"
11
12 func main() {
13 f := testkit.NewTestFile()
14 f.VersionLine("v1")
15 // Hardcoded because it would be too slow to regenerate every time.
16 // f.Scrypt("password", 23)
17 f.ScryptRecordPassphrase("password")
18 f.ArgsLine("scrypt", "rF0/NwblUHHTpgQgRpe5CQ", "23")
19 f.TextLine("qW9eVsT0NVb/Vswtw8kPIxUnaYmm9Px1dYmq2+4+qZA")
20 f.HMAC()
21 f.Payload("age")
22 f.ExpectHeaderFailure()
23 f.Comment("work factor is very high, would take a long time to compute")
24 f.Generate()
25 }