| 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.X25519(testkit.TestX25519Identity) |
| 16 | f.HMAC() |
| 17 | f.Payload("age") |
| 18 | file := f.Bytes() |
| 19 | f.Buf.Reset() |
| 20 | f.BeginArmor("AGE ENCRYPTED FILE") |
| 21 | f.TextLine("Headers: are") |
| 22 | f.TextLine("Not: allowed") |
| 23 | f.TextLine("") |
| 24 | f.Body(file) |
| 25 | f.Base64Padding() |
| 26 | f.EndArmor("AGE ENCRYPTED FILE") |
| 27 | f.ExpectArmorFailure() |
| 28 | f.Generate() |
| 29 | } |