Debian Codegraph @

age/internal/tests/hybrid_x25519_arg.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 f.X25519RecordIdentity(testkit.TestX25519Identity)
16 f.Hybrid(testkit.TestHybridIdentity)
17 body, args := f.UnreadLine(), f.UnreadArgsLine()
18 f.ArgsLine("X25519", args[1])
19 f.TextLine(body)
20 f.HMAC()
21 f.Payload("age")
22 f.ExpectHeaderFailure()
23 f.Comment("the X25519 stanza has a hybrid enc")
24 f.Generate()
25 }