Debian Codegraph @

age/internal/tests/scrypt_work_factor_overflow.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 (
11 "math"
12 "strconv"
13
14 "c2sp.org/CCTV/age/internal/testkit"
15 )
16
17 func main() {
18 f := testkit.NewTestFile()
19 f.VersionLine("v1")
20 f.Scrypt("password", 10)
21 body, args := f.UnreadLine(), f.UnreadArgsLine()
22 f.ArgsLine(args[0], args[1], strconv.FormatUint(math.MaxInt64+1+10, 10))
23 f.TextLine(body)
24 f.HMAC()
25 f.Payload("age")
26 f.ExpectHeaderFailure()
27 f.Generate()
28 }