Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions cmd/cca/test_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@
"cca-realm-delegated-token": {
"cca-realm-profile": "tag:arm.com,2023:realm#1.0.0",
"cca-realm-challenge": "QUJBQkFCQUJBQkFCQUJBQkFCQUJBQkFCQUJBQkFCQUJBQkFCQUJBQkFCQUJBQkFCQUJBQkFCQUJBQkFCQUJBQg==",
"cca-realm-personalization-value": "QURBREFEQURBREFEQURBREFEQURBREFEQURBREFEQURBREFEQURBREFEQURBREFEQURBREFEQURBREFEQURBRA==",

Check failure on line 57 in cmd/cca/test_common.go

View workflow job for this annotation

GitHub Actions / Lint

The line is 129 characters long, which exceeds the maximum of 120 characters. (lll)

Check failure on line 57 in cmd/cca/test_common.go

View workflow job for this annotation

GitHub Actions / Lint

The line is 129 characters long, which exceeds the maximum of 120 characters. (lll)
"cca-realm-initial-measurement": "Q0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQw==",

Check failure on line 58 in cmd/cca/test_common.go

View workflow job for this annotation

GitHub Actions / Lint

The line is 127 characters long, which exceeds the maximum of 120 characters. (lll)

Check failure on line 58 in cmd/cca/test_common.go

View workflow job for this annotation

GitHub Actions / Lint

The line is 127 characters long, which exceeds the maximum of 120 characters. (lll)
"cca-realm-extensible-measurements": [
"Q0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQw==",
"Q0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQw==",
Expand All @@ -63,7 +63,7 @@
"Q0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQw=="
],
"cca-realm-hash-algo-id": "sha-256",
"cca-realm-public-key": "pAECIAIhWDB2+YgJG+WF7UGAGuz6uFhUjGMFfhaw5nYSC70NL5wp4FbF1BoBMOucIVF4mdwjFGsiWDAo4bBivT6ksxX9IZ8cu1KMtudMpJvhZ3NzT2GhymEDGyu/PZGPL5T/xCKOUJGVRK4=",

Check failure on line 66 in cmd/cca/test_common.go

View workflow job for this annotation

GitHub Actions / Lint

The line is 174 characters long, which exceeds the maximum of 120 characters. (lll)

Check failure on line 66 in cmd/cca/test_common.go

View workflow job for this annotation

GitHub Actions / Lint

The line is 174 characters long, which exceeds the maximum of 120 characters. (lll)
"cca-realm-public-key-hash-algo-id": "sha-256"
}
}`)
Expand All @@ -87,8 +87,8 @@
"cca-realm-delegated-token": {
"cca-realm-profile": "tag:arm.com,2024:realm#2.0.0",
"cca-realm-challenge": "QUJBQkFCQUJBQkFCQUJBQkFCQUJBQkFCQUJBQkFCQUJBQkFCQUJBQkFCQUJBQkFCQUJBQkFCQUJBQkFCQUJBQg==",
"cca-realm-personalization-value": "QURBREFEQURBREFEQURBREFEQURBREFEQURBREFEQURBREFEQURBREFEQURBREFEQURBREFEQURBREFEQURBRA==",

Check failure on line 90 in cmd/cca/test_common.go

View workflow job for this annotation

GitHub Actions / Lint

The line is 129 characters long, which exceeds the maximum of 120 characters. (lll)

Check failure on line 90 in cmd/cca/test_common.go

View workflow job for this annotation

GitHub Actions / Lint

The line is 129 characters long, which exceeds the maximum of 120 characters. (lll)
"cca-realm-initial-measurement": "Q0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQw==",

Check failure on line 91 in cmd/cca/test_common.go

View workflow job for this annotation

GitHub Actions / Lint

The line is 127 characters long, which exceeds the maximum of 120 characters. (lll)

Check failure on line 91 in cmd/cca/test_common.go

View workflow job for this annotation

GitHub Actions / Lint

The line is 127 characters long, which exceeds the maximum of 120 characters. (lll)
"cca-realm-extensible-measurements": [
"Q0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQw==",
"Q0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQ0NDQw==",
Expand All @@ -97,9 +97,10 @@
]
,
"cca-realm-hash-algo-id": "sha-256",
"cca-realm-public-key": "pCACIVgwgvvRMqm1w5aHn7sVNA2QUJeOVcedUnmiug6VhU834gzS9k87crVwu9dz7uLOdoQlIlgw7fVF7b6J/6/g6Wu9RuJw8geWxEi5ja9Gp2TSdELm5u2E+M7IF+bsxqcdOj3n1n7NAQI=",

Check failure on line 100 in cmd/cca/test_common.go

View workflow job for this annotation

GitHub Actions / Lint

The line is 174 characters long, which exceeds the maximum of 120 characters. (lll)

Check failure on line 100 in cmd/cca/test_common.go

View workflow job for this annotation

GitHub Actions / Lint

The line is 174 characters long, which exceeds the maximum of 120 characters. (lll)
"cca-realm-public-key-hash-algo-id": "sha-512",
"cca-realm-mec-policy": "private"
"cca-realm-mec-policy": 1,
"cca-realm-instance-id": "Ad6tvu/erb7v3q2+796tvu/erb7v3q2+796tvu/erb7v"
}
}`)
testValidCCAClaimsRev03All = []byte(`{
Expand All @@ -125,7 +126,7 @@
{
"hash-algo-id": "sha-256",
"device-measurements-digest": "3q2+796tvu/erb7v3q2+796tvu/erb7v3q2+796tvu8=",
"certificate-chain-digest": "3q2+796tvu/erb7v3q2+796tvu/erb7v3q2+796tvu/erb7v3q2+796tvu/erb7v3q2+796tvu/erb7v3q2+7w==",

Check failure on line 129 in cmd/cca/test_common.go

View workflow job for this annotation

GitHub Actions / Lint

The line is 123 characters long, which exceeds the maximum of 120 characters. (lll)

Check failure on line 129 in cmd/cca/test_common.go

View workflow job for this annotation

GitHub Actions / Lint

The line is 123 characters long, which exceeds the maximum of 120 characters. (lll)
"uses-ide": true,
"protocol": "spdm-1.2.0",
"vca-digest": "AAECAwQFBgcICQoLDA0ODwABAgMEBQYHCAkKCwwNDg8AAQIDBAUGBwgJCgsMDQ4P",
Expand All @@ -134,7 +135,7 @@
},
{
"device-measurements-digest": "3q2+796tvu/erb7v3q2+796tvu/erb7v3q2+796tvu8=",
"certificate-chain-digest": "3q2+796tvu/erb7v3q2+796tvu/erb7v3q2+796tvu/erb7v3q2+796tvu/erb7v3q2+796tvu/erb7v3q2+7w==",

Check failure on line 138 in cmd/cca/test_common.go

View workflow job for this annotation

GitHub Actions / Lint

The line is 123 characters long, which exceeds the maximum of 120 characters. (lll)

Check failure on line 138 in cmd/cca/test_common.go

View workflow job for this annotation

GitHub Actions / Lint

The line is 123 characters long, which exceeds the maximum of 120 characters. (lll)
"uses-ide": true,
"protocol": "other-protocol-1.2.3",
"device-type": "other-device-2"
Expand Down Expand Up @@ -164,7 +165,8 @@
"cca-realm-hash-algo-id": "sha-256",
"cca-realm-public-key": "pCACIVgwgvvRMqm1w5aHn7sVNA2QUJeOVcedUnmiug6VhU834gzS9k87crVwu9dz7uLOdoQlIlgw7fVF7b6J/6/g6Wu9RuJw8geWxEi5ja9Gp2TSdELm5u2E+M7IF+bsxqcdOj3n1n7NAQI=",
"cca-realm-public-key-hash-algo-id": "sha-512",
"cca-realm-mec-policy": "private"
"cca-realm-mec-policy": 1,
"cca-realm-instance-id": "Ad6tvu/erb7v3q2+796tvu/erb7v3q2+796tvu/erb7v"
}
}`)
testValidCCAClaimsNoNonce = []byte(`{
Expand Down Expand Up @@ -228,7 +230,8 @@
"cca-realm-hash-algo-id": "sha-256",
"cca-realm-public-key": "pCACIVgwgvvRMqm1w5aHn7sVNA2QUJeOVcedUnmiug6VhU834gzS9k87crVwu9dz7uLOdoQlIlgw7fVF7b6J/6/g6Wu9RuJw8geWxEi5ja9Gp2TSdELm5u2E+M7IF+bsxqcdOj3n1n7NAQI=",
"cca-realm-public-key-hash-algo-id": "sha-256",
"cca-realm-mec-policy": "private"
"cca-realm-mec-policy": 1,
"cca-realm-instance-id": "Ad6tvu/erb7v3q2+796tvu/erb7v3q2+796tvu/erb7v"
}
}`)
testValidCCAClaimVecs = []struct {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ require (
github.com/spf13/viper v1.11.0
github.com/stretchr/testify v1.11.1
github.com/veraison/apiclient v0.4.1-0.20260826100211-017a8838452e
github.com/veraison/ccatoken v1.4.1-0.20260825135807-84623d402f35
github.com/veraison/ccatoken v1.4.1-0.20260928091004-4b95c09a70de
github.com/veraison/go-cose v1.3.0
github.com/veraison/psatoken v1.2.1-0.20240723091511-b9c092a19d7b
)
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -210,8 +210,8 @@ github.com/subosito/gotenv v1.2.0 h1:Slr1R9HxAlEKefgq5jn9U+DnETlIUa6HfgEzj0g5d7s
github.com/subosito/gotenv v1.2.0/go.mod h1:N0PQaV/YGNqwC0u51sEeR/aUtSLEXKX9iv69rRypqCw=
github.com/veraison/apiclient v0.4.1-0.20260826100211-017a8838452e h1:sBZgs0BQDPBzKZOYAw9HsJdkH9SF28x1lY3wu1a2qwM=
github.com/veraison/apiclient v0.4.1-0.20260826100211-017a8838452e/go.mod h1:XfEC4u05zv3u9c/vPy2RsVGckzoWhxFj97htzRR3ltA=
github.com/veraison/ccatoken v1.4.1-0.20260825135807-84623d402f35 h1:ubBcxAEWczWK8As123en44DVtNl0BkeOHlCZU4IbUGE=
github.com/veraison/ccatoken v1.4.1-0.20260825135807-84623d402f35/go.mod h1:YheIuCJOdorTOO2Zrx8msKRGmDj/xP5YSMt/yJHcvPk=
github.com/veraison/ccatoken v1.4.1-0.20260928091004-4b95c09a70de h1:7az17SZNjGvqLU6A9ZzMcdAz+4FCR4k1+num1rBE0gw=
github.com/veraison/ccatoken v1.4.1-0.20260928091004-4b95c09a70de/go.mod h1:YheIuCJOdorTOO2Zrx8msKRGmDj/xP5YSMt/yJHcvPk=
github.com/veraison/cmw v0.2.0 h1:BWEvwZnD4nn5osq6XwQpTRcGxwV+Su4t6ytdAbVXAJY=
github.com/veraison/cmw v0.2.0/go.mod h1:OiYKk1t6/Fmmg30ZpSMzi4nKr5kt3374sNTkgxC5BDs=
github.com/veraison/eat v0.0.0-20251105185612-2c0e43e22ea9 h1:noS47o2qRghkF4gpxAhzjJEEzQBvSnaJnHHlnMxdDpU=
Expand Down
Loading