You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
294 lines
9.0 KiB
294 lines
9.0 KiB
// Generated by tool/capsule_interop_go_verdicts.go: the samples of
|
|
// test/vectors/capsule_interop.json that are not marked node false, for the
|
|
// tests that also run compiled to JavaScript. Do not edit.
|
|
|
|
/// Part of test/vectors/capsule_interop.json.
|
|
const capsuleInteropJson = r'''
|
|
{
|
|
"description": "Capsules that datekeys-dart writes from the recipes of test/capsule_interop_support.dart, with SeededRandomSource or the CSPRNG of the platform, inspected and opened by capsule.Open of datekeys-go with each credential, all together and none, their layers encoded again, and, for a seeded one, whether capsule.EncryptFiles writes the same bytes (tool/capsule_interop_go_verdicts.go).",
|
|
"go": "go1.26.8",
|
|
"samples": [
|
|
{
|
|
"go_same": true,
|
|
"inspect": {
|
|
"datekey": "dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiZGF0ZWtleXM6cXVpY2tuZXQ6djEiLCJyb3VuZCI6MTAwMH0",
|
|
"format": 3,
|
|
"note": "",
|
|
"policy": "time_only"
|
|
},
|
|
"length_dkc": 35611,
|
|
"name": "time_only, one file (seeded)",
|
|
"opens": [
|
|
{
|
|
"area_len": 32768,
|
|
"author": "",
|
|
"comment": "",
|
|
"files": [
|
|
{
|
|
"path": "nota.txt",
|
|
"sha256": "0397fe19bf28bbbef703f292f55d0cc96e9f535b6db7944504bde08c3709d685",
|
|
"size": 6
|
|
}
|
|
],
|
|
"head": "a4006d646174656b6579732d6865616401010258209fb051d18640caa5ceb7d6a6a57c8bf382074f98ae7abfd6bb9b0fcf45b221db0581a500686e6f74612e7478740106020003060458200397fe19bf28bbbef703f292f55d0cc96e9f535b6db7944504bde08c3709d685",
|
|
"length": 32893,
|
|
"padded_length": 34816,
|
|
"result": "ok",
|
|
"verdicts": [
|
|
"F0",
|
|
"S0"
|
|
],
|
|
"with": "time"
|
|
}
|
|
],
|
|
"reencoded": true,
|
|
"sha256": "e2e1c4630d5bcebef2841be25db6374c611e1fcbf1d10a58a497e38099c776a8"
|
|
},
|
|
{
|
|
"go_same": true,
|
|
"inspect": {
|
|
"datekey": "dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiZGF0ZWtleXM6cXVpY2tuZXQ6djEiLCJyb3VuZCI6MTAwMH0",
|
|
"format": 3,
|
|
"note": "",
|
|
"policy": "time_only"
|
|
},
|
|
"length_dkc": 1563,
|
|
"name": "time_only, a comment alone, bloque256, area of 512 (seeded)",
|
|
"opens": [
|
|
{
|
|
"area_len": 512,
|
|
"author": "Ana López",
|
|
"comment": "Una línea.\nOtra.",
|
|
"files": [],
|
|
"head": "a5006d646174656b6579732d68656164010102582062d6033aa55ff10494692a79747fbec2f33e64b01aa801ec7ac2cfcc4055a9fc0371556e61206cc3ad6e65612e0a4f7472612e046a416e61204cc3b370657a",
|
|
"length": 608,
|
|
"padded_length": 768,
|
|
"result": "ok",
|
|
"verdicts": [
|
|
"F0",
|
|
"S0"
|
|
],
|
|
"with": "time"
|
|
}
|
|
],
|
|
"reencoded": true,
|
|
"sha256": "3286ee451273bb6e54eb790f865a3c3ba17c53ee175fb3be73c364579a1a99a8"
|
|
},
|
|
{
|
|
"dkk_capsule_digest": true,
|
|
"dkk_sha256": "a017be51ababc550ed158e52cf86a5b8a27b2240ba79c700a8262df21d78c47b",
|
|
"go_same": true,
|
|
"inner_stanzas": 16,
|
|
"inspect": {
|
|
"datekey": "dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiZGF0ZWtleXM6cXVpY2tuZXQ6djEiLCJyb3VuZCI6MTAwMH0",
|
|
"format": 3,
|
|
"note": "Para Ana",
|
|
"policy": "time_and_key"
|
|
},
|
|
"length_dkc": 37311,
|
|
"name": "time_and_key, a portable key and a note (seeded)",
|
|
"opens": [
|
|
{
|
|
"area_len": 32768,
|
|
"author": "",
|
|
"comment": "",
|
|
"files": [
|
|
{
|
|
"path": "a.txt",
|
|
"sha256": "ca978112ca1bbdcafac231b39a23dc4da786eff8147c4e72b9807785afee48bb",
|
|
"size": 1
|
|
},
|
|
{
|
|
"path": "b/c.txt",
|
|
"sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
|
"size": 0
|
|
}
|
|
],
|
|
"head": "a4006d646174656b6579732d6865616401010258208bcd6ff1800431142e3e1f98e3b14290ace6de0f16e727bf879418d5942f6eef0582a50065612e747874010102000301045820ca978112ca1bbdcafac231b39a23dc4da786eff8147c4e72b9807785afee48bba50067622f632e747874010002010301045820e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
|
"length": 32936,
|
|
"padded_length": 34816,
|
|
"result": "ok",
|
|
"verdicts": [
|
|
"F0",
|
|
"S0"
|
|
],
|
|
"with": "portable"
|
|
},
|
|
{
|
|
"area_len": 32768,
|
|
"author": "",
|
|
"comment": "",
|
|
"files": [
|
|
{
|
|
"path": "a.txt",
|
|
"sha256": "ca978112ca1bbdcafac231b39a23dc4da786eff8147c4e72b9807785afee48bb",
|
|
"size": 1
|
|
},
|
|
{
|
|
"path": "b/c.txt",
|
|
"sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
|
"size": 0
|
|
}
|
|
],
|
|
"head": "a4006d646174656b6579732d6865616401010258208bcd6ff1800431142e3e1f98e3b14290ace6de0f16e727bf879418d5942f6eef0582a50065612e747874010102000301045820ca978112ca1bbdcafac231b39a23dc4da786eff8147c4e72b9807785afee48bba50067622f632e747874010002010301045820e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
|
"length": 32936,
|
|
"padded_length": 34816,
|
|
"result": "ok",
|
|
"verdicts": [
|
|
"F0",
|
|
"S0"
|
|
],
|
|
"with": "all"
|
|
},
|
|
{
|
|
"result": "ERR_ACCESS_REQUIRED",
|
|
"step": 9,
|
|
"with": "none"
|
|
}
|
|
],
|
|
"reencoded": true,
|
|
"sha256": "6042d6946aa143ce85e36c23b9a48acb2b00a784096e95747bb23522887658d9"
|
|
},
|
|
{
|
|
"inspect": {
|
|
"datekey": "dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiZGF0ZWtleXM6cXVpY2tuZXQ6djEiLCJyb3VuZCI6MTAwMH0",
|
|
"format": 3,
|
|
"note": "",
|
|
"policy": "time_only"
|
|
},
|
|
"length_dkc": 35611,
|
|
"name": "time_only, one file (secure)",
|
|
"opens": [
|
|
{
|
|
"area_len": 32768,
|
|
"author": "",
|
|
"comment": "",
|
|
"files": [
|
|
{
|
|
"path": "nota.txt",
|
|
"sha256": "0397fe19bf28bbbef703f292f55d0cc96e9f535b6db7944504bde08c3709d685",
|
|
"size": 6
|
|
}
|
|
],
|
|
"head": "a4006d646174656b6579732d686561640101025820dcb97599496389439e89748e891f1cd69b4fb062ff8a38040c8661cd0ab12e420581a500686e6f74612e7478740106020003060458200397fe19bf28bbbef703f292f55d0cc96e9f535b6db7944504bde08c3709d685",
|
|
"length": 32893,
|
|
"padded_length": 34816,
|
|
"result": "ok",
|
|
"verdicts": [
|
|
"F0",
|
|
"S0"
|
|
],
|
|
"with": "time"
|
|
}
|
|
],
|
|
"reencoded": true,
|
|
"sha256": "114c64f7a00b4a71d4b502e7fad42a01c5a217e87d6d6c3404a871bb9410832f"
|
|
},
|
|
{
|
|
"inspect": {
|
|
"datekey": "dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiZGF0ZWtleXM6cXVpY2tuZXQ6djEiLCJyb3VuZCI6MTAwMH0",
|
|
"format": 3,
|
|
"note": "",
|
|
"policy": "time_only"
|
|
},
|
|
"length_dkc": 1563,
|
|
"name": "time_only, a comment alone, bloque256, area of 512 (secure)",
|
|
"opens": [
|
|
{
|
|
"area_len": 512,
|
|
"author": "Ana López",
|
|
"comment": "Una línea.\nOtra.",
|
|
"files": [],
|
|
"head": "a5006d646174656b6579732d686561640101025820fe30146357dbeb109540a68e37157cdbf021fbc2dc028057ac8196b1a847fc3d0371556e61206cc3ad6e65612e0a4f7472612e046a416e61204cc3b370657a",
|
|
"length": 608,
|
|
"padded_length": 768,
|
|
"result": "ok",
|
|
"verdicts": [
|
|
"F0",
|
|
"S0"
|
|
],
|
|
"with": "time"
|
|
}
|
|
],
|
|
"reencoded": true,
|
|
"sha256": "1f424c1171a89f89270d40a1fc88b922875c8437ced6806c746e166cc31574ab"
|
|
},
|
|
{
|
|
"dkk_capsule_digest": true,
|
|
"dkk_sha256": "6421639469f03c3c51d7d06c109e0a2b8243be6ca84eb263636c1d1eadf47a0e",
|
|
"inner_stanzas": 16,
|
|
"inspect": {
|
|
"datekey": "dk1_eyJ2ZXJzaW9uIjoxLCJuZXR3b3JrIjoiZGF0ZWtleXM6cXVpY2tuZXQ6djEiLCJyb3VuZCI6MTAwMH0",
|
|
"format": 3,
|
|
"note": "Para Ana",
|
|
"policy": "time_and_key"
|
|
},
|
|
"length_dkc": 37311,
|
|
"name": "time_and_key, a portable key and a note (secure)",
|
|
"opens": [
|
|
{
|
|
"area_len": 32768,
|
|
"author": "",
|
|
"comment": "",
|
|
"files": [
|
|
{
|
|
"path": "a.txt",
|
|
"sha256": "ca978112ca1bbdcafac231b39a23dc4da786eff8147c4e72b9807785afee48bb",
|
|
"size": 1
|
|
},
|
|
{
|
|
"path": "b/c.txt",
|
|
"sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
|
"size": 0
|
|
}
|
|
],
|
|
"head": "a4006d646174656b6579732d6865616401010258201a27afd7c4ccd1decf7cb2c73082e64ecd1d734e1257817ade1443d0d19dc02b0582a50065612e747874010102000301045820ca978112ca1bbdcafac231b39a23dc4da786eff8147c4e72b9807785afee48bba50067622f632e747874010002010301045820e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
|
"length": 32936,
|
|
"padded_length": 34816,
|
|
"result": "ok",
|
|
"verdicts": [
|
|
"F0",
|
|
"S0"
|
|
],
|
|
"with": "portable"
|
|
},
|
|
{
|
|
"area_len": 32768,
|
|
"author": "",
|
|
"comment": "",
|
|
"files": [
|
|
{
|
|
"path": "a.txt",
|
|
"sha256": "ca978112ca1bbdcafac231b39a23dc4da786eff8147c4e72b9807785afee48bb",
|
|
"size": 1
|
|
},
|
|
{
|
|
"path": "b/c.txt",
|
|
"sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
|
"size": 0
|
|
}
|
|
],
|
|
"head": "a4006d646174656b6579732d6865616401010258201a27afd7c4ccd1decf7cb2c73082e64ecd1d734e1257817ade1443d0d19dc02b0582a50065612e747874010102000301045820ca978112ca1bbdcafac231b39a23dc4da786eff8147c4e72b9807785afee48bba50067622f632e747874010002010301045820e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
|
|
"length": 32936,
|
|
"padded_length": 34816,
|
|
"result": "ok",
|
|
"verdicts": [
|
|
"F0",
|
|
"S0"
|
|
],
|
|
"with": "all"
|
|
},
|
|
{
|
|
"result": "ERR_ACCESS_REQUIRED",
|
|
"step": 9,
|
|
"with": "none"
|
|
}
|
|
],
|
|
"reencoded": true,
|
|
"sha256": "4dd1abec3da92586b62eaf54403a1f46f43d187736bcdfc575860ab1b0e38220"
|
|
}
|
|
],
|
|
"source": "c531e936fa8188a4aab01575607cc85d4f5d4fa4"
|
|
}
|
|
''';
|