{ "spec": "0.11", "description": "SECURITY_CBOR of format 3, exactly its SECURITY_LEN bytes, and the verdicts of the signature and of the seal (spec §29.3, §29.7), generated by the reference implementation, which implements no alg and no seal_type. See testdata/README.md.", "vectors": [ { "name": "empty, as writers of this version write it", "hex": "a20071646174656b6579732d73656375726974790101", "signature": "F0", "seal": "S0" }, { "name": "a signature of alg 1", "hex": "a30071646174656b6579732d73656375726974790101025869a30001015820111111111111111111111111111111111111111111111111111111111111111102584022222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222", "signature": "F1", "seal": "S0" }, { "name": "a seal of seal_type 1", "hex": "a30071646174656b6579732d73656375726974790101035826a200010158203333333333333333333333333333333333333333333333333333333333333333", "signature": "F0", "seal": "S1" }, { "name": "a seal of seal_type 2, RFC 3161", "hex": "a30071646174656b6579732d73656375726974790101035826a200020158203333333333333333333333333333333333333333333333333333333333333333", "signature": "F0", "seal": "S1" }, { "name": "a seal of seal_type 3, OpenTimestamps", "hex": "a30071646174656b6579732d73656375726974790101035826a200030158203333333333333333333333333333333333333333333333333333333333333333", "signature": "F0", "seal": "S1" }, { "name": "a signature and a seal", "hex": "a40071646174656b6579732d73656375726974790101025869a30001015820111111111111111111111111111111111111111111111111111111111111111102584022222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222035826a200010158203333333333333333333333333333333333333333333333333333333333333333", "signature": "F1", "seal": "S1" }, { "name": "a signature of alg 0, and the seal intact", "hex": "a40071646174656b6579732d73656375726974790101025849a3000001582011111111111111111111111111111111111111111111111111111111111111110258202222222222222222222222222222222222222222222222222222222222222222035826a200010158203333333333333333333333333333333333333333333333333333333333333333", "signature": "F1", "seal": "S1" }, { "name": "a signature with an empty key, and the seal intact", "hex": "a40071646174656b6579732d73656375726974790101025828a3000101400258202222222222222222222222222222222222222222222222222222222222222222035826a200010158203333333333333333333333333333333333333333333333333333333333333333", "signature": "F1", "seal": "S1" }, { "name": "a signature that is not CBOR", "hex": "a30071646174656b6579732d736563757269747901010241ff", "signature": "F1", "seal": "S0" }, { "name": "a signature with a byte more", "hex": "a30071646174656b6579732d7365637572697479010102586aa3000101582011111111111111111111111111111111111111111111111111111111111111110258402222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222200", "signature": "F1", "seal": "S0" }, { "name": "a seal of seal_type 0", "hex": "a30071646174656b6579732d73656375726974790101035826a200000158203333333333333333333333333333333333333333333333333333333333333333", "signature": "F0", "seal": "S2" }, { "name": "a seal that breaks its schema, with an unknown seal_type", "hex": "a30071646174656b6579732d73656375726974790101035829a300186301582033333333333333333333333333333333333333333333333333333333333333330200", "signature": "F0", "seal": "S2" }, { "name": "a seal that is not CBOR", "hex": "a30071646174656b6579732d736563757269747901010341ff", "signature": "F0", "seal": "S2" }, { "name": "key 2 that is not a byte string", "hex": "a30071646174656b6579732d7365637572697479010102a10001", "signature": "X", "seal": "X" }, { "name": "key 2 that is an empty byte string", "hex": "a30071646174656b6579732d736563757269747901010240", "signature": "X", "seal": "X" }, { "name": "an unknown key 4", "hex": "a30071646174656b6579732d73656375726974790101044101", "signature": "X", "seal": "X" }, { "name": "a byte more after the map", "hex": "a20071646174656b6579732d7365637572697479010100", "signature": "X", "seal": "X" }, { "name": "version 2", "hex": "a20071646174656b6579732d73656375726974790102", "signature": "X", "seal": "X" }, { "name": "the type tag of the head", "hex": "a2006d646174656b6579732d686561640101", "signature": "X", "seal": "X" }, { "name": "keys 2 and 3 out of order", "hex": "a40071646174656b6579732d73656375726974790101035826a200010158203333333333333333333333333333333333333333333333333333333333333333025869a30001015820111111111111111111111111111111111111111111111111111111111111111102584022222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222", "signature": "X", "seal": "X" }, { "name": "an array", "hex": "8271646174656b6579732d736563757269747901", "signature": "X", "seal": "X" } ] }