Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

open-dice test vectors #14

Open
thomas-fossati opened this issue Mar 14, 2023 · 1 comment
Open

open-dice test vectors #14

thomas-fossati opened this issue Mar 14, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@thomas-fossati
Copy link
Contributor

https://cs.android.com/android/platform/superproject/+/master:external/open-dice/include/dice/

@thomas-fossati thomas-fossati added the enhancement New feature or request label Mar 14, 2023
@thomas-fossati
Copy link
Contributor Author

thomas-fossati commented Mar 14, 2023

E.g., the annotated CBOR diagnostic of kExpectedCborP384Cert_DescriptorInput:

[
  << {1: -35} >>,
  {},
  / CBOR CDI certificate/ << {
    / iss == UDS_ID / 1: "5d8b6be7ce3ede6a2418014523e6c9dc87e98cc6",
    / sub == CDI_ID / 2: "6f139c7b2b16ac81024d57496b1b7a13fd3e807f",
    / code hash / -4670545: h'B7D40CCB225BA5788F98FF9E869375F690AC50CF9EBD0AFEB1D9C24E5219E4DE29E561F3F929E840877ADD174805897E2BCB5479CC66F1B313290C6896B2BB8F',
    / code desc / -4670546: h'6C46013326734B2265FDFA58D7573E9559E03AC3B9F7C80E98808CF5C4B8AFE3168425A5355D1772568F8EEC2F5A7460772A6E90C04E9F876BF48D9C66E30BD2103521A81DA23117E70CDF18F794E4D1CA327DF263231DBC847461DB87F2AB72ADAF08F8',
    / conf hash / -4670547: h'1B40C1A97760EBC367F05F6AE15E20C251684D82488B03321679881437787F169A06FDC08A158062',
    / conf desc / -4670548: h'4500E95CBD00570455876CBD2FEA419C66425141BB44ED0EE966CFD510730D4B48E47A5335010E6D1555C5B7D2D536B6BC7EB0F33DE6197862EB02573956734F',
    / auth hash / -4670549: h'22526017EF2CA1F6CBED39D5E2AA6520FBAD8293E578232297C16E6A4E36D76A61390821D4FE925F362DEB5DBB328BE3944FBE1B21F9CC237341B6B9B698D0BC',
    / auth desc / -4670550: h'92D697B383DFE78CC7BC4AFCEA76C05366BD2C1E10319080112D084D7C3976DC73E71C1662D559D7492B6AA2366757D1F2F9AF13D7A3E4D3395B0278B1E00970A2',
    / mode / -4670551: << 0 >>,
    / subject public key (COSE_Key) / -4670552: << {
      1: 2,
      3: -35,
      4: [2],
      -1: 2,
      -2: h'B4021948CADD234B9291228DA88085C0F923E489BD918DF38FA373607019C63376BFD460FADCDE465851131D738179FF',
      -3: h'39791B496ACF378FF41AC229B5802F7B2B0A2796B3B2C1C66FB416A47876736FCBF57D26C237E95898EBEF117C8D1D4B'}
    >>,
    / key usage (keyCertSign) / -4670553: << -1 >>
  } >>,
  h'12A5B9C3BF06107D224BC1D258CED84C42486958F0834A543990EC10EF762EB033826F932BC3B2C46ACBDE4C21625607C7B1D6DEFF952CCEBF3C0BDCD0C5396DC359237B5411F4B1336694473C14990ACAA984F4C924FD11E7CC376F122B1AA7'
]

See also https://pigweed.googlesource.com/open-dice/+/HEAD/docs/specification.md#cbor-uds-certificates

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant