Skip to content

Commit

Permalink
Updates to handle 4532 bytes length attestations
Browse files Browse the repository at this point in the history
  • Loading branch information
KalpitaMandal committed Nov 7, 2024
1 parent 48aba37 commit eb1d842
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions contracts/periphery/AttestationVerifierZK.sol
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,13 @@ contract AttestationVerifierZK is
(sha256(journal[56:104]) == sha256(attestation[155:203])) && // Checking PCR1
(sha256(journal[104:152]) == sha256(attestation[206:254])) && // Checking PCR2
(
sha256(journal[152:249]) == sha256(attestation[1834:1931]) ||
sha256(journal[152:249]) == sha256(attestation[1835:1932]) ||
sha256(journal[152:249]) == sha256(attestation[1836:1933])
) // Checking certificate root key
&&
(
sha256(journal[249:313]) == sha256(attestation[4352:4416]) ||
sha256(journal[249:313]) == sha256(attestation[4353:4417]) ||
sha256(journal[249:313]) == sha256(attestation[4354:4418]) ||
sha256(journal[249:313]) == sha256(attestation[4356:4420])) // Checking enclave public key, but not proper
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit eb1d842

Please sign in to comment.