age: update c2sp.org/CCTV/age testkit to include hybrid identities

This commit is contained in:
Filippo Valsorda
2025-12-08 02:55:37 +01:00
committed by Filippo Valsorda
parent ad7bb569eb
commit 1b18d6b279
3 changed files with 7 additions and 3 deletions

View File

@@ -94,7 +94,11 @@ func parseVector(t *testing.T, test []byte) *vector {
}
v.fileKey = (*[16]byte)(h)
case "identity":
var i age.Identity
i, err := age.ParseX25519Identity(value)
if err != nil {
i, err = age.ParseHybridIdentity(value)
}
if err != nil {
t.Fatal(err)
}