mirror of
https://github.com/FiloSottile/age.git
synced 2025-12-23 05:25:14 +00:00
age: update c2sp.org/CCTV/age testkit to include hybrid identities
This commit is contained in:
committed by
Filippo Valsorda
parent
ad7bb569eb
commit
1b18d6b279
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user